mbed library sources with changes for Serial configuration for SLIP

Dependents:   SLIP_SIM900

Fork of mbed-src by mbed official

Files at this revision

API Documentation at this revision

Comitter:
janekm
Date:
Thu Nov 05 08:10:32 2015 +0000
Parent:
635:a11c0372f0ba
Commit message:
Changed pin configuration for serial port

Changed in this revision

targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_HRM1017/PinNames.h Show annotated file Show diff for this revision Revisions of this file
targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c Show annotated file Show diff for this revision Revisions of this file
diff -r a11c0372f0ba -r 6fe765be4226 targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_HRM1017/PinNames.h
--- a/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_HRM1017/PinNames.h	Wed Sep 30 17:00:09 2015 +0100
+++ b/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_HRM1017/PinNames.h	Thu Nov 05 08:10:32 2015 +0000
@@ -106,10 +106,10 @@
     BUTTON1 = p16,
     BUTTON2 = p17,
         
-    RX_PIN_NUMBER = p11,
-    TX_PIN_NUMBER = p9,
-    CTS_PIN_NUMBER = p10,
-    RTS_PIN_NUMBER = p8,
+    RX_PIN_NUMBER = p10,
+    TX_PIN_NUMBER = p8,
+    CTS_PIN_NUMBER = p30,
+    RTS_PIN_NUMBER = p30,
 
     // mBed interface Pins
     USBTX = TX_PIN_NUMBER,
diff -r a11c0372f0ba -r 6fe765be4226 targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c
--- a/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c	Wed Sep 30 17:00:09 2015 +0100
+++ b/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c	Thu Nov 05 08:10:32 2015 +0000
@@ -79,9 +79,9 @@
 
     obj->index = 0;
     
-    obj->uart->PSELRTS = RTS_PIN_NUMBER;
+    //obj->uart->PSELRTS = RTS_PIN_NUMBER;
     obj->uart->PSELTXD = tx; //TX_PIN_NUMBER;
-    obj->uart->PSELCTS = CTS_PIN_NUMBER;
+    //obj->uart->PSELCTS = CTS_PIN_NUMBER;
     obj->uart->PSELRXD = rx; //RX_PIN_NUMBER;
 
     // set rx/tx pins in PullUp mode