forked from Imagelibrary/rtems
bsps: Provide simple console selection
This commit is contained in:
@@ -107,7 +107,7 @@ libbsp_a_SOURCES += ../shared/arm-gic-irq.c
|
||||
libbsp_a_SOURCES += ../../shared/console.c
|
||||
libbsp_a_SOURCES += ../../shared/console_control.c
|
||||
libbsp_a_SOURCES += ../../shared/console_read.c
|
||||
libbsp_a_SOURCES += ../../shared/console_select.c
|
||||
libbsp_a_SOURCES += ../../shared/console_select_simple.c
|
||||
libbsp_a_SOURCES += ../../shared/console_write.c
|
||||
libbsp_a_SOURCES += console/console-config.c
|
||||
libbsp_a_SOURCES += console/zynq-uart.c
|
||||
|
||||
@@ -33,6 +33,9 @@ RTEMS_BSPOPTS_HELP([CLOCK_DRIVER_USE_FAST_IDLE],
|
||||
occurs while the IDLE thread is executing. This can significantly reduce
|
||||
simulation times.])
|
||||
|
||||
RTEMS_BSPOPTS_SET([BSP_CONSOLE_MINOR],[*],[0])
|
||||
RTEMS_BSPOPTS_HELP([BSP_CONSOLE_MINOR],[minor number of console device])
|
||||
|
||||
RTEMS_CHECK_SMP
|
||||
AM_CONDITIONAL(HAS_SMP,[test "$rtems_cv_HAS_SMP" = "yes"])
|
||||
|
||||
|
||||
22
c/src/lib/libbsp/shared/console_select_simple.c
Normal file
22
c/src/lib/libbsp/shared/console_select_simple.c
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) 2013 embedded brains GmbH. All rights reserved.
|
||||
*
|
||||
* embedded brains GmbH
|
||||
* Dornierstr. 4
|
||||
* 82178 Puchheim
|
||||
* Germany
|
||||
* <info@embedded-brains.de>
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
* http://www.rtems.com/license/LICENSE.
|
||||
*/
|
||||
|
||||
#include "console_private.h"
|
||||
|
||||
#include <bsp.h>
|
||||
|
||||
void bsp_console_select(void)
|
||||
{
|
||||
Console_Port_Minor = BSP_CONSOLE_MINOR;
|
||||
}
|
||||
Reference in New Issue
Block a user