AmbiqSuiteSDK icon indicating copy to clipboard operation
AmbiqSuiteSDK copied to clipboard

Update am_hal_uart.c

Open RichardSWheatley opened this issue 4 years ago • 0 comments
trafficstars

The call to am_hal_pwrctrl_periph_disable will leave some values of the UARTn->CR register powered up and the current draw to be 200-300nA higher than expected. The below adjustment is acceptable since the pState->sRegState.regCR will retain the state and return the state if requested..

UARTn(ui32Module)->CR = 0;

RichardSWheatley avatar Nov 16 '21 16:11 RichardSWheatley