File tree Expand file tree Collapse file tree 3 files changed +32
-3
lines changed Expand file tree Collapse file tree 3 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 54
54
# define OS_PRIVILEGE_MODE 0
55
55
#endif
56
56
57
+ #define OS_IDLE_THREAD_TZ_MOD_ID 1
58
+ #define OS_TIMER_THREAD_TZ_MOD_ID 1
59
+
57
60
#endif /* MBED_RTX_CONF_H */
Original file line number Diff line number Diff line change 17
17
*
18
18
* -----------------------------------------------------------------------------
19
19
*
20
- * $Revision: V5.1 .0
20
+ * $Revision: V5.2 .0
21
21
*
22
22
* Project: CMSIS-RTOS RTX
23
23
* Title: RTX Configuration definitions
181
181
#define OS_IDLE_THREAD_STACK_SIZE 200
182
182
#endif
183
183
184
+ // <o>Idle Thread TrustZone Module Identifier
185
+ // <i> Defines TrustZone Thread Context Management Identifier.
186
+ // <i> Applies only to cores with TrustZone technology.
187
+ // <i> Default: 0 (not used)
188
+ #ifndef OS_IDLE_THREAD_TZ_MOD_ID
189
+ #define OS_IDLE_THREAD_TZ_MOD_ID 0
190
+ #endif
191
+
184
192
// <q>Stack overrun checking
185
193
// <i> Enable stack overrun checks at thread switch.
186
194
// <i> Enabling this option increases slightly the execution time of a thread switch.
242
250
#define OS_TIMER_THREAD_STACK_SIZE 200
243
251
#endif
244
252
253
+ // <o>Timer Thread TrustZone Module Identifier
254
+ // <i> Defines TrustZone Thread Context Management Identifier.
255
+ // <i> Applies only to cores with TrustZone technology.
256
+ // <i> Default: 0 (not used)
257
+ #ifndef OS_TIMER_THREAD_TZ_MOD_ID
258
+ #define OS_TIMER_THREAD_TZ_MOD_ID 0
259
+ #endif
260
+
245
261
// <o>Timer Callback Queue entries <0-256>
246
262
// <i> Number of concurrent active timer callback functions.
247
263
// <i> May be set to 0 when timers are not used.
Original file line number Diff line number Diff line change @@ -128,7 +128,12 @@ static const osThreadAttr_t os_idle_thread_attr = {
128
128
& os_idle_thread_stack ,
129
129
(uint32_t )sizeof (os_idle_thread_stack ),
130
130
osPriorityIdle ,
131
- 0U , 0U
131
+ #if defined(OS_IDLE_THREAD_TZ_MOD_ID )
132
+ (uint32_t )OS_IDLE_THREAD_TZ_MOD_ID ,
133
+ #else
134
+ 0U ,
135
+ #endif
136
+ 0U
132
137
};
133
138
134
139
@@ -176,7 +181,12 @@ static const osThreadAttr_t os_timer_thread_attr = {
176
181
& os_timer_thread_stack ,
177
182
(uint32_t )sizeof (os_timer_thread_stack ),
178
183
(osPriority_t )OS_TIMER_THREAD_PRIO ,
179
- 0U , 0U
184
+ #if defined(OS_TIMER_THREAD_TZ_MOD_ID )
185
+ (uint32_t )OS_TIMER_THREAD_TZ_MOD_ID ,
186
+ #else
187
+ 0U ,
188
+ #endif
189
+ 0U
180
190
};
181
191
182
192
// Timer Message Queue Control Block
You can’t perform that action at this time.
0 commit comments