mbed library sources with changes for Serial configuration for SLIP
Fork of mbed-src by
Revision 636:6fe765be4226, committed 2015-11-05
- 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
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