mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccoll...@apache.org
Subject [01/14] incubator-mynewt-core git commit: nrf52dk-uart - Clear state on open.
Date Thu, 04 Aug 2016 02:59:25 GMT
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 <ccollins@apache.org>
Authored: Tue Aug 2 09:58:49 2016 -0700
Committer: Christopher Collins <ccollins@apache.org>
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;


Mime
View raw message