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.
2 parents a19a528 + 2670f79 commit 4e1c04fCopy full SHA for 4e1c04f
targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC/pinmap.c
@@ -29,6 +29,9 @@ void pin_function(PinName pin, int function)
29
CLOCK_EnableClock(gpio_clocks[port_number]);
30
CLOCK_EnableClock(kCLOCK_Iocon);
31
32
+ /* Set the DIGIMODE bit */
33
+ IOCON->PIO[port_number][pin_number] |= IOCON_PIO_DIGIMODE_MASK;
34
+
35
reg = IOCON->PIO[port_number][pin_number];
36
reg = (reg & ~0x7) | (function & 0x7);
37
IOCON->PIO[port_number][pin_number] = reg;
0 commit comments