We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d62b473 commit 8411134Copy full SHA for 8411134
targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/api/analogin_api.c
@@ -42,9 +42,9 @@ void analogin_init(analogin_t *obj, PinName pin)
42
uint32_t pin_number = pin & 0x1F;
43
uint8_t port_number = pin / 32;
44
45
- /* Clear the PDEN_ADC0 bit in the PDRUNCFG0 */
+ /* Clear the DIGIMODE bit */
46
reg = IOCON->PIO[port_number][pin_number] & ~IOCON_PIO_DIGIMODE_MASK;
47
- reg &= ~(1UL << SYSCON_PDRUNCFG_PDEN_ADC0_SHIFT);
+ reg &= ~(1UL << IOCON_PIO_DIGIMODE_SHIFT);
48
IOCON->PIO[port_number][pin_number] = reg;
49
50
ADC_ClockPower_Configuration();
0 commit comments