File indexing completed on 2025-05-11 08:24:53
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 #ifndef _TS_CONFIG_H
0038 #define _TS_CONFIG_H
0039
0040 #include <rtems.h>
0041
0042 #ifdef __cplusplus
0043 extern "C" {
0044 #endif
0045
0046
0047
0048
0049
0050
0051
0052 #define TEST_MICROSECONDS_PER_TICK 1000
0053
0054 #define TEST_RUNNER_NAME rtems_build_name( 'R', 'U', 'N', ' ' )
0055
0056 #define TEST_RUNNER_ARGUMENT 123456789
0057
0058 #define TEST_RUNNER_INITIAL_MODES RTEMS_NO_ASR
0059
0060 #define TEST_SCHEDULER_A_NAME rtems_build_name( 'A', ' ', ' ', ' ' )
0061
0062 #define TEST_SCHEDULER_B_NAME rtems_build_name( 'B', ' ', ' ', ' ' )
0063
0064 #define TEST_SCHEDULER_C_NAME rtems_build_name( 'C', ' ', ' ', ' ' )
0065
0066 #define TEST_SCHEDULER_D_NAME rtems_build_name( 'D', ' ', ' ', ' ' )
0067
0068 #if defined( __OPTIMIZE__ ) && !defined( RTEMS_GCOV_COVERAGE )
0069 #define TEST_BASE_STACK_SIZE RTEMS_MINIMUM_STACK_SIZE
0070 #else
0071 #define TEST_BASE_STACK_SIZE ( 4 * RTEMS_MINIMUM_STACK_SIZE )
0072 #endif
0073
0074 #define TEST_MAXIMUM_TLS_SIZE \
0075 RTEMS_ALIGN_UP( 64, RTEMS_TASK_STORAGE_ALIGNMENT )
0076
0077 #define TEST_MINIMUM_STACK_SIZE \
0078 ( TEST_BASE_STACK_SIZE + CPU_STACK_ALIGNMENT )
0079
0080 #define TEST_IDLE_STACK_SIZE \
0081 ( TEST_BASE_STACK_SIZE + 2 * CPU_STACK_ALIGNMENT )
0082
0083 #define TEST_INTERRUPT_STACK_SIZE \
0084 ( TEST_BASE_STACK_SIZE + 4 * CPU_INTERRUPT_STACK_ALIGNMENT )
0085
0086 #define TEST_MAXIMUM_BARRIERS 7
0087
0088 #define TEST_MAXIMUM_MESSAGE_QUEUES 3
0089
0090 #define TEST_MAXIMUM_PARTITIONS 4
0091
0092 #define TEST_MAXIMUM_PERIODS 2
0093
0094 #define TEST_MAXIMUM_SEMAPHORES 7
0095
0096 #define TEST_MAXIMUM_TASKS 32
0097
0098 #define TEST_MAXIMUM_TIMERS 10
0099
0100 #define TEST_MAXIMUM_USER_EXTENSIONS 5
0101
0102
0103
0104
0105
0106 #define TEST_TICKS_PER_TIMESLICE 2
0107
0108 void *test_task_stack_allocate( size_t size );
0109
0110 void test_task_stack_deallocate( void *stack );
0111
0112 void *test_idle_task_stack_allocate( uint32_t cpu_index, size_t *size );
0113
0114 extern rtems_task_argument test_runner_argument;
0115
0116 extern rtems_task_priority test_runner_initial_priority;
0117
0118 extern rtems_mode test_runner_initial_modes;
0119
0120
0121
0122 #ifdef __cplusplus
0123 }
0124 #endif
0125
0126 #endif