mbed library sources. Supersedes mbed-src.
Fork of mbed-dev by
Revision 35:cb6c51ca2109, committed 2015-12-13
- Comitter:
- mbed_official
- Date:
- Sun Dec 13 13:45:10 2015 +0000
- Parent:
- 34:bb6061527455
- Child:
- 36:fae6b962219e
- Commit message:
- Synchronized with git revision 12b02b95aecad00907d16005723cc6af4439735e
Full URL: https://github.com/mbedmicro/mbed/commit/12b02b95aecad00907d16005723cc6af4439735e/
Fix glitch when initializing NRF51-DK serial port
Changed in this revision
targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c | Show annotated file Show diff for this revision Revisions of this file |
--- a/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c Mon Dec 07 08:00:11 2015 +0000 +++ b/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c Sun Dec 13 13:45:10 2015 +0000 @@ -58,6 +58,8 @@ obj->uart = (NRF_UART_Type *)uart; //pin configurations -- + NRF_GPIO->OUT |= (1 << tx); + NRF_GPIO->OUT |= (1 << RTS_PIN_NUMBER); NRF_GPIO->DIR |= (1 << tx); //TX_PIN_NUMBER); NRF_GPIO->DIR |= (1 << RTS_PIN_NUMBER);