drivers: serial: stm32: remove unnecessary flag clear
According to reference manual, use of TC is "to avoid corrupting the last transmission when the USART is disabled or enters Halt mode.". It is safe to remove it since it is not checked when CONFIG_PM=n. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
e3f4907efe
commit
a7f13755ed
1 changed files with 0 additions and 2 deletions
|
@ -459,8 +459,6 @@ static void uart_stm32_poll_out(const struct device *dev,
|
|||
/* do not allow system to suspend until transmission has completed */
|
||||
pm_constraint_set(PM_STATE_SUSPEND_TO_IDLE);
|
||||
|
||||
LL_USART_ClearFlag_TC(UartInstance);
|
||||
|
||||
LL_USART_TransmitData8(UartInstance, (uint8_t)c);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue