Skip to content
Commit 435d5d1a authored by Jeroen van Dooren's avatar Jeroen van Dooren Committed by Carles Cufí
Browse files

drivers: serial: stm32: rework code for max re-use in wide data support



Restructuring code for poll_in/poll_out/fifo_fill/fifo_read because for
wide data support, all code is identical except the calls to
LL_USART_{ReceiveData8/TransmitData8}.
This allows both implementations, 8 and 9 bit data-width to call a
visitor function, passing the either the 8 bit or 9 bit data-width
function pointer.

Signed-off-by: default avatarJeroen van Dooren <jeroen.van.dooren@nobleo.nl>
parent 250e1f93
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment