mirror of
https://github.com/micropython/micropython.git
synced 2026-01-28 06:40:19 +01:00
mimxrt/machine_adc: Initialize LPADC2 for rt117x.
Pins may be on the LPADC2 peripheral. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
This commit is contained in:
committed by
Damien George
parent
93692caefa
commit
85e9d7596a
@@ -126,6 +126,7 @@ void machine_adc_init(void) {
|
||||
adc_config.enableAnalogPreliminary = true;
|
||||
adc_config.referenceVoltageSource = kLPADC_ReferenceVoltageAlt1;
|
||||
LPADC_Init(LPADC1, &adc_config);
|
||||
LPADC_Init(LPADC2, &adc_config);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user