]> www.fi.muni.cz Git - bike-lights.git/blobdiff - firmware/lights.h
power-off function
[bike-lights.git] / firmware / lights.h
index d7f00651e02235ce4584fa19bb4ec91fc41f03be..c8663492c423646112a6cec26c93658f0912292f 100644 (file)
@@ -24,16 +24,19 @@ void inline log_word(uint16_t word) { }
 
 /* adc.c */
 void init_adc();
+void susp_adc();
 void timer_start_adcs();
 
 /* pwm.c */
 void init_pwm();
+void susp_pwm();
 void pwm_off(unsigned char n);
 void pwm_set(unsigned char n, uint16_t stride);
 
 /* tmr.c */
 extern volatile uint16_t jiffies;
 void init_tmr();
+void susp_tmr();
 
 /* pwmled.c */
 void pwmled_init();
@@ -44,7 +47,9 @@ unsigned char pwmled_enabled(unsigned char n);
 
 /* gpio.c */
 void gpio_init();
+void susp_gpio();
 void gpio_set(unsigned char n, unsigned char on);
+void gpio_before_poweroff();
 
 /* ambient.c */
 void ambient_init();
@@ -60,8 +65,10 @@ void led_set_status(unsigned char status);
 void init_buttons();
 void timer_check_buttons();
 
-/* init.c */
+/* main.c */
 void hw_setup();
+void hw_suspend();
+void power_down();
 
 #endif /* !LIGHTS_H__ */