Repository: incubator-mynewt-core Updated Branches: refs/heads/develop 21638d963 -> 29b69ddf2
nrf52dk-uart - Clear state on open. Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/3d3f81db Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/3d3f81db Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/3d3f81db Branch: refs/heads/develop Commit: 3d3f81db963be5e09184e8b6ad4a8d96ebae14c7 Parents: 93c01c5 Author: Christopher Collins <[email protected]> Authored: Tue Aug 2 09:58:49 2016 -0700 Committer: Christopher Collins <[email protected]> Committed: Wed Aug 3 19:54:15 2016 -0700 ---------------------------------------------------------------------- hw/mcu/nordic/nrf52xxx/src/hal_uart.c | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/3d3f81db/hw/mcu/nordic/nrf52xxx/src/hal_uart.c ---------------------------------------------------------------------- diff --git a/hw/mcu/nordic/nrf52xxx/src/hal_uart.c b/hw/mcu/nordic/nrf52xxx/src/hal_uart.c index ad1700c..eb9cc32 100644 --- a/hw/mcu/nordic/nrf52xxx/src/hal_uart.c +++ b/hw/mcu/nordic/nrf52xxx/src/hal_uart.c @@ -316,6 +316,8 @@ hal_uart_config(int port, int32_t baudrate, uint8_t databits, uint8_t stopbits, NRF_UARTE0->RXD.MAXCNT = sizeof(u->u_rx_buf); NRF_UARTE0->TASKS_STARTRX = 1; + u->u_rx_stall = 0; + u->u_tx_started = 0; u->u_open = 1; return 0;
