[PATCH 0/1] *** bsps/stm32f4: Fix simple console driver bug ***
Duc Doan
dtbpkmte at gmail.com
Wed Jul 27 10:02:53 UTC 2022
The console does not work for applications that use simple
console driver, including testsuites applications.
The reason is that Console_Port_Tbl is NULL, which causes
a fatal error when trying to get the console_tbl and usart
instance. This patch fixes that by making usart_write_polled
use a default console_tbl instead of a value from
Console_Port_Tbl. This default instance is the USART with
smallest number that is enabled (the first element in
Console_Configuration_Ports).
Duc Doan (1):
bsps/stm32f4: Fix usart_write_polled()
bsps/arm/stm32f4/console/console-config.c | 4 +++-
bsps/arm/stm32f4/console/usart.c | 6 ++++++
bsps/arm/stm32f4/include/bsp/usart.h | 3 +++
3 files changed, 12 insertions(+), 1 deletion(-)
--
2.37.1
More information about the devel
mailing list