@@ -21,11 +21,38 @@ menu "Hardware Drivers Config"
21
21
select RT_USING_SERIAL
22
22
select RT_USING_SERIAL_V2
23
23
if BSP_USING_UART
24
+ menuconfig BSP_USING_UART2
25
+ bool "Enable UART2"
26
+ default n
27
+ if BSP_USING_UART2
28
+ config BSP_UART2_RX_USING_DMA
29
+ bool "Enable UART2 RX DMA"
30
+ depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
31
+ default n
32
+
33
+ config BSP_UART2_TX_USING_DMA
34
+ bool "Enable UART2 TX DMA"
35
+ depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
36
+ default n
37
+
38
+ config BSP_UART2_RX_BUFSIZE
39
+ int "Set UART2 RX buffer size"
40
+ range 64 65535
41
+ depends on RT_USING_SERIAL_V2
42
+ default 256
43
+
44
+ config BSP_UART2_TX_BUFSIZE
45
+ int "Set UART2 TX buffer size"
46
+ range 0 65535
47
+ depends on RT_USING_SERIAL_V2
48
+ default 0
49
+ endif
50
+
24
51
menuconfig BSP_USING_UART4
25
52
bool "Enable UART4"
26
53
default n
27
54
if BSP_USING_UART4
28
- config BSP_UART0_RX_USING_DMA
55
+ config BSP_UART4_RX_USING_DMA
29
56
bool "Enable UART4 RX DMA"
30
57
depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
31
58
default n
@@ -51,11 +78,15 @@ menu "Hardware Drivers Config"
51
78
52
79
menuconfig BSP_USING_HW_I2C
53
80
bool "Enable hardware I2C BUS"
81
+ select RT_USING_I2C
54
82
default n
55
83
if BSP_USING_HW_I2C
56
84
config BSP_USING_HW_I2C1
57
85
bool "Enable Hardware I2C1 BUS"
58
86
default n
87
+ config BSP_USING_HW_I2C2
88
+ bool "Enable Hardware I2C2 BUS"
89
+ default n
59
90
endif
60
91
61
92
menuconfig BSP_USING_SOFT_I2C
@@ -430,6 +461,93 @@ menu "Hardware Drivers Config"
430
461
endif
431
462
endif
432
463
464
+ menuconfig BSP_USING_ADC
465
+ bool "Enable ADC"
466
+ default n
467
+ select RT_USING_ADC
468
+ if BSP_USING_ADC
469
+ config BSP_USING_ADC0
470
+ bool "Enable ADC0"
471
+ default n
472
+
473
+ config BSP_USING_ADC1
474
+ bool "Enable ADC1"
475
+ default n
476
+ endif
477
+
478
+ menuconfig BSP_USING_DAC
479
+ bool "Enable DAC"
480
+ default n
481
+ select RT_USING_DAC
482
+ if BSP_USING_DAC
483
+ config BSP_USING_DAC0
484
+ bool "Enable DAC0"
485
+ default n
486
+
487
+ config BSP_USING_DAC1
488
+ bool "Enable DAC1"
489
+ default n
490
+ endif
491
+
492
+ menuconfig BSP_USING_PWM
493
+ bool "Enable PWM"
494
+ default n
495
+ select RT_USING_PWM
496
+ if BSP_USING_PWM
497
+ config BSP_USING_PWM0
498
+ bool "Enable GPT0 (32-Bits) output PWM"
499
+ default n
500
+
501
+ config BSP_USING_PWM1
502
+ bool "Enable GPT1 (32-Bits) output PWM"
503
+ default n
504
+
505
+ config BSP_USING_PWM2
506
+ bool "Enable GPT2 (32-Bits) output PWM"
507
+ default n
508
+
509
+ config BSP_USING_PWM3
510
+ bool "Enable GPT3 (32-Bits) output PWM"
511
+ default n
512
+
513
+ config BSP_USING_PWM4
514
+ bool "Enable GPT4 (16-Bits) output PWM"
515
+ default n
516
+
517
+ config BSP_USING_PWM5
518
+ bool "Enable GPT5 (16-Bits) output PWM"
519
+ default n
520
+
521
+ config BSP_USING_PWM6
522
+ bool "Enable GPT6 (16-Bits) output PWM"
523
+ default n
524
+
525
+ config BSP_USING_PWM7
526
+ bool "Enable GPT7 (16-Bits) output PWM"
527
+ default n
528
+
529
+ config BSP_USING_PWM8
530
+ bool "Enable GPT8 (16-Bits) output PWM"
531
+ default n
532
+
533
+ config BSP_USING_PWM9
534
+ bool "Enable GPT9 (16-Bits) output PWM"
535
+ default n
536
+ endif
537
+
538
+ menuconfig BSP_USING_SPI
539
+ bool "Enable SPI BUS"
540
+ default n
541
+ select RT_USING_SPI
542
+ if BSP_USING_SPI
543
+ config BSP_USING_SPI0
544
+ bool "Enable SPI0 BUS"
545
+ default n
546
+ config BSP_USING_SPI1
547
+ bool "Enable SPI1 BUS"
548
+ default n
549
+ endif
550
+
433
551
endmenu
434
552
435
553
menu "Board extended module Drivers"
0 commit comments