X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=projects%2Fstep-up%2Flights.h;h=4a0b6b9753fdab7d6e088e18324b40e83187fba4;hb=2640064638eb52a528dde7d4623941f5e223b0ca;hp=6cf5a3020a02669eabc112569ea456563ed5c15e;hpb=fbbdcc41a590e41e87a05d3cac31f893cb52f8cb;p=tinyboard.git diff --git a/projects/step-up/lights.h b/projects/step-up/lights.h index 6cf5a30..4a0b6b9 100644 --- a/projects/step-up/lights.h +++ b/projects/step-up/lights.h @@ -21,11 +21,14 @@ void inline log_word(uint16_t word) { } /* adc.c */ #define PWMLED_ADC_SHIFT 1 /* 1<<1 measurements per single callback */ extern volatile unsigned char need_battery_adc; +extern volatile unsigned char need_pwmled_adc; +extern volatile unsigned char adc_enabled; void init_adc(); void susp_adc(); /* pwm.c */ #define PWM_MAX 0xFF +extern volatile unsigned char pwm_enabled; void init_pwm(); void susp_pwm(); void pwm_off();