From 7306578c42a0a30c968cf32dc33b3129d2b185f2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 16 Jul 2013 14:39:59 +0200 Subject: 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 bdff98ab89..7d9f17fe46 100644 --- a/c/src/lib/libbsp/shared/console_private.h +++ b/c/src/lib/libbsp/shared/console_private.h @@ -28,14 +28,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 * 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 #include 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 -- cgit v1.2.3