1menu "Hardware Drivers Config"
2
3menu "On-chip Peripheral Drivers"
4    menuconfig BSP_USING_UART
5        bool "Enable UART"
6        default y
7        select RT_USING_SERIAL
8        if BSP_USING_UART
9            config RT_USING_UART1
10                bool "Enable UART1"
11                default y
12
13            config RT_USING_UART0
14                bool "Enable UART0"
15                default n
16
17        endif
18
19    menuconfig BSP_USING_SDC
20        bool "Enable sd controller"
21        select RT_USING_SDIO
22        select RT_USING_DFS
23        select RT_USING_DFS_ELMFAT
24        default n
25
26        if BSP_USING_SDC
27
28            config BSP_SDC_DEBUG_PRINT
29                bool "Enable sd controller debug print"
30                default n
31
32
33            config BSP_SDC_USE_IRQ
34                bool "Use interrupt to handle when cmd complete, dma complete"
35                default n
36
37            if BSP_SDC_USE_IRQ
38                config BSP_SDC_IRQ_CARD_REMOVE
39                    bool "Use interrupt to determine if the card is pulled out"
40                    default n
41
42            endif
43
44        endif
45
46    menuconfig BSP_USING_GMAC
47        bool "Enable gmac"
48        default n
49        select RT_USING_NETDEV
50
51
52        if BSP_USING_GMAC
53            config BSP_USING_GMAC0
54                bool "Enable GMAC0"
55                default y
56
57            config BSP_USING_GMAC1
58                bool "Enable GMAC1"
59                default n
60
61            config RT_LWIP_ETH_PAD_SIZE
62                int "set lwip ETH_PAD_SIZE"
63                range 2 256
64                default 2
65
66            config RAW_DATA_PRINT
67                bool "Enable mac raw data print"
68                default n
69
70                if RAW_DATA_PRINT
71                    config ETH_RX_DUMP
72                        bool "Enable gmac receive raw data print "
73                        default n
74
75                    config ETH_TX_DUMP
76                        bool "Enable gmac send raw data print "
77                        default n
78                endif
79
80        endif
81
82
83    # menuconfig BSP_USE_QSPI
84    #     bool "Enable Qspi"
85    #     select RT_USING_SFUD
86    #     select RT_SFUD_USING_QSPI
87    #     default n
88
89    #     if BSP_USE_QSPI
90    #         config BSP_QSPI_DEBUG
91    #             bool "Enable qspi debug print"
92    #             default n
93    #     endif
94
95    menuconfig BSP_USE_SPI
96        bool "Enable Spi"
97        select RT_USING_SFUD
98        select RT_SFUD_USING_SPI
99        select RT_SFUD_USING_SFDP
100        select RT_SFUD_USING_FLASH_INFO_TABLE
101        select BSP_USE_GPIO
102        default n
103        if BSP_USE_SPI
104            config BSP_SPI_DEBUG
105                bool "Enable spi debug print"
106                default n
107        endif
108
109    menuconfig BSP_USE_GPIO
110        bool "Enable Gpio"
111        default n
112        if BSP_USE_GPIO
113            config BSP_GPIO_DEBUG
114                bool "Enable gpio debug print"
115                default n
116        endif
117
118    menuconfig BSP_USE_CAN
119        bool "Enable Can"
120        select RT_USING_CAN
121        default n
122
123        if BSP_USE_CAN
124            config BSP_USING_CAN0
125                bool "Enable can0"
126                default n
127            config BSP_USING_CAN1
128                bool "Enable can1"
129                default n
130
131            if BSP_USING_CAN0
132                config BSP_USING_CAN0_DEBUG
133                    bool "Enable can0 work in loop back"
134                    default n
135            endif
136
137        endif
138
139
140endmenu
141
142menu "Board extended module Drivers"
143
144endmenu
145
146endmenu
147