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