Skip to content

Commit 5688870

Browse files
committed
add comment for uart transceiver power
1 parent 798c390 commit 5688870

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/nRF5/Uart.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ void Uart::end()
163163
nrfUart->TASKS_STOPTX = 0x1UL;
164164

165165
// Wait for TXSTOPPED event and for RXTO event
166+
// This is required before disabling UART to fully power down transceiver PHY.
167+
// Otherwise transceiver will continue to consume ~900uA
166168
while ( !(nrfUart->EVENTS_TXSTOPPED && nrfUart->EVENTS_RXTO) ) yield();
167169

168170
nrfUart->ENABLE = UARTE_ENABLE_ENABLE_Disabled;

0 commit comments

Comments
 (0)