[PATCH 10/47] bsp/tms570: Avoid errno for debug console

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Dec 21 14:37:43 UTC 2023


---
 bsps/arm/tms570/console/printk-support.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsps/arm/tms570/console/printk-support.c b/bsps/arm/tms570/console/printk-support.c
index 200aa13ec3..6e44ad0969 100644
--- a/bsps/arm/tms570/console/printk-support.c
+++ b/bsps/arm/tms570/console/printk-support.c
@@ -91,7 +91,7 @@ static void tms570_debug_console_init(void)
 
   tms570_sci_initialize(ctx);
   memset(&term, 0, sizeof(term));
-  cfsetospeed(&term, B115200);
+  term.c_ospeed = B115200;
   tms570_sci_set_attributes(&ctx->base, &term);
   BSP_output_char = tms570_debug_console_out;
 }
-- 
2.35.3



More information about the devel mailing list