diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-03 08:33:16 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-06 07:25:51 +0100 |
commit | ac28f1588d4cfd315ec59d485df432c79d13cd46 (patch) | |
tree | 30594dcb03b3620e9fb8d57bcdb645ea9f34f015 /cpukit/sapi/include/confdefs.h | |
parent | score: Add _IO_Printf() and _IO_Vprintf() (diff) | |
download | rtems-ac28f1588d4cfd315ec59d485df432c79d13cd46.tar.bz2 |
Add simple console driver
Update #3170.
Update #3199.
Diffstat (limited to '')
-rwxr-xr-x | cpukit/sapi/include/confdefs.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 47b7d9aacb..ca4ee47b2b 100755 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -1610,10 +1610,27 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; #define NULL_DRIVER_TABLE_ENTRY \ { NULL, NULL, NULL, NULL, NULL, NULL } +#if defined(CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER) && \ + defined(CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER) +#error "CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER and CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER are mutually exclusive" +#endif + #ifdef CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER #include <rtems/console.h> #endif +#ifdef CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER + #include <rtems/console.h> + + #ifdef CONFIGURE_INIT + RTEMS_SYSINIT_ITEM( + _Console_simple_Initialize, + RTEMS_SYSINIT_DEVICE_DRIVERS, + RTEMS_SYSINIT_ORDER_SECOND + ); + #endif +#endif + #ifdef CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER #include <rtems/clockdrv.h> #endif |