blob: 635cc8b580274fedcef7c07e50f9d66360effef5 (
plain)
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
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
|
config SOC_SERIES_N9H30
bool
select ARCH_ARM_ARM9
select SOC_FAMILY_NUMICRO
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
select PKG_USING_NUVOTON_SERIES_DRIVER
default y
config BSP_USE_STDDRIVER_SOURCE
bool "Build StdDriver source"
default n
config BSP_USING_MMU
bool "Enable MMU"
select ARCH_ARM_MMU
default y
config BSP_USING_GPIO
bool "Enable General Purpose I/O(GPIO)"
select RT_USING_PIN
default y
menuconfig BSP_USING_CLK
bool "Enable Clock Controller(CLK)"
select RT_USING_PM
select BSP_USING_TMR
default y
help
Choose this option if you need CLK/PM function.
Notice: Enable the option will hold timer3 resource
if BSP_USING_CLK
config NU_CLK_INVOKE_WKTMR
bool "Enable SPD1 and DPD mode wakeup timer. (About 6.6 Secs)"
default y
endif
menuconfig BSP_USING_EMAC
bool "Enable Ethernet MAC Controller(EMAC)"
select RT_USING_LWIP
select RT_USING_NETDEV
if BSP_USING_EMAC
config BSP_USING_EMAC0
bool "Enable EMAC0"
config BSP_USING_EMAC1
bool "Enable EMAC1"
endif
menuconfig BSP_USING_RTC
bool "Enable Real Time Clock(RTC)"
select RT_USING_RTC
config NU_RTC_SUPPORT_IO_RW
bool "Support device RW entry"
depends on BSP_USING_RTC && RT_USING_RTC
config NU_RTC_SUPPORT_MSH_CMD
bool "Support module shell command"
depends on BSP_USING_RTC && RT_USING_RTC
menuconfig BSP_USING_ADC
bool "Enable Analog-to-Digital Converter(ADC)"
select RT_USING_ADC
if BSP_USING_ADC
config BSP_USING_ADC_TOUCH
bool "Enable ADC Touching function"
select RT_USING_TOUCH
default y
endif
menuconfig BSP_USING_ETMR
bool "Enable Enhance Timer Controller(ETIMER)"
if BSP_USING_ETMR
config BSP_USING_ETIMER
bool
config BSP_USING_ETIMER_CAPTURE
bool
config BSP_USING_ETMR0
bool "Enable ETIMER0"
depends on BSP_USING_ETMR
if BSP_USING_ETMR0
choice BSP_ETIMER0_SEL
prompt "Select ETIMER0 function mode"
config BSP_USING_ETIMER0
select BSP_USING_ETIMER
select RT_USING_CLOCK_TIME
bool "ETIMER"
help
Choose this option if you need TIMER function mode.
config BSP_USING_ETIMER0_CAPTURE
select BSP_USING_ETIMER_CAPTURE
select RT_USING_INPUT_CAPTURE
bool "ETIMER CAPTURE"
help
Choose this option if you need CAPTURE function mode.
endchoice
endif
config BSP_USING_ETMR1
bool "Enable ETIMER1"
depends on BSP_USING_ETMR
if BSP_USING_ETMR1
choice BSP_ETIMER1_SEL
prompt "Select ETIMER1 function mode"
config BSP_USING_ETIMER1
select BSP_USING_ETIMER
select RT_USING_CLOCK_TIME
bool "ETIMER"
help
Choose this option if you need TIMER function mode.
config BSP_USING_ETIMER1_CAPTURE
select BSP_USING_ETIMER_CAPTURE
select RT_USING_INPUT_CAPTURE
bool "ETIMER CAPTURE"
help
Choose this option if you need CAPTURE function mode.
endchoice
endif
config BSP_USING_ETMR2
bool "Enable ETIMER2"
depends on BSP_USING_ETMR
if BSP_USING_ETMR2
choice BSP_ETIMER2_SEL
prompt "Select ETIMER2 function mode"
config BSP_USING_ETIMER2
select BSP_USING_ETIMER
select RT_USING_CLOCK_TIME
bool "ETIMER"
help
Choose this option if you need TIMER function mode.
config BSP_USING_ETIMER2_CAPTURE
select BSP_USING_ETIMER_CAPTURE
select RT_USING_INPUT_CAPTURE
bool "ETIMER CAPTURE"
help
Choose this option if you need CAPTURE function mode.
endchoice
endif
config BSP_USING_ETMR3
bool "Enable ETIMER3"
depends on BSP_USING_ETMR
if BSP_USING_ETMR3
choice BSP_ETIMER3_SEL
prompt "Select ETIMER3 function mode"
config BSP_USING_ETIMER3
select BSP_USING_ETIMER
select RT_USING_CLOCK_TIME
bool "ETIMER"
help
Choose this option if you need TIMER function mode.
config BSP_USING_ETIMER3_CAPTURE
select BSP_USING_ETIMER_CAPTURE
select RT_USING_INPUT_CAPTURE
bool "ETIMER CAPTURE"
help
Choose this option if you need CAPTURE function mode.
endchoice
endif
endif
config BSP_USING_FMINAND
bool "Enable FMI NAND Controller"
select RT_USING_MTD_NAND
default y
menuconfig BSP_USING_TMR
bool "Enable Timer Controller(TIMER)"
if BSP_USING_TMR
config BSP_USING_TIMER
bool
config BSP_USING_TIMER0
select BSP_USING_TIMER
select RT_USING_CLOCK_TIME
bool "TIMER0"
help
Choose this option if you need TIMER function mode.
config BSP_USING_TIMER1
select BSP_USING_TIMER
select RT_USING_CLOCK_TIME
bool "TIMER1"
help
Choose this option if you need TIMER function mode.
config BSP_USING_TIMER2
select BSP_USING_TIMER
select RT_USING_CLOCK_TIME
bool "TIMER2"
help
Choose this option if you need TIMER function mode.
config BSP_USING_TIMER3
select BSP_USING_TIMER
select RT_USING_CLOCK_TIME
bool "TIMER3"
help
Choose this option if you need TIMER function mode.
endif
menuconfig BSP_USING_UART
bool "Enable Universal Asynchronous Receiver/Transmitters(UART)"
select RT_USING_SERIAL
if BSP_USING_UART
config BSP_USING_UART0
bool "Enable UART0"
config BSP_USING_UART1
bool "Enable UART1"
config BSP_USING_UART2
bool "Enable UART2"
config BSP_USING_UART3
bool "Enable UART3"
config BSP_USING_UART4
bool "Enable UART4"
config BSP_USING_UART5
bool "Enable UART5"
config BSP_USING_UART6
bool "Enable UART6"
config BSP_USING_UART7
bool "Enable UART7"
config BSP_USING_UART8
bool "Enable UART8"
config BSP_USING_UART9
bool "Enable UART9"
config BSP_USING_UART10
bool "Enable UART10"
endif
menuconfig BSP_USING_I2C
bool "Enable I2C Serial Interface Controller(I2C)"
select RT_USING_I2C
if BSP_USING_I2C
config BSP_USING_I2C0
bool "Enable I2C0"
config BSP_USING_I2C1
bool "Enable I2C1"
endif
menuconfig BSP_USING_SDH
bool "Enable Secure Digital Host Controller(SDH)"
select RT_USING_DFS
select DFS_USING_POSIX
if BSP_USING_SDH
config BSP_USING_EMMC
bool "Enable FMI_EMMC"
config BSP_USING_SDH0
bool "Enable SDH_PORT0"
config BSP_USING_SDH1
bool "Enable SDH_PORT1"
config NU_SDH_HOTPLUG
bool "Using HOTPLUG"
default y
config NU_SDH_MOUNT_ON_ROOT
bool "Mount on root"
endif
menuconfig BSP_USING_CAN
bool "Enable Controller Area Network(CAN)"
select RT_USING_CAN
if BSP_USING_CAN
config BSP_USING_CAN0
bool "Enable CAN0"
config BSP_USING_CAN1
bool "Enable CAN1"
endif
menuconfig BSP_USING_PWM
bool "Enable PWM Generator (PWM)"
select RT_USING_PWM
if BSP_USING_PWM
config BSP_USING_PWM0
select RT_USING_PWM
bool "Enable PWM0"
help
Choose this option if you need PWM function mode.
endif
menuconfig BSP_USING_QSPI
bool "Enable Quad Serial Peripheral Interface(QSPI)"
select RT_USING_SPI
if BSP_USING_QSPI
choice BSP_QSPI0_SEL
prompt "Select QSPI0 function mode"
config BSP_USING_QSPI0_NONE
bool "NONE"
help
Choose this option if you need not QSPI0.
config BSP_USING_QSPI0
bool "Enable QSPI0"
help
Choose this option if you need QSPI function mode.
endchoice
choice BSP_QSPI1_SEL
prompt "Select QSPI1 function mode"
config BSP_USING_QSPI1_NONE
bool "NONE"
help
Choose this option if you need not QSPI1.
config BSP_USING_QSPI1
bool "Enable QSPI1"
help
Choose this option if you need QSPI function mode.
endchoice
endif
config BSP_USING_I2S
bool "Enable I2S Controller(I2S)"
select RT_USING_AUDIO
if BSP_USING_I2S
config NU_I2S_DMA_FIFO_SIZE
int "DMA Buffer size of capture and playback"
range 2048 4096
default 2048
endif
menuconfig BSP_USING_SCUART
bool "Enable Smart Card Host Interface - UART(SCUART)"
if BSP_USING_SCUART
config BSP_USING_SCUART0
bool "Enable SCUART0"
config BSP_USING_SCUART1
bool "Enable SCUART1"
endif
menuconfig BSP_USING_CRYPTO
bool "Enable Cryptographic Accelerator(CRYPTO)"
select RT_USING_HWCRYPTO
select RT_HWCRYPTO_USING_AES
select RT_HWCRYPTO_USING_AES_ECB
select RT_HWCRYPTO_USING_AES_CBC
select RT_HWCRYPTO_USING_AES_CFB
select RT_HWCRYPTO_USING_AES_CTR
select RT_HWCRYPTO_USING_AES_CFB
select RT_HWCRYPTO_USING_AES_OFB
select RT_HWCRYPTO_USING_SHA1
select RT_HWCRYPTO_USING_SHA2
select RT_HWCRYPTO_USING_SHA2_224
select RT_HWCRYPTO_USING_SHA2_256
select RT_HWCRYPTO_USING_SHA2_384
select RT_HWCRYPTO_USING_SHA2_512
select RT_HWCRYPTO_USING_RNG
if BSP_USING_CRYPTO
config NU_PRNG_USE_SEED
bool "Use specified seed value."
help
Specify the seed value to PRNG.
if NU_PRNG_USE_SEED
config NU_PRNG_SEED_VALUE
hex "Enter seed value"
range 0 0xFFFFFFFF
default 0
endif
endif
menuconfig BSP_USING_SOFT_I2C
bool "Enable software I2C (swi2c)"
default n
select RT_USING_I2C
select RT_USING_SOFT_I2C
if BSP_USING_SOFT_I2C
menuconfig BSP_USING_SOFT_I2C0
bool "Enable software I2C0 Bus (swi2c0)"
default n
select RT_USING_SOFT_I2C0
if BSP_USING_SOFT_I2C0
config RT_SOFT_I2C0_SCL_PIN
int "swi2c0 SCL pin number"
default 0x18
config RT_SOFT_I2C0_SDA_PIN
int "swi2c0 SDA pin number"
default 0x17
endif
menuconfig BSP_USING_SOFT_I2C1
bool "Enable software I2C1 Bus (swi2c1)"
default n
select RT_USING_SOFT_I2C1
if BSP_USING_SOFT_I2C1
config RT_SOFT_I2C1_SCL_PIN
int "swi2c1 SCL pin number"
default 0x0B
config RT_SOFT_I2C1_SDA_PIN
int "swi2c1 SDA pin number"
default 0x0A
endif
endif
config BSP_USING_WDT
bool "Enable Watchdog Timer(WDT)"
select RT_USING_WDT
default y
config BSP_USING_EBI
bool "Enable External Bus Interface(EBI)"
default n
config BSP_USING_VPOST
bool "Enable LCD Display engine(VPOST)"
default y
if BSP_USING_VPOST
choice SUPPORTED_LCM_PANEL_SEL
prompt "Select Supported LCM panel"
default LCM_USING_FW070TFT
config LCM_USING_E50A2V1
bool "LCM_E50A2V1(800x480-RGB565)"
config LCM_USING_LSA40AT9001
bool "LCM_LSA40AT9001(800x600-RGB565)"
config LCM_USING_FW070TFT
bool "LCM_FW070TFT(800x480-RGB888)"
config LCM_USING_FW043TFT
bool "LCM_FW043TFT(480x272-RGB888)"
config LCM_USING_FW070TFT_WSVGA
bool "LCM_USING_FW070TFT_WSVGA(1024x600-RGB888)"
endchoice
config VPOST_USING_LCD_IDX
int
default 0 if LCM_USING_E50A2V1
default 2 if LCM_USING_LSA40AT9001
default 3 if LCM_USING_FW070TFT
default 4 if LCM_USING_FW043TFT
default 5 if LCM_USING_FW070TFT_WSVGA
config BSP_LCD_BPP
int
default 16 if LCM_USING_E50A2V1
default 16 if LCM_USING_LSA40AT9001
default 32 if LCM_USING_FW070TFT
default 32 if LCM_USING_FW043TFT
default 32 if LCM_USING_FW070TFT_WSVGA
config BSP_LCD_WIDTH
int
default 800 if LCM_USING_E50A2V1
default 800 if LCM_USING_LSA40AT9001
default 800 if LCM_USING_FW070TFT
default 480 if LCM_USING_FW043TFT
default 1024 if LCM_USING_FW070TFT_WSVGA
config BSP_LCD_HEIGHT
int
default 480 if LCM_USING_E50A2V1
default 600 if LCM_USING_LSA40AT9001
default 480 if LCM_USING_FW070TFT
default 272 if LCM_USING_FW043TFT
default 600 if LCM_USING_FW070TFT_WSVGA
config BSP_USING_VPOST_OSD
bool "Enable VPOST OSD layer"
default n
endif
config BSP_USING_USBD
bool "Enable USB Device Controller(USBD)"
select RT_USING_USB_DEVICE
config BSP_USING_USBH
bool "Enable USB Host Controller(USBH)"
select RT_USING_USB_HOST
select RT_USBH_MSTORAGE
config RT_SOFT_I2C0_HAS_PIN_DEFAULT
bool
default y if RT_USING_SOFT_I2C0
config RT_SOFT_I2C0_SCL_PIN_DEFAULT
int
default 0x18 if RT_USING_SOFT_I2C0
config RT_SOFT_I2C0_SDA_PIN_DEFAULT
int
default 0x17 if RT_USING_SOFT_I2C0
config RT_SOFT_I2C1_HAS_PIN_DEFAULT
bool
default y if RT_USING_SOFT_I2C1
config RT_SOFT_I2C1_SCL_PIN_DEFAULT
int
default 0x0B if RT_USING_SOFT_I2C1
config RT_SOFT_I2C1_SDA_PIN_DEFAULT
int
default 0x0A if RT_USING_SOFT_I2C1
|