Skip to content

Commit 51025c5

Browse files
committed
Merge pull request #458 from Cheong2K/master
[RBL nRF51] Fixed pins for RBL nRF51822 board.
2 parents c73b091 + 300dbd6 commit 51025c5

File tree

1 file changed

+24
-17
lines changed
  • libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822

1 file changed

+24
-17
lines changed

libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822/PinNames.h

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ typedef enum {
9898
P0_29 = p29,
9999
P0_30 = p30,
100100

101-
LED1 = p18,
102-
LED2 = p19,
103-
LED3 = p18,
104-
LED4 = p19,
101+
LED1 = p15,
102+
LED2 = p15,
103+
LED3 = p15,
104+
LED4 = p15,
105105

106106
BUTTON1 = p16,
107107
BUTTON2 = p17,
@@ -114,18 +114,16 @@ typedef enum {
114114
// mBed interface Pins
115115
USBTX = TX_PIN_NUMBER,
116116
USBRX = RX_PIN_NUMBER,
117-
118-
/*
117+
119118
SPI_PSELMOSI0 = p20,
120119
SPI_PSELMISO0 = p22,
121-
SPI_PSELSS0 = p24,
120+
SPI_PSELSS0 = p14,
122121
SPI_PSELSCK0 = p25,
123122

124-
SPI_PSELMOSI1 = p12,
125-
SPI_PSELMISO1 = p13,
123+
SPI_PSELMOSI1 = p20,
124+
SPI_PSELMISO1 = p22,
126125
SPI_PSELSS1 = p14,
127-
SPI_PSELSCK1 = p15,
128-
*/
126+
SPI_PSELSCK1 = p25,
129127

130128
SPIS_PSELMOSI = p20,
131129
SPIS_PSELMISO = p22,
@@ -137,8 +135,8 @@ typedef enum {
137135

138136
/*
139137
I2C_SDA1 = p13,
140-
I2C_SCL1 = p15,
141-
*/
138+
I2C_SCL1 = p15,
139+
/*
142140

143141
D0 = p11,
144142
D1 = p9,
@@ -156,10 +154,12 @@ typedef enum {
156154
D12 = p13,
157155
D13 = p15,
158156

159-
/*
160-
D14 = p5,
161-
D15 = p6,
162-
*/
157+
D14 = p29, // I2C - SDA
158+
D15 = p28, // I2C - SCL
159+
160+
D16 = p25, // SPI - SCK
161+
D17 = p22, // SPI - MISO
162+
D18 = p20, // SPI - MOSI
163163

164164
A0 = p6,
165165
A1 = p5,
@@ -168,6 +168,13 @@ typedef enum {
168168
A4 = p2,
169169
A5 = p1,
170170

171+
D19 = A0,
172+
D20 = A1,
173+
D21 = A2,
174+
D22 = A3,
175+
D23 = A4,
176+
D24 = A5,
177+
171178
// Not connected
172179
NC = (int)0xFFFFFFFF
173180
} PinName;

0 commit comments

Comments
 (0)