-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kconfig
196 lines (160 loc) · 5.94 KB
/
Kconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
menu "STORAGE custom app"
config APP_STORAGE
bool "Storage App"
depends on STM32F4
default y
select USR_LIB_U2F2
select USR_LIB_SD
select USR_DRV_SDIO
---help---
Say y if you want to embbed STORAGE custom application.
if APP_STORAGE
config APP_STORAGE_BENCH
bool "Performance measurements and bench at startup"
depends on APP_STORAGE
depends on STM32F4
default n
---help---
Say y if you want to embbed performance measurements at startup.
config APP_STORAGE_IGNORE_REPLAY_CTR
bool "Explicitly ignore anti-replay counter mismach between storage and smart card"
depends on APP_STORAGE
depends on STM32F4
default n
---help---
Say y if you want to explicitly ignore a mismatch of the anti-replay counter.
WARNING: this is here for debug purposes, DO NOT activate for production!
config APP_STORAGE_FW
bool "Storage App for firmware mode"
depends on APP_STORAGE
depends on STM32F4
default y
---help---
Say y if you want to embbed Sdio custom application in firmware.
config APP_STORAGE_HEAPSIZE
int "Heap section size"
depends on APP_STORAGE
default 512
---help---
specify the requested heap size in bytes. Only requested if dynamic memory
primitives are used (typically malloc())
config APP_STORAGE_STACKSIZE
int "Stack size"
depends on APP_STORAGE
default 8192
---help---
Specify the application stack size, in bytes. By default, set to 8192
(i.e. 8k). Depending on the number of slots required, and the usage,
the stack can be bigger or smaller.
config APP_STORAGE_PRIO
int "Application priority"
default 0
---help---
Set the application priority (between 0 (the lower) to 255 (the higher)).
Only used when the RMA scheduler is executed. In this later case:
- Tasks of higher priority are executed while they are runnable
- Tasks of same priority are executed respecting a Round-Robin scheduling
When using priority and RMA scheduling, please take care to yield()
as much as possible to avoid deny of service to lower priority tasks
menu "Permissions"
visible if APP_STORAGE
menu "Devices"
config APP_STORAGE_PERM_DEV_DMA
bool "App has capacity to register DMA streams"
default n
---help---
if no, the application can't declare a DMA. If y, the application
is able to require one or more secure DMA stream(s).
config APP_STORAGE_PERM_DEV_CRYPTO
int "App can interact with HW cryptographic module"
default 0
range 0 3
---help---
If 0, the application has no access to any HW cryp module.
If 1, the application is able to use a HW cryp module configured
by another application.
If 2, the application is able to configure (inject keys) but can't
use the crypt module (no IRQ handler).
If 3, the application as a full, autonomous access to the HW cryp
module
config APP_STORAGE_PERM_DEV_BUSES
bool "App has capacity to use buses (SPI, I2C, USART...)"
default n
---help---
If n, the application can't access any buses (I2C, SPI, USART).
If y, the application can require a bus mapping.
config APP_STORAGE_PERM_DEV_EXTI
bool "App can use EXTI or GPIO driven external interrupts"
default y
config APP_STORAGE_PERM_DEV_TIM
bool "App can register a hardware timer"
default n
---help---
If n, the application can't require a timer from the kernel (using
the timer API). If y, the application can require one or more HW
timer(s).
endmenu
menu "Time"
config APP_STORAGE_PERM_TIM_GETCYCLES
int "App has capacity to get current timestamp from kernel"
default 0
range 0 3
---help---
If 0, the application has no access to timestamping.
If 1, the application is able to get tick accurate timestamping.
If 2, the application is able to get microsecond accurate timestamping.
If 3, the application is able to get cycle accurate timestamping.
endmenu
menu "Tasking"
config APP_STORAGE_PERM_TSK_FISR
bool "App is allowed to request main thread execution after ISR"
default n
---help---
If y, the application is able to request its main thread execution
just after specific ISRs. This is done using the dev_irq_mode_t
structure in device_t struct, using the IRQ_ISR_FORCE_MAINTHREAD value.
If n, this field can't be set to this value.
config APP_STORAGE_PERM_TSK_FIPC
bool "App is allowed to request peer execution on syncrhnous send IPC"
default n
---help---
If y, the application is able to request peer thread execution
when sending syncrhonous IPC.
config APP_STORAGE_PERM_TSK_RESET
bool "App is allowed to request a board software reset"
default n
---help---
If y, the application is able to request a MCU reset. This is usefull
only if the application is handling events that require urgent reactivity
implying board reset.
config APP_STORAGE_PERM_TSK_UPGRADE
bool "App is allowed to upgrade the firmware"
default n
---help---
If y, the application is able to map the embedded flash device in
order to upgrade the overall firmware. This permission should
be hosted by a task with no external access (USB, USART...)
config APP_STORAGE_PERM_TSK_RNG
bool "App is allowed to access an an entropy input source, through sys_get_random"
default n
---help---
If y, the application is able to request random content from the
kernel to generate entropy. This can be use for various needs.
endmenu
menu "Memory management"
config APP_STORAGE_PERM_MEM_DYNAMIC_MAP
bool "App is allow to declare MAP_VOLUNTARY devices"
default n
---help---
If y, the task is allowed to declare devices that are not automatically
mapped, but that are mapped/unmapped voluntary using sys_cfg() syscalls.
This permission does not give access to any devices not already declared
but allow dynamic (un)mapping of previously declared ones.
endmenu
endmenu
config APP_STORAGE_DOMAIN
depends on APP_STORAGE
int "STORAGE app security domain"
default 0
endif
endmenu