6 #define N_PWMLED_MODES 4
12 void log_set_state(unsigned char val);
15 void log_byte(unsigned char byte);
16 void log_word(uint16_t word);
18 void inline log_set_state(unsigned char val) { }
19 void inline log_init() { }
20 void inline log_flush() { }
21 void inline log_byte(unsigned char byte) { }
22 void inline log_word(uint16_t word) { }
28 void timer_start_adcs();
33 void pwm_off(unsigned char n);
34 void pwm_set(unsigned char n, uint16_t stride);
37 extern volatile uint16_t jiffies;
43 void pwmled_adc(unsigned char n, uint16_t adcval);
44 void pwmled_set_mode(unsigned char n, unsigned char mode);
45 unsigned char pwmled_needs_adc(unsigned char n);
46 unsigned char pwmled_enabled(unsigned char n);
51 void gpio_set(unsigned char n, unsigned char on);
52 void gpio_before_poweroff();
56 extern volatile unsigned char ambient_zone;
57 void ambient_adc(uint16_t adc_val);
61 void patterns_next_tick();
62 void led_set_status(unsigned char status);
66 void timer_check_buttons();
73 #endif /* !LIGHTS_H__ */