[rtems commit] bsps/serial: Move bsp_console_select() declaration
Sebastian Huber
sebh at rtems.org
Wed Jul 17 08:08:13 UTC 2013
Module: rtems
Branch: master
Commit: 7306578c42a0a30c968cf32dc33b3129d2b185f2
Changeset: http://git.rtems.org/rtems/commit/?id=7306578c42a0a30c968cf32dc33b3129d2b185f2
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jul 16 14:39:59 2013 +0200
bsps/serial: Move bsp_console_select() declaration
---
c/src/lib/libbsp/shared/console_private.h | 8 --------
c/src/lib/libbsp/shared/console_select_simple.c | 2 +-
c/src/libchip/serial/serial.h | 7 +++++++
3 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/c/src/lib/libbsp/shared/console_private.h b/c/src/lib/libbsp/shared/console_private.h
index bdff98a..7d9f17f 100644
--- a/c/src/lib/libbsp/shared/console_private.h
+++ b/c/src/lib/libbsp/shared/console_private.h
@@ -29,14 +29,6 @@ extern "C" {
extern rtems_device_minor_number BSPPrintkPort;
/**
- * @brief bsp_console_select
- *
- * This function selects the port to be used as console
- *
- */
-void bsp_console_select(void);
-
-/**
* @brief bsp_com_outch
*
* This function puts a character out of the console port.
diff --git a/c/src/lib/libbsp/shared/console_select_simple.c b/c/src/lib/libbsp/shared/console_select_simple.c
index b88ad81..208aaf9 100644
--- a/c/src/lib/libbsp/shared/console_select_simple.c
+++ b/c/src/lib/libbsp/shared/console_select_simple.c
@@ -12,7 +12,7 @@
* http://www.rtems.com/license/LICENSE.
*/
-#include "console_private.h"
+#include <libchip/serial.h>
#include <bsp.h>
diff --git a/c/src/libchip/serial/serial.h b/c/src/libchip/serial/serial.h
index 5405697..d40ceeb 100644
--- a/c/src/libchip/serial/serial.h
+++ b/c/src/libchip/serial/serial.h
@@ -221,6 +221,13 @@ extern console_data *Console_Port_Data;
extern rtems_device_minor_number Console_Port_Minor;
+/**
+ * @brief Selects the minor number of the console device.
+ *
+ * @see Console_Port_Minor.
+ */
+void bsp_console_select(void);
+
#ifdef __cplusplus
}
#endif
More information about the vc
mailing list