]> www.fi.muni.cz Git - tinyboard.git/blobdiff - projects/step-up/lights.h
Power management - make every module enable power for its own HW.
[tinyboard.git] / projects / step-up / lights.h
index 772613ac513b34943450c4182a64302f545d5f6e..e47aa96c61339482524cb9a7beec5785d298dad9 100644 (file)
@@ -4,7 +4,7 @@
 #define TESTING_FW 1
 
 #define N_LEDS 7
-#define N_PWMLEDS 3
+#define N_PWMLEDS 2
 #define N_PWMLED_MODES 4
 
 #define N_BUTTONS 2
@@ -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 0x780
+#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;