Skip to content

Commit 820309e

Browse files
c1728p9adbridge
authored andcommitted
Define Arduino pins for the LPC812
Define the unconnected Arduino pins to NC so they are all defined.
1 parent 0603785 commit 820309e

File tree

1 file changed

+10
-3
lines changed
  • targets/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812

1 file changed

+10
-3
lines changed

targets/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/PinNames.h

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ typedef enum {
2828
} PinDirection;
2929

3030
typedef enum {
31+
// Not connected
32+
NC = (int)0xFFFFFFFF,
33+
3134
P0_0 = 0,
3235
P0_1 = 1,
3336
P0_2 = 2,
@@ -52,6 +55,8 @@ typedef enum {
5255
D2 = P0_6,
5356
D3 = P0_8,
5457
D4 = P0_9,
58+
D5 = NC,
59+
D6 = NC,
5560

5661
D7 = P0_7,
5762
D8 = P0_17,
@@ -63,6 +68,10 @@ typedef enum {
6368
D14 = P0_10,
6469
D15 = P0_11,
6570

71+
A0 = NC,
72+
A1 = NC,
73+
A2 = NC,
74+
A3 = NC,
6675
A4 = P0_10,
6776
A5 = P0_11,
6877

@@ -80,9 +89,7 @@ typedef enum {
8089
// Serial to USB pins
8190
USBTX = P0_6,
8291
USBRX = P0_1,
83-
84-
// Not connected
85-
NC = (int)0xFFFFFFFF,
92+
8693
} PinName;
8794

8895
typedef enum {

0 commit comments

Comments
 (0)