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 /ticker | |
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
Diffstat (limited to 'ticker')
-rw-r--r-- | ticker/low_ticker/init.c | 7 | ||||
-rw-r--r-- | ticker/low_ticker1/init.c | 8 |
2 files changed, 15 insertions, 0 deletions
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 |