From 9008380c6719bbbd88b9e167da4c4f36689e54e7 Mon Sep 17 00:00:00 2001 From: Cheong Date: Thu, 21 Aug 2014 10:38:02 +0800 Subject: [PATCH] Fixed pins for RBL nRF51822 board. --- .../TARGET_RBLAB_NRF51822/PinNames.h | 37 ++++++++++--------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822/PinNames.h b/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822/PinNames.h index c4fe97e03b..0f8d6f0a1c 100644 --- a/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822/PinNames.h +++ b/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822/PinNames.h @@ -98,10 +98,10 @@ typedef enum { P0_29 = p29, P0_30 = p30, - LED1 = p18, - LED2 = p19, - LED3 = p18, - LED4 = p19, + LED1 = p15, + LED2 = p15, + LED3 = p15, + LED4 = p15, BUTTON1 = p16, BUTTON2 = p17, @@ -114,18 +114,16 @@ typedef enum { // mBed interface Pins USBTX = TX_PIN_NUMBER, USBRX = RX_PIN_NUMBER, - -/* + SPI_PSELMOSI0 = p20, SPI_PSELMISO0 = p22, - SPI_PSELSS0 = p24, + SPI_PSELSS0 = p14, SPI_PSELSCK0 = p25, - SPI_PSELMOSI1 = p12, - SPI_PSELMISO1 = p13, + SPI_PSELMOSI1 = p20, + SPI_PSELMISO1 = p22, SPI_PSELSS1 = p14, - SPI_PSELSCK1 = p15, -*/ + SPI_PSELSCK1 = p25, SPIS_PSELMOSI = p20, SPIS_PSELMISO = p22, @@ -137,8 +135,8 @@ typedef enum { /* I2C_SDA1 = p13, - I2C_SCL1 = p15, -*/ + I2C_SCL1 = p15, +/* D0 = p11, D1 = p9, @@ -156,10 +154,15 @@ typedef enum { D12 = p13, D13 = p15, -/* - D14 = p5, - D15 = p6, -*/ + D14 = p29, // I2C - SDA + D15 = p28, // I2C - SCL + + D16 = p25 // SPI - SCK + D17 = p22 // SPI - MISO + D18 = p20 // SPI - MOSI + + D19 = p24 + D20 = p25 A0 = p6, A1 = p5,