diff options
author | Joel Sherrill <joel@rtems.org> | 2019-11-08 07:52:49 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-08-20 15:58:13 -0500 |
commit | 4865498b5aaae1dfea91c3614f45a7d267ed448e (patch) | |
tree | b7ed0f4176d8c638227a2809d8d19de99dcf7359 | |
parent | lvgl/wscript: Add libpath to search for required libraries (diff) | |
download | rtems-examples-4865498b5aaae1dfea91c3614f45a7d267ed448e.tar.bz2 |
Conditionalize CONFIGURE_TERMIOS_DISABLE so the examples span versions
-rw-r--r-- | misc/minimum/test.c | 11 | ||||
-rw-r--r-- | ticker/low_ticker/init.c | 7 | ||||
-rw-r--r-- | ticker/low_ticker1/init.c | 8 |
3 files changed, 26 insertions, 0 deletions
diff --git a/misc/minimum/test.c b/misc/minimum/test.c index 49176f6..729ed3a 100644 --- a/misc/minimum/test.c +++ b/misc/minimum/test.c @@ -90,6 +90,17 @@ void *Init( #define CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION /* + * This parameter was eliminated after 4.11. + * + * In 4.11 and earlier, it eliminated termios from being included + * at all from a program. + */ +#if (__RTEMS_MAJOR__ < 5) +#define CONFIGURE_TERMIOS_DISABLED +#endif + + +/* * If you are debugging confdefs.h, define this */ /* #define CONFIGURE_CONFDEFS_DEBUG */ diff --git a/ticker/low_ticker/init.c b/ticker/low_ticker/init.c index ef83e0a..b71e38c 100644 --- a/ticker/low_ticker/init.c +++ b/ticker/low_ticker/init.c @@ -84,6 +84,13 @@ static void *Init( #define CONFIGURE_MAXIMUM_TASKS 3 +/* + * This parameter was eliminated after 4.11. + */ +#if (__RTEMS_MAJOR__ < 5) +#define CONFIGURE_TERMIOS_DISABLED +#endif + #include <rtems/confdefs.h> /**************** END OF CONFIGURATION INFORMATION ****************/ diff --git a/ticker/low_ticker1/init.c b/ticker/low_ticker1/init.c index 4682f8e..61bdcc6 100644 --- a/ticker/low_ticker1/init.c +++ b/ticker/low_ticker1/init.c @@ -84,6 +84,14 @@ static void *Init( #define CONFIGURE_MINIMUM_TASK_STACK_SIZE 512 #endif +/* + * This parameter was eliminated after 4.11. + */ +#if (__RTEMS_MAJOR__ < 5) +#define CONFIGURE_TERMIOS_DISABLED +#endif + + #define CONFIGURE_MAXIMUM_PRIORITY 15 #define CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS #define CONFIGURE_IDLE_TASK_BODY Init |