summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-16 14:39:59 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-17 08:19:59 +0200
commit7306578c42a0a30c968cf32dc33b3129d2b185f2 (patch)
treef0a2cc501a9894c69adb31cf870970fdafcf31c4
parentposix: Delete unused functions (diff)
downloadrtems-7306578c42a0a30c968cf32dc33b3129d2b185f2.tar.bz2
bsps/serial: Move bsp_console_select() declaration
-rw-r--r--c/src/lib/libbsp/shared/console_private.h8
-rw-r--r--c/src/lib/libbsp/shared/console_select_simple.c2
-rw-r--r--c/src/libchip/serial/serial.h7
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 bdff98ab89..7d9f17fe46 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 b88ad81268..208aaf9c8d 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 5405697950..d40ceeb37a 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