Skip to content

Commit 4e54e07

Browse files
committed
Merge pull request #451 from Cheong2K/master
Change pins for RBL nRF51822 board.
2 parents c8b763e + 381fec2 commit 4e54e07

File tree

1 file changed

+33
-27
lines changed
  • libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822

1 file changed

+33
-27
lines changed

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

Lines changed: 33 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ typedef enum {
114114
// mBed interface Pins
115115
USBTX = TX_PIN_NUMBER,
116116
USBRX = RX_PIN_NUMBER,
117-
117+
118+
/*
118119
SPI_PSELMOSI0 = p20,
119120
SPI_PSELMISO0 = p22,
120121
SPI_PSELSS0 = p24,
@@ -124,43 +125,48 @@ typedef enum {
124125
SPI_PSELMISO1 = p13,
125126
SPI_PSELSS1 = p14,
126127
SPI_PSELSCK1 = p15,
127-
128-
SPIS_PSELMOSI = p12,
129-
SPIS_PSELMISO = p13,
128+
*/
129+
130+
SPIS_PSELMOSI = p20,
131+
SPIS_PSELMISO = p22,
130132
SPIS_PSELSS = p14,
131-
SPIS_PSELSCK = p15,
133+
SPIS_PSELSCK = p25,
132134

133-
I2C_SDA0 = p22,
134-
I2C_SCL0 = p20,
135+
I2C_SDA0 = p29,
136+
I2C_SCL0 = p28,
135137

138+
/*
136139
I2C_SDA1 = p13,
137140
I2C_SCL1 = p15,
138-
139-
D0 = p7,
140-
D1 = p8,
141-
D2 = p9,
142-
D3 = p10,
143-
D4 = p11,
144-
D5 = p12,
145-
D6 = p13,
141+
*/
142+
143+
D0 = p11,
144+
D1 = p9,
145+
D2 = p10,
146+
D3 = p8,
147+
D4 = p21,
148+
D5 = p23,
149+
D6 = p16,
146150
D7 = p17,
147151

148-
D8 = p18,
149-
D9 = p23,
150-
D10 = p24,
151-
D11 = p25,
152-
D12 = p28,
153-
D13 = p29,
152+
D8 = p19,
153+
D9 = p18,
154+
D10 = p14,
155+
D11 = p12,
156+
D12 = p13,
157+
D13 = p15,
154158

159+
/*
155160
D14 = p5,
156161
D15 = p6,
162+
*/
157163

158-
A0 = p1,
159-
A1 = p2,
160-
A2 = p3,
161-
A3 = p4,
162-
A4 = p5,
163-
A5 = p6,
164+
A0 = p6,
165+
A1 = p5,
166+
A2 = p4,
167+
A3 = p3,
168+
A4 = p2,
169+
A5 = p1,
164170

165171
// Not connected
166172
NC = (int)0xFFFFFFFF

0 commit comments

Comments
 (0)