#ifndef LIGHTS_H__
#define LIGHTS_H__ 1
+#define TESTING_FW 1
+
#define N_LEDS 7
#define N_PWMLEDS 3
#define N_PWMLED_MODES 4
#endif
/* adc.c */
+#define PWMLED_ADC_SHIFT 3 /* 1<<3 measurements per single callback */
void init_adc();
void susp_adc();
/* pwm.c */
-#define PWM_MAX 0x1E4 /* This should be different than ADC frequency 125 kHz */
-#define PWM_STEP_SHIFT 2 /* second parameter of pwm_set is shifted by
- * PWM_STEP_SHIFT bits to the right before setting
- * into HW */
-
+/*
+ * 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
void init_pwm();
void susp_pwm();
void pwm_off(unsigned char n);