]> www.fi.muni.cz Git - tinyboard.git/blobdiff - projects/step-up/lights.h
pwm.c: single PWM channel only
[tinyboard.git] / projects / step-up / lights.h
index 986ffcb7ec935eac3ae6faef0881b26d844e0cb7..e47aa96c61339482524cb9a7beec5785d298dad9 100644 (file)
@@ -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;