diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-03-20 10:43:46 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-03-24 08:16:27 -0500 |
commit | 54bfbe05bc513314901e09bcd4c84b412c205652 (patch) | |
tree | 443ca7bdedfc98e0349a8e8e901aba4e2c0f7a75 | |
parent | capture/capture_support.c: Fix printf() warning and formatting (diff) | |
download | rtems-54bfbe05bc513314901e09bcd4c84b412c205652.tar.bz2 |
dummy/default-configuration.c: Tune configuration down for small targets
-rw-r--r-- | cpukit/libmisc/dummy/default-configuration.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/cpukit/libmisc/dummy/default-configuration.c b/cpukit/libmisc/dummy/default-configuration.c index ae7ad61e46..fc00406f9e 100644 --- a/cpukit/libmisc/dummy/default-configuration.c +++ b/cpukit/libmisc/dummy/default-configuration.c @@ -86,11 +86,17 @@ static void Init( rtems_task_argument arg ) /* This is enough to get a basic main() up. */ #define CONFIGURE_RTEMS_INIT_TASKS_TABLE #define CONFIGURE_UNIFIED_WORK_AREAS -#define CONFIGURE_UNLIMITED_OBJECTS #define CONFIGURE_STACK_CHECKER_ENABLED -#define CONFIGURE_MAXIMUM_USER_EXTENSIONS 8 -#define CONFIGURE_MAXIMUM_DRIVERS 16 -#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 32 + +/* on smaller architectures lower the number or resources */ +#if defined(__m32c__) + #define CONFIGURE_MAXIMUM_TASKS 3 +#else + #define CONFIGURE_UNLIMITED_OBJECTS + #define CONFIGURE_MAXIMUM_USER_EXTENSIONS 8 + #define CONFIGURE_MAXIMUM_DRIVERS 16 + #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 32 +#endif /* Include basic device drivers needed to call delays */ #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER |