]> www.fi.muni.cz Git - bike-lights.git/blobdiff - firmware/lights.h
adc.c: make the ADC handlers non-atomic
[bike-lights.git] / firmware / lights.h
index fe8b59f10730c097394cec835b3dbab7206796d1..15e86b88df84c5b5e3f5cde6460d846cfd1446fd 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef LIGHTS_H__
 #define LIGHTS_H__ 1
 
+#define TESTING_FW 1
+
 #define N_LEDS 7
 #define N_PWMLEDS 3
 #define N_PWMLED_MODES 4
@@ -23,6 +25,7 @@ void inline log_word(uint16_t word) { }
 #endif
 
 /* adc.c */
+#define PWMLED_ADC_SHIFT 3 /* 1<<3 measurements per single callback */
 void init_adc();
 void susp_adc();