X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=tinyboard.git;a=blobdiff_plain;f=projects%2Fstep-up%2Flights.h;h=e47aa96c61339482524cb9a7beec5785d298dad9;hp=986ffcb7ec935eac3ae6faef0881b26d844e0cb7;hb=8ebf32f3366e09e1123a1317f23545faedd9cc76;hpb=8f7b420bf4ffc810131a569425b55c9ff7994de1 diff --git a/projects/step-up/lights.h b/projects/step-up/lights.h index 986ffcb..e47aa96 100644 --- a/projects/step-up/lights.h +++ b/projects/step-up/lights.h @@ -31,17 +31,11 @@ void susp_adc(); void timer_start_slow_adcs(); /* pwm.c */ -/* - * The real Timer/Counter 1 frequency should not be too close to the - * A/D converter frequency (125 kHz). Note that this is not the Top - * value of T/C 1, it is shifted by PWM_STEP_SHIFT as described in pwm.c - */ -#define PWM_MAX 0x340 +#define PWM_MAX 0xFF void init_pwm(); void susp_pwm(); -void pwm_off(unsigned char n); -void pwm_set(unsigned char n, uint16_t stride); -void pwm_timer(); +void pwm_off(); +void pwm_set(uint8_t stride); /* tmr.c */ extern volatile uint16_t jiffies;