-
Notifications
You must be signed in to change notification settings - Fork 4
/
Kconfig
332 lines (299 loc) · 7.68 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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
mainmenu "RT-Thread Configuration"
config $BSP_DIR
string
option env="BSP_ROOT"
default "."
config $RTT_DIR
string
option env="RTT_ROOT"
default "../.."
config $PKGS_DIR
string
option env="PKGS_ROOT"
default "packages"
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
choice
prompt "Device type"
default STM32F103RB
config STM32F100RC
bool "STM32F100RC"
config STM32F100RD
bool "STM32F100RD"
config STM32F100RE
bool "STM32F100RE"
config STM32F100VC
bool "STM32F100VC"
config STM32F100VD
bool "STM32F100VD"
config STM32F100VE
bool "STM32F100VE"
config STM32F100ZC
bool "STM32F100ZC"
config STM32F100ZD
bool "STM32F100ZD"
config STM32F100ZE
bool "STM32F100ZE"
config STM32F101CB
bool "STM32F101CB"
config STM32F101RB
bool "STM32F101RB"
config STM32F101RC
bool "STM32F101RC"
config STM32F101RD
bool "STM32F101RD"
config STM32F101RE
bool "STM32F101RE"
config STM32F101RF
bool "STM32F101RF"
config STM32F101RG
bool "STM32F101RG"
config STM32F101TB
bool "STM32F101TB"
config STM32F101VB
bool "STM32F101VB"
config STM32F101VC
bool "STM32F101VC"
config STM32F101VD
bool "STM32F101VD"
config STM32F101VE
bool "STM32F101VE"
config STM32F101VF
bool "STM32F101VF"
config STM32F101VG
bool "STM32F101VG"
config STM32F101ZC
bool "STM32F101ZC"
config STM32F101ZD
bool "STM32F101ZD"
config STM32F101ZE
bool "STM32F101ZE"
config STM32F101ZF
bool "STM32F101ZF"
config STM32F101ZG
bool "STM32F101ZG"
config STM32F102CB
bool "STM32F102CB"
config STM32F102RB
bool "STM32F102RB"
config STM32F103C8
bool "STM32F103C8"
config STM32F103CB
bool "STM32F103CB"
config STM32F103R8
bool "STM32F103R8"
config STM32F103RB
bool "STM32F103RB"
config STM32F103RC
bool "STM32F103RC"
config STM32F103RD
bool "STM32F103RD"
config STM32F103RE
bool "STM32F103RE"
config STM32F103RF
bool "STM32F103RF"
config STM32F103RG
bool "STM32F103RG"
config STM32F103T8
bool "STM32F103T8"
config STM32F103TB
bool "STM32F103TB"
config STM32F103V8
bool "STM32F103V8"
config STM32F103VB
bool "STM32F103VB"
config STM32F103VC
bool "STM32F103VC"
config STM32F103VD
bool "STM32F103VD"
config STM32F103VE
bool "STM32F103VE"
config STM32F103VF
bool "STM32F103VF"
config STM32F103VG
bool "STM32F103VG"
config STM32F103ZC
bool "STM32F103ZC"
config STM32F103ZD
bool "STM32F103ZD"
config STM32F103ZE
bool "STM32F103ZE"
config STM32F103ZF
bool "STM32F103ZF"
config STM32F103ZG
bool "STM32F103ZG"
config STM32F105R8
bool "STM32F105R8"
config STM32F105RB
bool "STM32F105RB"
config STM32F105RC
bool "STM32F105RC"
config STM32F105V8
bool "STM32F105V8"
config STM32F105VB
bool "STM32F105VB"
config STM32F105VC
bool "STM32F105VC"
config STM32F107RB
bool "STM32F107RB"
config STM32F107RC
bool "STM32F107RC"
config STM32F107VB
bool "STM32F107VB"
config STM32F107VC
bool "STM32F107VC"
endchoice
config RT_USING_HSI
bool "Using HSI as clock source"
default n
config RT_HSE_VALUE
int "HSE Value"
default 8000000
depends on !RT_USING_HSI
if RT_USING_SERIAL
config RT_USING_UART1
bool "Using uart1"
default y
config RT_USING_UART2
bool "Using uart2"
default n
config RT_USING_UART3
bool "Using uart3"
default n
endif
if RT_USING_SPI
config RT_USING_SPI1
bool "Using spi1"
default y
config RT_USING_SPI2
bool "Using spi2"
default n
endif
menuconfig BSP_USING_WDT
bool "Using wdt"
select RT_USING_WDT
default n
if BSP_USING_WDT
config BSP_USING_WDT_IWDG
bool "Enable iwdg"
default n
endif
menuconfig BSP_USING_RTC
bool "Using rtc"
select RT_USING_RTC
default n
if RT_USING_DEVICE_IPC && (STM32F103RC || STM32F103RD || STM32F103RE || STM32F103RF || STM32F103RG ||STM32F103VC || STM32F103VD || STM32F103VE || STM32F103VF || STM32F103VG ||STM32F103ZC || STM32F103ZD || STM32F103ZE || STM32F103ZF || STM32F103ZG)
config RT_USING_SDCARD
bool "Using sdcard with sdio"
default n
config USING_SD_RX_DMA
bool "SDCARD Rx Using Dma Mode"
default y
depends on RT_USING_SDCARD
config USING_SD_TX_DMA
bool "SDCARD Tx Using Dma Mode"
default n
depends on RT_USING_SDCARD
endif
menuconfig BSP_USING_PWM1
bool "Using PWM1"
select RT_USING_PWM
default n
if BSP_USING_PWM1
config BSP_USING_PWM1_CH1
bool "Enable Channel 1 (PE9)"
default n
config BSP_USING_PWM1_CH2
bool "Enable Channel 2 (PE11)"
default n
endif
menuconfig BSP_USING_PWM2
bool "Using PWM2"
select RT_USING_PWM
default n
if BSP_USING_PWM2
config BSP_USING_PWM2_CH1
bool "Enable Channel 1 (PB10)"
default n
config BSP_USING_PWM2_CH2
bool "Enable Channel 2 (PB11)"
default n
config BSP_USING_PWM2_CH3
bool "Enable Channel 3 (PA15)"
default n
config BSP_USING_PWM2_CH4
bool "Enable Channel 4 (PB3)"
default n
endif
menuconfig BSP_USING_PWM3
bool "Using PWM3"
select RT_USING_PWM
default n
if BSP_USING_PWM3
config BSP_USING_PWM3_CH1
bool "Enable Channel 1 (PA6)"
default n
config BSP_USING_PWM3_CH2
bool "Enable Channel 2 (PA7)"
default n
config BSP_USING_PWM3_CH3
bool "Enable Channel 3 (PB0)"
default n
config BSP_USING_PWM3_CH4
bool "Enable Channel 4 (PB1)"
default n
endif
menuconfig BSP_USING_PWM4
bool "Using PWM4"
select RT_USING_PWM
default n
if BSP_USING_PWM4
config BSP_USING_PWM4_CH1
bool "Enable Channel 1 (PD12)"
default n
config BSP_USING_PWM4_CH2
bool "Enable Channel 2 (PD13)"
default n
config BSP_USING_PWM4_CH3
bool "Enable Channel 3 (PD14)"
default n
config BSP_USING_PWM4_CH4
bool "Enable Channel 4 (PD15)"
default n
endif
menuconfig BSP_USING_PWM5
bool "Using PWM5"
select RT_USING_PWM
default n
if BSP_USING_PWM5
config BSP_USING_PWM5_CH1
bool "Enable Channel 1 (PA0)"
default n
config BSP_USING_PWM5_CH2
bool "Enable Channel 2 (PA1)"
default n
config BSP_USING_PWM5_CH3
bool "Enable Channel 3 (PA2)"
default n
config BSP_USING_PWM5_CH4
bool "Enable Channel 4 (PA3)"
default n
endif
menuconfig BSP_USING_PWM8
bool "Using PWM8"
select RT_USING_PWM
default n
if BSP_USING_PWM8
config BSP_USING_PWM8_CH1
bool "Enable Channel 1 (PC6)"
default n
config BSP_USING_PWM8_CH2
bool "Enable Channel 2 (PC7)"
default n
config BSP_USING_PWM8_CH3
bool "Enable Channel 3 (PC8)"
default n
config BSP_USING_PWM8_CH4
bool "Enable Channel 4 (PC9)"
default n
endif