summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bsps/arm/xilinx-zynq/console/debug-console.c1
-rw-r--r--bsps/arm/xilinx-zynq/include/bsp.h3
-rw-r--r--bsps/arm/xilinx-zynq/include/bsp/zynq-uart.h4
3 files changed, 5 insertions, 3 deletions
diff --git a/bsps/arm/xilinx-zynq/console/debug-console.c b/bsps/arm/xilinx-zynq/console/debug-console.c
index 8930b4fda4..3b1e1e212b 100644
--- a/bsps/arm/xilinx-zynq/console/debug-console.c
+++ b/bsps/arm/xilinx-zynq/console/debug-console.c
@@ -28,6 +28,7 @@
#include <rtems/bspIo.h>
#include <rtems/sysinit.h>
+#include <bsp.h>
#include <bsp/zynq-uart.h>
#include <bspopts.h>
diff --git a/bsps/arm/xilinx-zynq/include/bsp.h b/bsps/arm/xilinx-zynq/include/bsp.h
index 111bacc8ab..6c2759ce50 100644
--- a/bsps/arm/xilinx-zynq/include/bsp.h
+++ b/bsps/arm/xilinx-zynq/include/bsp.h
@@ -54,6 +54,7 @@
#include <bsp/default-initial-extension.h>
#include <bsp/start.h>
+#include <bsp/zynq-uart.h>
#ifdef __cplusplus
extern "C" {
@@ -73,6 +74,8 @@ extern "C" {
#define BSP_ARM_L2C_310_ID 0x410000c8
+extern zynq_uart_context zynq_uart_instances[2];
+
/**
* @brief Zynq specific set up of the MMU.
*
diff --git a/bsps/arm/xilinx-zynq/include/bsp/zynq-uart.h b/bsps/arm/xilinx-zynq/include/bsp/zynq-uart.h
index 3aabdca65d..20c3c9b653 100644
--- a/bsps/arm/xilinx-zynq/include/bsp/zynq-uart.h
+++ b/bsps/arm/xilinx-zynq/include/bsp/zynq-uart.h
@@ -53,9 +53,7 @@ typedef struct {
rtems_vector_number irq;
} zynq_uart_context;
-const rtems_termios_device_handler zynq_uart_handler;
-
-extern zynq_uart_context zynq_uart_instances[2];
+extern const rtems_termios_device_handler zynq_uart_handler;
#define ZYNQ_UART_DEFAULT_BAUD 115200