]> www.fi.muni.cz Git - bike-lights.git/commitdiff
firmware: move PWM_MAX to lights.h
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sat, 17 Nov 2012 21:15:46 +0000 (22:15 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sat, 17 Nov 2012 21:15:46 +0000 (22:15 +0100)
firmware/lights.h
firmware/pwm.c

index 9fe2cebd3b10f6d3882b00016ff4b2b04c5d0b6f..f8223845d0a451c429765922926682df78d8973f 100644 (file)
@@ -28,6 +28,8 @@ void susp_adc();
 void timer_start_adcs();
 
 /* pwm.c */
+#define PWM_MAX 0x1FF
+
 void init_pwm();
 void susp_pwm();
 void pwm_off(unsigned char n);
index 98ab61ff49013b3b19d95b272f9cd97910581595..201770f8152f440fe7ef21a219c336fb9f382b5f 100644 (file)
@@ -4,8 +4,6 @@
 
 #include "lights.h"
 
-#define PWM_MAX 0x1FF
-
 void init_pwm()
 {
        /* Async clock */