[rtems commit] bsp/zynq-uart: Remove zynq_uart_instances from header
Sebastian Huber
sebh at rtems.org
Thu Apr 11 05:29:29 UTC 2019
Module: rtems
Branch: master
Commit: b0c420b92fe2ace36e02ba63a6a07fb77e277059
Changeset: http://git.rtems.org/rtems/commit/?id=b0c420b92fe2ace36e02ba63a6a07fb77e277059
Author: Jeff Kubascik <jeff.kubascik at dornerworks.com>
Date: Wed Apr 10 19:38:52 2019 -0400
bsp/zynq-uart: Remove zynq_uart_instances from header
This variable is BSP specific and should be removed from the driver
header file.
Update #3682.
---
bsps/arm/xilinx-zynq/console/debug-console.c | 1 +
bsps/arm/xilinx-zynq/include/bsp.h | 3 +++
bsps/arm/xilinx-zynq/include/bsp/zynq-uart.h | 4 +---
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 8930b4f..3b1e1e2 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 111bacc..6c2759c 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 3aabdca..20c3c9b 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
More information about the vc
mailing list