1menu "Hardware Drivers Config"
2
3config SOC_MCXN947
4    bool
5    select SOC_MCXN947_SERIES
6    select RT_USING_COMPONENTS_INIT
7    select RT_USING_USER_MAIN
8    default y
9
10menu "On-chip Peripheral Drivers"
11
12    config BSP_USING_DMA
13        bool "Enable DMA"
14        select RT_USING_DMA
15        default n
16
17    config BSP_USING_PIN
18        bool "Enable GPIO"
19        select RT_USING_PIN
20        default y
21
22    menuconfig BSP_USING_UART
23        bool "Enable UART"
24        default y
25        select RT_USING_SERIAL
26        if BSP_USING_UART
27            config BSP_USING_UART4
28                bool "Enable UART4"
29                default y
30
31            config BSP_USING_UART5
32                bool "Enable UART5"
33                default n
34
35            config BSP_USING_UART2
36                bool "Enable UART2"
37                default n
38
39        endif
40
41    menuconfig BSP_USING_I2C
42        config BSP_USING_I2C
43            bool "Enable I2C"
44            select RT_USING_I2C
45            default y
46
47            if BSP_USING_I2C
48                config BSP_USING_I2C0
49                    bool "Enable Flexcomm0 I2C"
50                    default y
51                config BSP_USING_I2C1
52                    bool "Enable Flexcomm1 I2C"
53                    default y
54            endif
55
56    menuconfig BSP_USING_SPI
57        config BSP_USING_SPI
58            bool "Enable SPI"
59            select RT_USING_SPI
60            select BSP_USING_PIN
61            default y
62
63            if BSP_USING_SPI
64                config BSP_USING_SPI1
65                    bool "Enable Flexcomm1 as SPI"
66                    default n
67
68                config BSP_USING_SPI3
69                    bool "Enable Flexcomm3 as SPI"
70                    default n
71
72                config BSP_USING_SPI6
73                    bool "Enable Flexcomm6 as SPI"
74                    default n
75                    if BSP_USING_SPI6
76                        config BSP_USING_SPI6_SAMPLE
77                            bool "Enable SPI6 BUS Sample"
78                            default n
79                    endif
80
81                config BSP_USING_SPI7
82                    bool "Enable Flexcomm7 as SPI"
83                    default n
84            endif
85
86    menuconfig BSP_USING_ADC
87        config BSP_USING_ADC
88            bool "Enable ADC Channel"
89            select RT_USING_ADC
90            default y
91
92            if BSP_USING_ADC
93                config BSP_USING_ADC0
94                    bool
95                    default n
96
97                config BSP_USING_ADC0_CH0
98                    bool "Enable ADC0 Channel0"
99                    select BSP_USING_ADC0
100                    default y
101
102                config BSP_USING_ADC0_CH1
103                    bool "Enable ADC0 Channel1"
104                    select BSP_USING_ADC0
105                    default n
106
107                config BSP_USING_ADC0_CH8
108                    bool "Enable ADC0 Channel8"
109                    select BSP_USING_ADC0
110                    default n
111
112                config BSP_USING_ADC0_CH13
113                    bool "Enable ADC0 Channel13"
114                    select BSP_USING_ADC0
115                    default n
116
117                config BSP_USING_ADC0_CH26
118                    bool "Enable ADC0 Channel26"
119                    select BSP_USING_ADC0
120                    default n
121
122            endif
123
124    menuconfig BSP_USING_DAC
125        config BSP_USING_DAC
126            bool "Enable DAC Channel"
127            select RT_USING_DAC
128            default y
129
130            if BSP_USING_DAC
131                config BSP_USING_DAC0
132                    bool "Enable DAC0 Channel"
133                    default n
134
135                config BSP_USING_DAC1
136                    bool "Enable DAC1 Channel"
137                    default n
138
139                config BSP_USING_DAC2
140                    bool "Enable DAC2 Channel"
141                    default n
142
143            endif
144
145    config BSP_USING_SDIO
146        bool "Enable SDIO SD Card Interface"
147        select RT_USING_SDIO
148        select RT_USING_DFS
149        select RT_USING_DFS_ELMFAT
150        default y
151
152    config BSP_USING_ETH
153        bool "Enable Ethernet"
154        default n
155        select RT_USING_LWIP
156        select RT_USING_NETDEV
157        select RT_USING_SAL
158
159    config BSP_USING_RTC
160        bool "Enable RTC"
161        select RT_USING_RTC
162        default y
163
164    config BSP_USING_WDT
165        bool "Enable WatchDog"
166        select RT_USING_WDT
167        default n
168
169    menuconfig BSP_USING_HWTIMER
170        config BSP_USING_HWTIMER
171            bool "Enable Timer"
172            select RT_USING_HWTIMER
173            default y
174
175    menuconfig BSP_USING_PWM
176        config BSP_USING_PWM
177            bool "Enable PWM"
178            select RT_USING_PWM
179            default y
180
181            if BSP_USING_PWM
182                config BSP_USING_LEDG_PWM
183                    bool "Enable on-board green LED as PWM output (pwm0, channel 3)"
184                    default y
185            endif
186
187    menuconfig BSP_USING_USB
188       bool "Enable USB"
189       default n
190       if BSP_USING_USB
191            config BSP_USING_USB_DEVICE
192                bool "Enable USB Device"
193                default n
194                select RT_USING_CHERRYUSB
195                select RT_CHERRYUSB_DEVICE
196                select RT_CHERRYUSB_DEVICE_SPEED_HS
197                select RT_CHERRYUSB_DEVICE_CHIPIDEA_MCX
198            config BSP_USING_USB_HOST
199                bool "Enable USB Host"
200                default n
201                select RT_USING_CHERRYUSB
202                select RT_CHERRYUSB_HOST
203                select RT_CHERRYUSB_HOST_EHCI_MCX
204       endif
205
206
207endmenu
208
209
210menu "Board extended module Drivers"
211    menuconfig BSP_USING_RW007
212        bool "Enable RW007"
213        default n
214        select BSP_USING_SPI
215        select BSP_USING_SPI1
216        select PKG_USING_RW007
217        select RT_USING_MEMPOOL
218        select RW007_NOT_USE_EXAMPLE_DRIVERS
219
220    if BSP_USING_RW007
221        config BOARD_RW007_SPI_BUS_NAME
222            string "RW007 BUS NAME"
223            default "spi1"
224
225        config BOARD_RW007_CS_PIN
226            hex "CS pin index"
227            default 27
228
229        config BOARD_RW007_INT_BUSY_PIN
230            hex "INT/BUSY pin index"
231            default 10
232
233        config BOARD_RW007_RST_PIN
234            hex "RESET pin index"
235            default 28
236    endif
237endmenu
238
239endmenu
240