cc2538: uart: Fix crippled output occurring upon lpm_enter()
lpm_enter() must not enter PM1+ if the UART TX FIFO is not empty. Otherwise, the UART clock gets disabled, and its TX is broken. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
This commit is contained in:
parent
0692ee251d
commit
b8b54a033c
3 changed files with 14 additions and 2 deletions
|
@ -182,7 +182,7 @@ typedef bool (*lpm_periph_permit_pm1_func_t)(void);
|
|||
* \param permit_pm1_func Pointer to the function
|
||||
*
|
||||
* Some peripherals are sensitive to PM changes. For instance, we don't want to
|
||||
* drop to PM1+ if the USB PLL is active.
|
||||
* drop to PM1+ if the USB PLL is active or if the UART TX FIFO is not clear.
|
||||
*
|
||||
* When changing power modes, the LPM driver will call all FPs registered with
|
||||
* this function. The peripheral's function will return true or false to permit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue