Replace adc-gain DT binding with adc-inputs

Preparation for cleanup of ADC driver.
This commit is contained in:
Martin Jäger
2020-06-26 15:17:53 +02:00
parent 3c9a6e49f1
commit 1b6c56d25b
12 changed files with 187 additions and 184 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ void daq_update()
#if DT_OUTPUTS_PWM_SWITCH_PRESENT
pwm_switch.ext_voltage = lv_bus.voltage -
adc_scaled(ADC_POS_V_PWM, vref, ADC_GAIN(V_PWM), DT_ADC_GAIN_V_PWM_RAW_OFFSET);
adc_scaled(ADC_POS_V_PWM, vref, ADC_GAIN(V_PWM), DT_ADC_INPUTS_V_PWM_OFFSET);
#endif
#if DT_OUTPUTS_LOAD_PRESENT