File tree Expand file tree Collapse file tree 3 files changed +10
-17
lines changed Expand file tree Collapse file tree 3 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 17
17
#define RTE_COMPONENTS_H
18
18
19
19
#define CMSIS_device_header <cmsis.h>
20
- #include "mbed_rtx_conf.h"
21
20
22
21
#endif
23
22
Original file line number Diff line number Diff line change 31
31
#include CMSIS_device_header
32
32
#include "tz_context.h"
33
33
34
- /// Number of process slots (threads may call secure library code)
35
- #ifndef TZ_PROCESS_STACK_SLOTS
36
- #define TZ_PROCESS_STACK_SLOTS 8U
34
+ #ifndef MBED_CONF_TZ_PROCESS_STACK_SLOTS
35
+ #define MBED_CONF_TZ_PROCESS_STACK_SLOTS 8
37
36
#endif
38
37
39
- /// Stack size of the secure library code
40
- #ifndef TZ_PROCESS_STACK_SIZE
41
- #define TZ_PROCESS_STACK_SIZE 256U
38
+ #ifndef MBED_CONF_TZ_PROCESS_STACK_SIZE
39
+ #define MBED_CONF_TZ_PROCESS_STACK_SIZE 512
42
40
#endif
43
41
42
+ /// Number of process slots (threads may call secure library code)
43
+ #define TZ_PROCESS_STACK_SLOTS MBED_CONF_TZ_PROCESS_STACK_SLOTS
44
+
45
+ /// Stack size of the secure library code
46
+ #define TZ_PROCESS_STACK_SIZE MBED_CONF_TZ_PROCESS_STACK_SIZE
47
+
44
48
typedef struct {
45
49
uint32_t sp_top ; // stack space top
46
50
uint32_t sp_limit ; // stack space limit
Original file line number Diff line number Diff line change 57
57
#define OS_IDLE_THREAD_TZ_MOD_ID 1
58
58
#define OS_TIMER_THREAD_TZ_MOD_ID 1
59
59
60
- #ifndef MBED_CONF_TZ_PROCESS_STACK_SIZE
61
- #define MBED_CONF_TZ_PROCESS_STACK_SIZE 512
62
- #endif
63
- #ifndef MBED_CONF_TZ_PROCESS_STACK_SLOTS
64
- #define MBED_CONF_TZ_PROCESS_STACK_SLOTS 8
65
- #endif
66
-
67
- #define TZ_PROCESS_STACK_SLOTS MBED_CONF_TZ_PROCESS_STACK_SLOTS
68
- #define TZ_PROCESS_STACK_SIZE MBED_CONF_TZ_PROCESS_STACK_SIZE
69
-
70
60
#endif /* MBED_RTX_CONF_H */
You can’t perform that action at this time.
0 commit comments