1menu "Hardware Drivers Config"
2
3config SOC_CY8C6247BZI_D54
4    bool
5    select SOC_SERIES_IFX_PSOC61
6    select RT_USING_COMPONENTS_INIT
7    select RT_USING_USER_MAIN
8    default y
9
10menu "Onboard Peripheral Drivers"
11
12    config BSP_USING_USB_TO_USART
13        bool "Enable USB TO USART (uart5)"
14        select BSP_USING_UART
15        select BSP_USING_UART5
16        default y
17endmenu
18
19menu "On-chip Peripheral Drivers"
20
21    config BSP_USING_GPIO
22        bool "Enable GPIO"
23        select RT_USING_PIN
24        default y
25
26    menuconfig BSP_USING_UART
27        bool "Enable UART"
28        default y
29        select RT_USING_SERIAL
30        if BSP_USING_UART
31            config BSP_USING_UART0
32                bool "Enable UART0"
33                default n
34            config BSP_USING_UART1
35                bool "Enable UART1"
36                default n
37            config BSP_USING_UART2
38                bool "Enable UART2"
39                default n
40            config BSP_USING_UART3
41                bool "Enable UART3"
42                default n
43            config BSP_USING_UART4
44                bool "Enable UART4"
45                default n
46            config BSP_USING_UART5
47                bool "Enable UART5"
48                default y
49        endif
50
51    menuconfig BSP_USING_PWM
52        bool "Enable PWM"
53        default n
54        select RT_USING_PWM
55        if BSP_USING_PWM
56        menuconfig BSP_USING_PWM0
57            bool "Enable timer0 output pwm"
58            default n
59            if BSP_USING_PWM0
60                menuconfig BSP_USING_PWM0_CH3
61                    bool "Enable PWM0 channel3"
62                    default n
63                    if BSP_USING_PWM0_CH3
64                        config BSP_USING_PWM0_PORT13
65                        bool "Enable PWM0-PORT13 output pwm"
66                        default n
67                    endif
68                menuconfig BSP_USING_PWM0_CH7
69                    bool "Enable PWM0 channel7"
70                    default n
71                    if BSP_USING_PWM0_CH7
72                        config BSP_USING_PWM0_PORT2
73                        bool "Enable PWM0-PORT2 output pwm"
74                        default n
75                    endif
76                    if BSP_USING_PWM0_CH7
77                        config BSP_USING_PWM0_PORT5
78                        bool "Enable PWM0-PORT5 output pwm"
79                        default n
80                    endif
81                    if BSP_USING_PWM0_CH7
82                        config BSP_USING_PWM0_PORT7
83                        bool "Enable PWM0-PORT7 output pwm"
84                        default n
85                    endif
86                    if BSP_USING_PWM0_CH7
87                        config BSP_USING_PWM0_PORT9
88                        bool "Enable PWM0-PORT9 output pwm"
89                        default n
90                    endif
91                    if BSP_USING_PWM0_CH7
92                        config BSP_USING_PWM0_PORT10
93                        bool "Enable PWM0-PORT10 output pwm"
94                        default n
95                    endif
96                    if BSP_USING_PWM0_CH7
97                        config BSP_USING_PWM0_PORT12
98                        bool "Enable PWM0-PORT12 output pwm"
99                        default n
100                    endif
101            endif
102        endif
103
104    menuconfig BSP_USING_SPI
105        bool "Enable SPI BUS"
106        select RT_USING_SPI
107        default n
108        if BSP_USING_SPI
109            menuconfig BSP_USING_SPI3
110                bool "Enable SPI3 BUS"
111                default n
112                if BSP_USING_SPI3
113                    config BSP_USING_SPI3_SAMPLE
114                        bool "Enable SPI3 BUS Sample"
115                        default n
116                endif
117            menuconfig BSP_USING_SPI6
118                bool "Enable SPI6 BUS"
119                default n
120                if BSP_USING_SPI6
121                    config BSP_USING_SPI6_SAMPLE
122                        bool "Enable SPI6 BUS Sample"
123                        default n
124                endif
125        endif
126
127    menuconfig BSP_USING_ADC
128        bool "Enable ADC"
129        default n
130        select RT_USING_ADC
131        if BSP_USING_ADC
132            config BSP_USING_ADC1
133                bool "Enable ADC1"
134                default n
135        endif
136
137    config BSP_USING_SDMMC
138        bool "Enable SDMMC (sd card)"
139        default n
140        select RT_USING_SDIO
141        select RT_USING_DFS
142        select RT_USING_DFS_ELMFAT
143        if BSP_USING_SDMMC
144            config BSP_USING_SDIO1
145                bool "Enable SDIO1 (sd card)"
146                default n
147        endif
148
149    menuconfig BSP_USING_HW_I2C
150        bool "Enable Hardware I2C Bus"
151        default n
152        select RT_USING_I2C
153        select RT_USING_PIN
154        if BSP_USING_HW_I2C
155            config BSP_USING_HW_I2C3
156                bool "Enable I2C3 Bus (User I2C)"
157                default n
158                if BSP_USING_HW_I2C3
159                    comment "Notice: P6_0 --> 48; P6_1 --> 49"
160                    config BSP_I2C3_SCL_PIN
161                        int "i2c3 SCL pin number"
162                        range 1 113
163                        default 48
164                    config BSP_I2C3_SDA_PIN
165                        int "i2c3 SDA pin number"
166                        range 1 113
167                        default 49
168                endif
169            config BSP_USING_HW_I2C6
170                bool "Enable I2C6 Bus (User I2C)"
171                default n
172                if BSP_USING_HW_I2C6
173                    comment "Notice: P13_0 --> 48; P13_1 --> 49"
174                    config BSP_I2C6_SCL_PIN
175                        int "i2c6 SCL pin number"
176                        range 1 113
177                        default 104
178                    config BSP_I2C6_SDA_PIN
179                        int "i2c6 SDA pin number"
180                        range 1 113
181                        default 105
182                endif
183        endif
184
185    menuconfig BSP_USING_I2C
186        bool "Enable Software I2C Bus"
187        default n
188        select RT_USING_I2C
189        select RT_USING_I2C_BITOPS
190        select RT_USING_PIN
191        if BSP_USING_I2C
192            config BSP_USING_I2C1
193                bool "Enable I2C1 Bus (User I2C)"
194                default n
195                if BSP_USING_I2C1
196                    comment "Notice: P13_1 --> 105; P13_2 --> 106"
197                    config BSP_I2C1_SCL_PIN
198                        int "i2c1 SCL pin number"
199                        range 1 113
200                        default 105
201                    config BSP_I2C1_SDA_PIN
202                        int "i2c1 SDA pin number"
203                        range 1 113
204                        default 106
205                endif
206        endif
207
208    menuconfig BSP_USING_RTC
209        bool "Enable RTC"
210        select RT_USING_RTC
211        default n
212        if BSP_USING_RTC
213            choice
214                prompt "Select clock source"
215                default BSP_RTC_USING_LSE
216
217                config BSP_RTC_USING_LSE
218                    bool "RTC USING LSE"
219
220                config BSP_RTC_USING_LSI
221                    bool "RTC USING LSI"
222            endchoice
223        endif
224
225    config BSP_USING_ON_CHIP_FLASH
226        bool "Enable on-chip FLASH"
227        default n
228
229    config BSP_USING_WDT
230        bool "Enable Watchdog Timer"
231        select RT_USING_WDT
232        default n
233
234    menuconfig BSP_USING_DAC
235        bool "Enable DAC"
236        default n
237        select RT_USING_DAC
238        if BSP_USING_DAC
239            config BSP_USING_DAC1
240                bool "Enable DAC1"
241                default n
242            config BSP_USING_DAC2
243                bool "Enable DAC2"
244                default n
245        endif
246
247    menuconfig BSP_USING_TIM
248        bool "Enable timer"
249        default n
250        select RT_USING_HWTIMER
251        if BSP_USING_TIM
252            config BSP_USING_TIM1
253                bool "Enable TIM1"
254                default n
255            config BSP_USING_TIM2
256                bool "Enable TIM2"
257                default n
258        endif
259endmenu
260
261endmenu
262