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 a64b192 commit a934ba0Copy full SHA for a934ba0
targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC/pinmap.c
@@ -33,7 +33,7 @@ void pin_function(PinName pin, int function)
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);
+ reg = (reg & ~0x7) | (function & IOCON_PIO_FUNC_MASK);
37
IOCON->PIO[port_number][pin_number] = reg;
38
}
39
0 commit comments