]> www.fi.muni.cz Git - bike-lights.git/blobdiff - firmware/lights.h
pwmled.c: use mA-based values instead of PWM value-based
[bike-lights.git] / firmware / lights.h
index 9fe2cebd3b10f6d3882b00016ff4b2b04c5d0b6f..43915bd3ce9fd1019c455ae52a0346e907f53585 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);
@@ -78,6 +80,7 @@ void timer_check_buttons();
 /* battery.c */
 extern volatile unsigned char battery_100mv;
 void battery_adc();
+void init_battery();
 
 /* main.c */
 void hw_setup();