Skip to content
Commit 1b4f7e56 authored by Shlomi Vaknin's avatar Shlomi Vaknin Committed by Kumar Gala
Browse files

drivers: uart: stm32: fix handling interrupt and async api in isr



When using the uart driver with interrupt and async api
at the same time (instance for interrupt and instance for async),
the transmission complete interrupt was handled in the async
handling section, even when interrupt driven api is used.
This caused transmission to not work properly in interrupt mode.
The fix is to move the interrupt mode handling to the begginning
of the isr. If async mode is used then interrupt mode code
will not be run.

Signed-off-by: default avatarShlomi Vaknin <shlomi.39sd@gmail.com>
parent 1100326f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment