Skip to content

Commit a0ff95b

Browse files
committed
LPC55S69: Add restricted GPIO pins for FPGA testing
1 parent 83b7b6d commit a0ff95b

File tree

1 file changed

+21
-0
lines changed
  • targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC55S69/TARGET_LPCXpresso

1 file changed

+21
-0
lines changed

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC55S69/TARGET_LPCXpresso/PeripheralPins.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,24 @@
1616

1717
#include "PeripheralPins.h"
1818
#include "PeripheralPinMaps.h"
19+
20+
// List of GPIOs with limited functionality
21+
const PinList *pinmap_gpio_restricted_pins()
22+
{
23+
static const PinName pins[] = {
24+
A4, // fixed pull-up (for I2C)
25+
A5, // fixed pull-up (for I2C)
26+
D5, // fixed pull-up (for LED)
27+
D3, // fixed pull-up (for LED)
28+
D4, // fixed pull-up (for LED)
29+
D7, // fixed pull-up
30+
D15, // fixed pull-up (for I2C)
31+
D14 // fixed pull-up (for I2C)
32+
};
33+
34+
static const PinList pin_list = {
35+
sizeof(pins) / sizeof(pins[0]),
36+
pins
37+
};
38+
return &pin_list;
39+
}

0 commit comments

Comments
 (0)