]> www.fi.muni.cz Git - bike-lights.git/blobdiff - firmware/lights.h
ambient light sensor: configurable # of readings
[bike-lights.git] / firmware / lights.h
index 8fce475ace0f77de596ae7539ffa3fdae9fa04b0..e9d48aadaddd3494c0a4365d5d7c06d8e99830ee 100644 (file)
@@ -28,6 +28,7 @@ void inline log_word(uint16_t word) { }
 #define PWMLED_ADC_SHIFT 3 /* 1<<3 measurements per single callback */
 void init_adc();
 void susp_adc();
+void timer_start_adcs();
 
 /* pwm.c */
 /*
@@ -58,6 +59,7 @@ void susp_gpio();
 void gpio_set(unsigned char n, unsigned char on);
 
 /* ambient.c */
+#define AMBIENT_ADC_SHIFT 0    /* 1 measurement per callback */
 void init_ambient();
 extern volatile unsigned char ambient_zone;
 void ambient_adc(uint16_t adc_val);