diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-28 06:30:35 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-02-02 15:01:21 +0100 |
commit | 2c12262f9a8fe7975556729f0574fab8d5a792f5 (patch) | |
tree | 0a4a0bea0900fd682d40fb1d628c5e922aab85b8 /cpukit/include/rtems/confdefs.h | |
parent | libblock: Use self-contained mutex and cond var (diff) | |
download | rtems-2c12262f9a8fe7975556729f0574fab8d5a792f5.tar.bz2 |
termios: Use self-contained objects
Update #2840.
Diffstat (limited to 'cpukit/include/rtems/confdefs.h')
-rwxr-xr-x | cpukit/include/rtems/confdefs.h | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h index 2169213c25..022026b327 100755 --- a/cpukit/include/rtems/confdefs.h +++ b/cpukit/include/rtems/confdefs.h @@ -155,30 +155,6 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; const uint32_t rtems_libio_number_iops = RTEMS_ARRAY_SIZE(rtems_libio_iops); #endif -/* - * This macro determines if termios is disabled by this application. - * This only means that resources will not be reserved. If you end - * up using termios, it will fail. - */ -#ifdef CONFIGURE_TERMIOS_DISABLED - #define _CONFIGURE_TERMIOS_SEMAPHORES 0 -#else - /** - * This macro specifies the number of serial or PTY ports that will - * use termios. - */ - #ifndef CONFIGURE_NUMBER_OF_TERMIOS_PORTS - #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 1 - #endif - - /* - * This macro reserves the number of semaphores required by termios - * based upon the number of communication ports that will use it. - */ - #define _CONFIGURE_TERMIOS_SEMAPHORES \ - ((CONFIGURE_NUMBER_OF_TERMIOS_PORTS * 4) + 1) -#endif - /** * This macro specifies the number of PTYs that can be concurrently * active. @@ -2096,7 +2072,6 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; */ #define _CONFIGURE_SEMAPHORES \ (CONFIGURE_MAXIMUM_SEMAPHORES + \ - _CONFIGURE_TERMIOS_SEMAPHORES + \ _CONFIGURE_SEMAPHORES_FOR_FILE_SYSTEMS + \ _CONFIGURE_NETWORKING_SEMAPHORES) @@ -3511,6 +3486,10 @@ extern rtems_initialization_tasks_table Initialization_tasks[]; #error "Maximum priority configured higher than supported by target." #endif +#ifdef CONFIGURE_TERMIOS_DISABLED + #warning "The CONFIGURE_TERMIOS_DISABLED configuration option is obsolete since RTEMS 5.1" +#endif + #ifdef CONFIGURE_MAXIMUM_POSIX_BARRIERS #warning "The CONFIGURE_MAXIMUM_POSIX_BARRIERS configuration option is obsolete since RTEMS 5.1" #endif |