]> www.fi.muni.cz Git - bike-lights.git/blobdiff - firmware/pwm.c
pwm.c: maximum TOP value of T/C 1 is 0x3FF.
[bike-lights.git] / firmware / pwm.c
index d68eeb2c3fdf370f69f32a8aa10b1afd68ff48a9..b47227375703f355198f724f63586cdba5937aa7 100644 (file)
@@ -7,7 +7,7 @@
 
 #define PWM_STEP_SHIFT 2 /* sub-LSB precision */
 #define PWM_TOP (((PWM_MAX) + (4 << (PWM_STEP_SHIFT))) >> (PWM_STEP_SHIFT))
-#if PWM_TOP > 0x1FF
+#if PWM_TOP > 0x3FF
 #error PWM_TOP too high
 #endif