]> www.fi.muni.cz Git - bike-lights.git/blobdiff - firmware/lights.h
firmware: buttons-press and pwrdown rework
[bike-lights.git] / firmware / lights.h
index 9fe2cebd3b10f6d3882b00016ff4b2b04c5d0b6f..d0eddd79c4837a56368e6906760e11391ca8ffca 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);
@@ -72,16 +74,17 @@ void led_set_status(unsigned char status);
 void led_set_pattern(unsigned char led, pattern_t *pattern);
 
 /* buttons.c */
+#define MAX_USER_PARAMS 3
 void init_buttons();
 void timer_check_buttons();
+unsigned char get_user_param(unsigned char param);
 
 /* battery.c */
 extern volatile unsigned char battery_100mv;
 void battery_adc();
+void init_battery();
 
 /* main.c */
-void hw_setup();
-void hw_suspend();
 void power_down();
 
 #endif /* !LIGHTS_H__ */