]> www.fi.muni.cz Git - tinyboard.git/blobdiff - projects/step-up/lights.h
Make jiffies (timer) about 100 Hz.
[tinyboard.git] / projects / step-up / lights.h
index e47aa96c61339482524cb9a7beec5785d298dad9..64fce03dfb6ccc58f5dc52fae89edb4ef0151e59 100644 (file)
@@ -3,8 +3,6 @@
 
 #define TESTING_FW 1
 
-#define N_LEDS 7
-#define N_PWMLEDS 2
 #define N_PWMLED_MODES 4
 
 #define N_BUTTONS 2
@@ -26,6 +24,7 @@ void inline log_word(uint16_t word) { }
 
 /* adc.c */
 #define PWMLED_ADC_SHIFT 1 /* 1<<1 measurements per single callback */
+extern volatile uint16_t jiffies;
 void init_adc();
 void susp_adc();
 void timer_start_slow_adcs();
@@ -37,15 +36,11 @@ void susp_pwm();
 void pwm_off();
 void pwm_set(uint8_t stride);
 
-/* tmr.c */
-extern volatile uint16_t jiffies;
-void init_tmr();
-void susp_tmr();
-
 /* pwmled.c */
 void init_pwmled();
-void pwmled_adc(unsigned char n, uint16_t adcval);
-void pwmled_set_mode(unsigned char n, unsigned char mode);
+void pwmled_adc(uint16_t adcval);
+void pwmled_set_target(unsigned char mode);
+void pwmled_on_off(unsigned char on);
 
 /* gpio.c */
 void init_gpio();