Move ADC peripheral setup to devicetree

Remove the ADC channel configuration from the board.h files and use new
DT macros to configure the ADC peripheral based on board.dts only.
This commit is contained in:
Martin Jäger
2020-07-20 09:07:31 +02:00
parent 1b6c56d25b
commit d283436747
21 changed files with 337 additions and 261 deletions
+1 -1
View File
@@ -260,7 +260,7 @@ static DataNode data_nodes[] = {
TS_NODE_FLOAT(0x78, "Int_degC", &dev_stat.internal_temp, 1,
ID_OUTPUT, TS_ANY_R, 0),
#if defined(PIN_ADC_TEMP_FETS) && DT_COMPAT_DCDC
#if DT_NODE_EXISTS(DT_CHILD(DT_PATH(adc_inputs), temp_fets))
TS_NODE_FLOAT(0x79, "Mosfet_degC", &dcdc.temp_mosfets, 1,
ID_OUTPUT, TS_ANY_R, 0),
#endif