pwmled_t pwmleds[N_PWMLEDS];
-#define SENSE_MOHM 1000 /* 1 Ohm */
+#define SENSE_MOHM 3000 /* 1 Ohm */
/*
* Voltage in uV at ADC reading == 1 is 1100/gain/1024
* ADC module returns sum of 1 << PWMLED_ADC_SHIFT measurements
static uint16_t adc_vals[N_PWMLEDS*N_PWMLED_MODES] = {
/* pwmled0 */
+ MA_GAIN_TO_ADC( 2, 1),
MA_GAIN_TO_ADC( 5, 1),
MA_GAIN_TO_ADC( 10, 1),
- MA_GAIN_TO_ADC( 15, 1),
MA_GAIN_TO_ADC( 20, 1),
/* pwmled1 */
- MA_GAIN_TO_ADC( 5, 1),
- MA_GAIN_TO_ADC( 10, 1),
- MA_GAIN_TO_ADC( 15, 1),
+ MA_GAIN_TO_ADC( 2, 1),
+ MA_GAIN_TO_ADC( 8, 1),
+ MA_GAIN_TO_ADC( 14, 1),
MA_GAIN_TO_ADC( 20, 1),
};