mirror of https://github.com/ARMmbed/mbed-os.git
RTX changes pulled in from d20b8aad7f5e
RTX5: Added TrustZone Module Identifier configuration for Idle and Timer Threadpull/6201/head
parent
a15e122982
commit
cdb2ec21c1
|
@ -17,7 +17,7 @@
|
||||||
*
|
*
|
||||||
* -----------------------------------------------------------------------------
|
* -----------------------------------------------------------------------------
|
||||||
*
|
*
|
||||||
* $Revision: V5.1.0
|
* $Revision: V5.2.0
|
||||||
*
|
*
|
||||||
* Project: CMSIS-RTOS RTX
|
* Project: CMSIS-RTOS RTX
|
||||||
* Title: RTX Configuration definitions
|
* Title: RTX Configuration definitions
|
||||||
|
@ -181,6 +181,14 @@
|
||||||
#define OS_IDLE_THREAD_STACK_SIZE 200
|
#define OS_IDLE_THREAD_STACK_SIZE 200
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// <o>Idle Thread TrustZone Module Identifier
|
||||||
|
// <i> Defines TrustZone Thread Context Management Identifier.
|
||||||
|
// <i> Applies only to cores with TrustZone technology.
|
||||||
|
// <i> Default: 0 (not used)
|
||||||
|
#ifndef OS_IDLE_THREAD_TZ_MOD_ID
|
||||||
|
#define OS_IDLE_THREAD_TZ_MOD_ID 0
|
||||||
|
#endif
|
||||||
|
|
||||||
// <q>Stack overrun checking
|
// <q>Stack overrun checking
|
||||||
// <i> Enable stack overrun checks at thread switch.
|
// <i> Enable stack overrun checks at thread switch.
|
||||||
// <i> Enabling this option increases slightly the execution time of a thread switch.
|
// <i> Enabling this option increases slightly the execution time of a thread switch.
|
||||||
|
@ -242,6 +250,14 @@
|
||||||
#define OS_TIMER_THREAD_STACK_SIZE 200
|
#define OS_TIMER_THREAD_STACK_SIZE 200
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// <o>Timer Thread TrustZone Module Identifier
|
||||||
|
// <i> Defines TrustZone Thread Context Management Identifier.
|
||||||
|
// <i> Applies only to cores with TrustZone technology.
|
||||||
|
// <i> Default: 0 (not used)
|
||||||
|
#ifndef OS_TIMER_THREAD_TZ_MOD_ID
|
||||||
|
#define OS_TIMER_THREAD_TZ_MOD_ID 0
|
||||||
|
#endif
|
||||||
|
|
||||||
// <o>Timer Callback Queue entries <0-256>
|
// <o>Timer Callback Queue entries <0-256>
|
||||||
// <i> Number of concurrent active timer callback functions.
|
// <i> Number of concurrent active timer callback functions.
|
||||||
// <i> May be set to 0 when timers are not used.
|
// <i> May be set to 0 when timers are not used.
|
||||||
|
|
|
@ -128,7 +128,12 @@ static const osThreadAttr_t os_idle_thread_attr = {
|
||||||
&os_idle_thread_stack,
|
&os_idle_thread_stack,
|
||||||
(uint32_t)sizeof(os_idle_thread_stack),
|
(uint32_t)sizeof(os_idle_thread_stack),
|
||||||
osPriorityIdle,
|
osPriorityIdle,
|
||||||
0U, 0U
|
#if defined(OS_IDLE_THREAD_TZ_MOD_ID)
|
||||||
|
(uint32_t)OS_IDLE_THREAD_TZ_MOD_ID,
|
||||||
|
#else
|
||||||
|
0U,
|
||||||
|
#endif
|
||||||
|
0U
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -176,7 +181,12 @@ static const osThreadAttr_t os_timer_thread_attr = {
|
||||||
&os_timer_thread_stack,
|
&os_timer_thread_stack,
|
||||||
(uint32_t)sizeof(os_timer_thread_stack),
|
(uint32_t)sizeof(os_timer_thread_stack),
|
||||||
(osPriority_t)OS_TIMER_THREAD_PRIO,
|
(osPriority_t)OS_TIMER_THREAD_PRIO,
|
||||||
0U, 0U
|
#if defined(OS_TIMER_THREAD_TZ_MOD_ID)
|
||||||
|
(uint32_t)OS_TIMER_THREAD_TZ_MOD_ID,
|
||||||
|
#else
|
||||||
|
0U,
|
||||||
|
#endif
|
||||||
|
0U
|
||||||
};
|
};
|
||||||
|
|
||||||
// Timer Message Queue Control Block
|
// Timer Message Queue Control Block
|
||||||
|
|
Loading…
Reference in New Issue