[rtems commit] bsps: Provide simple console selection
Sebastian Huber
sebh at rtems.org
Mon Jun 17 07:56:10 UTC 2013
Module: rtems
Branch: master
Commit: cf46db85169d123d1071ef8f3f063f16c2f00d0f
Changeset: http://git.rtems.org/rtems/commit/?id=cf46db85169d123d1071ef8f3f063f16c2f00d0f
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Jun 17 09:57:42 2013 +0200
bsps: Provide simple console selection
---
c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am | 2 +-
c/src/lib/libbsp/arm/xilinx-zynq/configure.ac | 3 +++
c/src/lib/libbsp/shared/console_select_simple.c | 22 ++++++++++++++++++++++
3 files changed, 26 insertions(+), 1 deletions(-)
diff --git a/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am b/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am
index 99ff1fb..90b089b 100644
--- a/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am
+++ b/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am
@@ -107,7 +107,7 @@ libbsp_a_SOURCES += ../shared/arm-gic-irq.c
libbsp_a_SOURCES += ../../shared/console.c
libbsp_a_SOURCES += ../../shared/console_control.c
libbsp_a_SOURCES += ../../shared/console_read.c
-libbsp_a_SOURCES += ../../shared/console_select.c
+libbsp_a_SOURCES += ../../shared/console_select_simple.c
libbsp_a_SOURCES += ../../shared/console_write.c
libbsp_a_SOURCES += console/console-config.c
libbsp_a_SOURCES += console/zynq-uart.c
diff --git a/c/src/lib/libbsp/arm/xilinx-zynq/configure.ac b/c/src/lib/libbsp/arm/xilinx-zynq/configure.ac
index c739f69..6f2bdd1 100644
--- a/c/src/lib/libbsp/arm/xilinx-zynq/configure.ac
+++ b/c/src/lib/libbsp/arm/xilinx-zynq/configure.ac
@@ -33,6 +33,9 @@ RTEMS_BSPOPTS_HELP([CLOCK_DRIVER_USE_FAST_IDLE],
occurs while the IDLE thread is executing. This can significantly reduce
simulation times.])
+RTEMS_BSPOPTS_SET([BSP_CONSOLE_MINOR],[*],[0])
+RTEMS_BSPOPTS_HELP([BSP_CONSOLE_MINOR],[minor number of console device])
+
RTEMS_CHECK_SMP
AM_CONDITIONAL(HAS_SMP,[test "$rtems_cv_HAS_SMP" = "yes"])
diff --git a/c/src/lib/libbsp/shared/console_select_simple.c b/c/src/lib/libbsp/shared/console_select_simple.c
new file mode 100644
index 0000000..b88ad81
--- /dev/null
+++ b/c/src/lib/libbsp/shared/console_select_simple.c
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2013 embedded brains GmbH. All rights reserved.
+ *
+ * embedded brains GmbH
+ * Dornierstr. 4
+ * 82178 Puchheim
+ * Germany
+ * <info at embedded-brains.de>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ */
+
+#include "console_private.h"
+
+#include <bsp.h>
+
+void bsp_console_select(void)
+{
+ Console_Port_Minor = BSP_CONSOLE_MINOR;
+}
More information about the vc
mailing list