Skip to content

Update am_hal_uart.c #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 2.5.1-patch-uart-fifo-config
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion mcu/apollo3/hal/am_hal_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,17 @@ am_hal_uart_power_control(void *pHandle,
// Clear all interrupts before sleeping as having a pending UART
// interrupt burns power.
//
am_hal_uart_interrupt_clear(pState, 0xFFFFFFFF);
am_hal_uart_interrupt_clear(pState, 0xFFFFFFFF);

//
// The call to am_hal_pwrctrl_periph_disable will leave some values
// of the UARTn->CR register powered up which causes hte current
// draw to be 2-3oonA higher than expected.
//
// the below adjustment is acceptable since the pState->sRegState.regCR
// will retain the state if requested.
//
UARTn(ui32Module)->CR = 0;

//
// Disable power control.
Expand Down