[rtems commit] bsp/tms570: Avoid errno for debug console
Sebastian Huber
sebh at rtems.org
Mon Jan 15 09:36:31 UTC 2024
Module: rtems
Branch: master
Commit: 27e0abbdb5a9c91ffd0276a5ea84ed41d359d490
Changeset: http://git.rtems.org/rtems/commit/?id=27e0abbdb5a9c91ffd0276a5ea84ed41d359d490
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Dec 21 15:16:47 2023 +0100
bsp/tms570: Avoid errno for debug console
Update #4982.
---
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;
}
More information about the vc
mailing list