diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-16 14:39:59 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-17 08:19:59 +0200 |
commit | 7306578c42a0a30c968cf32dc33b3129d2b185f2 (patch) | |
tree | f0a2cc501a9894c69adb31cf870970fdafcf31c4 /c/src | |
parent | posix: Delete unused functions (diff) | |
download | rtems-7306578c42a0a30c968cf32dc33b3129d2b185f2.tar.bz2 |
bsps/serial: Move bsp_console_select() declaration
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/shared/console_private.h | 8 | ||||
-rw-r--r-- | c/src/lib/libbsp/shared/console_select_simple.c | 2 | ||||
-rw-r--r-- | 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 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 |