diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2011-11-18 20:04:49 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2011-11-18 20:04:49 +0000 |
commit | 84e1742810ddb91e48c832c88d83092c366a949e (patch) | |
tree | 5fdab3e7fc8ee6f8f807f2fd231153dabef002d4 /cpukit/sapi/include | |
parent | 2011-11-18 Jennifer Averett <Jennifer.Averett@OARcorp.com> (diff) | |
download | rtems-84e1742810ddb91e48c832c88d83092c366a949e.tar.bz2 |
2011-11-18 Jennifer Averett <Jennifer.Averett@OARcorp.com>
* sapi/include/confdefs.h: Added a bsp override option for
MAXIMUM_DEVICES.
Diffstat (limited to 'cpukit/sapi/include')
-rw-r--r-- | cpukit/sapi/include/confdefs.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 21a21dd135..94e22ebcde 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -418,14 +418,24 @@ rtems_fs_init_functions_t rtems_fs_init_helper = #ifdef CONFIGURE_INIT - /* + /** * DEVFS variables. + * + * The number of individual devices that may be registered + * in the system or the CONFIGURE_MAXIMUM_DEVICES variable + * is defaulted to 4 when a filesystem is enabled, unless + * the bsp overwrides this. In which case the value is set + * to BSP_MAXIMUM_DEVICES. */ #if defined(CONFIGURE_APPLICATION_DISABLE_FILESYSTEM) #define CONFIGURE_MEMORY_FOR_DEVFS 0 #elif defined(CONFIGURE_FILESYSTEM_DEVFS) #ifndef CONFIGURE_MAXIMUM_DEVICES - #define CONFIGURE_MAXIMUM_DEVICES 4 + #if defined(BSP_MAXIMUM_DEVICES) + #define CONFIGURE_MAXIMUM_DEVICES BSP_MAXIMUM_DEVICES + #else + #define CONFIGURE_MAXIMUM_DEVICES 4 + #endif #endif #include <rtems/devfs.h> uint32_t rtems_device_table_size = CONFIGURE_MAXIMUM_DEVICES; |