mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #1472 from c1728p9/nrf51_uart_glitch
Fix glitch when initializing NRF51-DK serial portpull/1473/head
commit
12b02b95ae
|
@ -58,6 +58,8 @@ void serial_init(serial_t *obj, PinName tx, PinName rx) {
|
|||
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue