Skip to content

Commit bbdb244

Browse files
committed
mimxrt/machine_adc: rt117x: Initialize LPADC2.
Pins may be on the LPADC2 peripheral. Change-Id: I967b2aae07c9cc7e9ce5bc114851c2f03ae22dbb Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
1 parent 4ce2dd2 commit bbdb244

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ports/mimxrt/machine_adc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ void machine_adc_init(void) {
126126
adc_config.enableAnalogPreliminary = true;
127127
adc_config.referenceVoltageSource = kLPADC_ReferenceVoltageAlt1;
128128
LPADC_Init(LPADC1, &adc_config);
129+
LPADC_Init(LPADC2, &adc_config);
129130
}
130131

131132
#else

0 commit comments

Comments
 (0)