diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-05-24 11:29:10 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-05-26 06:56:11 +0200 |
commit | 5da3ff47df25d54b3d2650c1887cdff1492be7e8 (patch) | |
tree | 3b25c127bf4ffc70d87300367f87c159c98e0b86 | |
parent | arm/xilinx-zynq: Do not provide legacy API (diff) | |
download | rtems-5da3ff47df25d54b3d2650c1887cdff1492be7e8.tar.bz2 |
arm/xilinx-zynq: Initialize debug console once
-rw-r--r-- | bsps/arm/xilinx-zynq/console/debug-console.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bsps/arm/xilinx-zynq/console/debug-console.c b/bsps/arm/xilinx-zynq/console/debug-console.c index 6e89ad0323..d398ca7988 100644 --- a/bsps/arm/xilinx-zynq/console/debug-console.c +++ b/bsps/arm/xilinx-zynq/console/debug-console.c @@ -50,11 +50,17 @@ static void zynq_debug_console_out(char c) zynq_uart_write_polled(base, c); } +static void zynq_debug_console_early_init(char c); + static void zynq_debug_console_init(void) { rtems_termios_device_context *base = &zynq_uart_instances[BSP_CONSOLE_MINOR].base; + if (BSP_output_char != zynq_debug_console_early_init) { + return; + } + zynq_uart_initialize(base); BSP_output_char = zynq_debug_console_out; } |