File indexing completed on 2025-05-11 08:24:22
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046 #ifdef HAVE_CONFIG_H
0047 #include "config.h"
0048 #endif
0049
0050 #include <rtems/config.h>
0051 #include <rtems/extensionimpl.h>
0052 #include <rtems/rtems/barrierimpl.h>
0053 #include <rtems/rtems/dpmemimpl.h>
0054 #include <rtems/rtems/messageimpl.h>
0055 #include <rtems/rtems/partimpl.h>
0056 #include <rtems/rtems/ratemonimpl.h>
0057 #include <rtems/rtems/regionimpl.h>
0058 #include <rtems/rtems/semimpl.h>
0059 #include <rtems/rtems/tasksimpl.h>
0060 #include <rtems/rtems/timerimpl.h>
0061 #include <rtems/score/objectimpl.h>
0062
0063 static uint32_t get_config_max( const Objects_Information *info )
0064 {
0065 if ( _Objects_Is_auto_extend( info ) ) {
0066 return info->objects_per_block | RTEMS_UNLIMITED_OBJECTS;
0067 }
0068
0069 return _Objects_Get_maximum_index( info );
0070 }
0071
0072 uint32_t rtems_configuration_get_maximum_barriers( void )
0073 {
0074 return get_config_max( &_Barrier_Information );
0075 }
0076
0077 uint32_t rtems_configuration_get_maximum_extensions( void )
0078 {
0079 return get_config_max( &_Extension_Information );
0080 }
0081
0082 uint32_t rtems_configuration_get_maximum_message_queues( void )
0083 {
0084 return get_config_max( &_Message_queue_Information );
0085 }
0086
0087 uint32_t rtems_configuration_get_maximum_partitions( void )
0088 {
0089 return get_config_max( &_Partition_Information );
0090 }
0091
0092 uint32_t rtems_configuration_get_maximum_periods( void )
0093 {
0094 return get_config_max( &_Rate_monotonic_Information );
0095 }
0096
0097 uint32_t rtems_configuration_get_maximum_ports( void )
0098 {
0099 return get_config_max( &_Dual_ported_memory_Information );
0100 }
0101
0102 uint32_t rtems_configuration_get_maximum_regions( void )
0103 {
0104 return get_config_max( &_Region_Information );
0105 }
0106
0107 uint32_t rtems_configuration_get_maximum_semaphores( void )
0108 {
0109 return get_config_max( &_Semaphore_Information );
0110 }
0111
0112 uint32_t rtems_configuration_get_maximum_timers( void )
0113 {
0114 return get_config_max( &_Timer_Information );
0115 }
0116
0117 uint32_t rtems_configuration_get_maximum_tasks( void )
0118 {
0119 return get_config_max( &_RTEMS_tasks_Information.Objects );
0120 }