Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Revision 164:063a45287df4, committed 2017-04-11
- Comitter:
- znew711
- Date:
- Tue Apr 11 21:43:36 2017 +0000
- Parent:
- 163:1d4c9d0af1e9
- Commit message:
- life is random and unfair;
Changed in this revision
--- a/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/device.h Tue Apr 11 20:39:24 2017 +0000 +++ b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/device.h Tue Apr 11 21:43:36 2017 +0000 @@ -23,7 +23,8 @@ - +#define DEVICE_SERIAL 1 +#define DEVICE_SERIAL_FC 1
--- a/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c Tue Apr 11 20:39:24 2017 +0000 +++ b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c Tue Apr 11 21:43:36 2017 +0000 @@ -60,12 +60,12 @@ //pin configurations -- NRF_GPIO->OUT |= (1 << tx); - NRF_GPIO->OUT |= (1 << RTS_PIN_NUMBER); + //NRF_GPIO->OUT |= (1 << RTS_PIN_NUMBER); NRF_GPIO->DIR |= (1 << tx); //TX_PIN_NUMBER); - NRF_GPIO->DIR |= (1 << RTS_PIN_NUMBER); + //NRF_GPIO->DIR |= (1 << RTS_PIN_NUMBER); NRF_GPIO->DIR &= ~(1 << rx); //RX_PIN_NUMBER); - NRF_GPIO->DIR &= ~(1 << CTS_PIN_NUMBER); + //NRF_GPIO->DIR &= ~(1 << CTS_PIN_NUMBER); // set default baud rate and format @@ -85,10 +85,10 @@ obj->index = 0; - obj->uart->PSELRTS = RTS_PIN_NUMBER; obj->uart->PSELTXD = tx; //TX_PIN_NUMBER; - obj->uart->PSELCTS = CTS_PIN_NUMBER; obj->uart->PSELRXD = rx; //RX_PIN_NUMBER; + obj->uart->PSELRTS = 0xFFFFFFFF; // Disable RTS + obj->uart->PSELCTS = 0xFFFFFFFF; // Disable CTS // set rx/tx pins in PullUp mode if (tx != NC) {