|
60 | 60 | #define OS_IDLE_THREAD_STACK_SIZE (MBED_CONF_RTOS_IDLE_THREAD_STACK_SIZE + EXTRA_IDLE_STACK + EXTRA_IDLE_STACK_DEBUG)
|
61 | 61 | #endif
|
62 | 62 |
|
| 63 | +// The number of threads available to applications that need to use |
| 64 | +// CMSIS-RTOSv2 Object-specific Memory Pools |
| 65 | +#if MBED_CONF_RTOS_THREAD_NUM > 0 |
| 66 | +#define OS_THREAD_OBJ_MEM 1 |
| 67 | +#define OS_THREAD_NUM MBED_CONF_RTOS_THREAD_NUM |
| 68 | +#endif |
| 69 | + |
| 70 | +// The total amount of memory for all thread stacks combined available to |
| 71 | +// applications that need to use CMSIS-RTOSv2 Object-specific Memory Pools for |
| 72 | +// threads |
| 73 | +#if MBED_CONF_RTOS_THREAD_USER_STACK_SIZE > 0 |
| 74 | +#define OS_THREAD_USER_STACK_SIZE MBED_CONF_RTOS_THREAD_USER_STACK_SIZE |
| 75 | +#endif |
| 76 | + |
| 77 | +// The number of timers available to applications that need to use CMSIS-RTOSv2 |
| 78 | +// Object-specific Memory Pools |
| 79 | +#if MBED_CONF_RTOS_TIMER_NUM > 0 |
| 80 | +#define OS_TIMER_OBJ_MEM 1 |
| 81 | +#define OS_TIMER_NUM MBED_CONF_RTOS_TIMER_NUM |
| 82 | +#endif |
| 83 | + |
| 84 | +// The number of event flag objects available to applications that need to use |
| 85 | +// CMSIS-RTOSv2 Object-specific Memory Pools |
| 86 | +#if MBED_CONF_RTOS_EVFLAGS_NUM > 0 |
| 87 | +#define OS_EVFLAGS_OBJ_MEM 1 |
| 88 | +#define OS_EVFLAGS_NUM MBED_CONF_RTOS_EVFLAGS_NUM |
| 89 | +#endif |
| 90 | + |
| 91 | +// The number of mutexes available to applications that need to use |
| 92 | +// CMSIS-RTOSv2 Object-specific Memory Pools |
| 93 | +#if MBED_CONF_RTOS_MUTEX_NUM > 0 |
| 94 | +#define OS_MUTEX_OBJ_MEM 1 |
| 95 | +#define OS_MUTEX_NUM MBED_CONF_RTOS_MUTEX_NUM |
| 96 | +#endif |
| 97 | + |
| 98 | +// The number of semaphores available to applications that need to use |
| 99 | +// CMSIS-RTOSv2 Object-specific Memory Pools |
| 100 | +#if MBED_CONF_RTOS_SEMAPHORE_NUM > 0 |
| 101 | +#define OS_SEMAPHORE_OBJ_MEM 1 |
| 102 | +#define OS_SEMAPHORE_NUM MBED_CONF_RTOS_SEMAPHORE_NUM |
| 103 | +#endif |
| 104 | + |
| 105 | +// The number of message queues available to applications that need to use |
| 106 | +// CMSIS-RTOSv2 Object-specific Memory Pools |
| 107 | +#if MBED_CONF_RTOS_MSGQUEUE_NUM > 0 |
| 108 | +#define OS_MSGQUEUE_OBJ_MEM 1 |
| 109 | +#define OS_MSGQUEUE_NUM MBED_CONF_RTOS_MSGQUEUE_NUM |
| 110 | +#endif |
| 111 | + |
| 112 | +// The total amount of memory for all message queues combined available to |
| 113 | +// applications that need to use CMSIS-RTOSv2 Object-specific Memory Pools for |
| 114 | +// message queues |
| 115 | +#if MBED_CONF_RTOS_MSGQUEUE_DATA_SIZE > 0 |
| 116 | +#define OS_MSGQUEUE_DATA_SIZE MBED_CONF_RTOS_MSGQUEUE_DATA_SIZE |
| 117 | +#endif |
| 118 | + |
63 | 119 | #define OS_DYNAMIC_MEM_SIZE 0
|
64 | 120 |
|
65 | 121 | #if defined(OS_TICK_FREQ) && (OS_TICK_FREQ != 1000)
|
|
0 commit comments