From 02c6b49f146dd5494be1eb87d25eed85f4b3fbd4 Mon Sep 17 00:00:00 2001 From: Cheong Date: Fri, 10 Oct 2014 14:30:06 +0800 Subject: [PATCH 1/2] Adjusted pin assignment for the BLE Nano board. --- .../TARGET_RBLAB_BLENANO/PinNames.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/PinNames.h b/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/PinNames.h index b3d52578a4..8111b285ee 100644 --- a/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/PinNames.h +++ b/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/PinNames.h @@ -139,17 +139,16 @@ typedef enum { I2C_SCL1 = p15, */ - D0 = p9, - D1 = p11, - D2 = p8, - D3 = p10, -// D4 = p, - D5 = p7, + D0 = p11, + D1 = p9, + D2 = p10, + D3 = p8, + D4 = p28, + D5 = p29, D6 = p15, - D7 = p29, - + D7 = p7, +/* D8 = p28, -/* D9 = p18, D10 = p14, D11 = p12, From 68f9b5e8473e667fe58f31cacedcefeddefcd80b Mon Sep 17 00:00:00 2001 From: Cheong Date: Fri, 10 Oct 2014 15:27:46 +0800 Subject: [PATCH 2/2] Clean up and fixes. --- .../TARGET_RBLAB_BLENANO/PinNames.h | 30 ++----------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/PinNames.h b/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/PinNames.h index 8111b285ee..08ef2a2165 100644 --- a/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/PinNames.h +++ b/libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/PinNames.h @@ -98,14 +98,8 @@ typedef enum { P0_29 = p29, P0_30 = p30, - LED = p19 + LED = p19, LED1 = p19, -// LED2 = p19, -// LED3 = p19, -// LED4 = p19, - -// BUTTON1 = p16, -// BUTTON2 = p17, RX_PIN_NUMBER = p11, TX_PIN_NUMBER = p9, @@ -134,11 +128,6 @@ typedef enum { I2C_SDA0 = p10, I2C_SCL0 = p8, -/* - I2C_SDA1 = p13, - I2C_SCL1 = p15, -*/ - D0 = p11, D1 = p9, D2 = p10, @@ -147,22 +136,9 @@ typedef enum { D5 = p29, D6 = p15, D7 = p7, -/* - D8 = p28, - D9 = p18, - D10 = p14, - D11 = p12, - D12 = p13, -*/ - D13 = p19, -/* - D14 = p29, // I2C - SDA - D15 = p28, // I2C - SCL - D16 = p25, // SPI - SCK - D17 = p22, // SPI - MISO - D18 = p20, // SPI - MOSI -*/ + D13 = p19, + A0 = p1, A1 = p2, A2 = p3,