diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2011-12-12 15:50:57 +0100 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2015-04-17 01:10:16 +0200 |
commit | e428dc4a953d18b7046773965b83c78e64071317 (patch) | |
tree | 11a6802e917c7faafeb6147ab37995e3415aa177 /c/src/lib/libbsp/sparc/leon3/console/console.c | |
parent | DRVMGR: added drvmgr shell command (diff) | |
download | rtems-e428dc4a953d18b7046773965b83c78e64071317.tar.bz2 |
LEON3: implemented BSP DRVMGR startup initialization
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon3/console/console.c')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/console/console.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/console/console.c b/c/src/lib/libbsp/sparc/leon3/console/console.c index 35767ce786..4140bd66c9 100644 --- a/c/src/lib/libbsp/sparc/leon3/console/console.c +++ b/c/src/lib/libbsp/sparc/leon3/console/console.c @@ -30,6 +30,14 @@ #include <bsp/fatal.h> #include <apbuart_termios.h> +/* The LEON3 BSP UART driver can rely on the Driver Manager if the + * DrvMgr is initialized during startup. Otherwise the classic driver + * must be used. + * + * The DrvMgr APBUART driver is located in the shared/uart directory + */ +#ifndef RTEMS_DRVMGR_STARTUP + int syscon_uart_index __attribute__((weak)) = 0; /* body is in debugputs.c */ @@ -157,3 +165,5 @@ rtems_device_driver console_initialize( return RTEMS_SUCCESSFUL; } + +#endif |