1menu "Hardware Drivers Config" 2 3config SOC_CY8C6347BZI_BLD53 4 bool 5 select SOC_SERIES_IFX_PSOC63 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 endif 118 119 menuconfig BSP_USING_ADC 120 bool "Enable ADC" 121 default n 122 select RT_USING_ADC 123 if BSP_USING_ADC 124 config BSP_USING_ADC1 125 bool "Enable ADC1" 126 default n 127 endif 128 129 config BSP_USING_SDMMC 130 bool "Enable SDMMC (sd card)" 131 default n 132 select RT_USING_SDIO 133 select RT_USING_DFS 134 select RT_USING_DFS_ELMFAT 135 if BSP_USING_SDMMC 136 config BSP_USING_SDIO1 137 bool "Enable SDIO1 (sd card)" 138 default n 139 endif 140 141 menuconfig BSP_USING_HW_I2C 142 bool "Enable Hardware I2C Bus" 143 default n 144 select RT_USING_I2C 145 select RT_USING_PIN 146 if BSP_USING_HW_I2C 147 config BSP_USING_HW_I2C3 148 bool "Enable I2C3 Bus (User I2C)" 149 default n 150 if BSP_USING_HW_I2C3 151 comment "Notice: P6_0 --> 48; P6_1 --> 49" 152 config BSP_I2C3_SCL_PIN 153 int "i2c3 SCL pin number" 154 range 1 113 155 default 48 156 config BSP_I2C3_SDA_PIN 157 int "i2c3 SDA pin number" 158 range 1 113 159 default 49 160 endif 161 config BSP_USING_HW_I2C6 162 bool "Enable I2C6 Bus (User I2C)" 163 default n 164 if BSP_USING_HW_I2C6 165 comment "Notice: P13_0 --> 48; P13_1 --> 49" 166 config BSP_I2C6_SCL_PIN 167 int "i2c6 SCL pin number" 168 range 1 113 169 default 104 170 config BSP_I2C6_SDA_PIN 171 int "i2c6 SDA pin number" 172 range 1 113 173 default 105 174 endif 175 endif 176 177 menuconfig BSP_USING_I2C 178 bool "Enable Software I2C Bus" 179 default n 180 select RT_USING_I2C 181 select RT_USING_I2C_BITOPS 182 select RT_USING_PIN 183 if BSP_USING_I2C 184 config BSP_USING_I2C1 185 bool "Enable I2C1 Bus (User I2C)" 186 default n 187 if BSP_USING_I2C1 188 comment "Notice: P13_1 --> 105; P13_2 --> 106" 189 config BSP_I2C1_SCL_PIN 190 int "i2c1 SCL pin number" 191 range 1 113 192 default 105 193 config BSP_I2C1_SDA_PIN 194 int "i2c1 SDA pin number" 195 range 1 113 196 default 106 197 endif 198 endif 199 200 menuconfig BSP_USING_RTC 201 bool "Enable RTC" 202 select RT_USING_RTC 203 default n 204 if BSP_USING_RTC 205 choice 206 prompt "Select clock source" 207 default BSP_RTC_USING_LSE 208 209 config BSP_RTC_USING_LSE 210 bool "RTC USING LSE" 211 212 config BSP_RTC_USING_LSI 213 bool "RTC USING LSI" 214 endchoice 215 endif 216 217 config BSP_USING_ON_CHIP_FLASH 218 bool "Enable on-chip FLASH" 219 default n 220 221 config BSP_USING_WDT 222 bool "Enable Watchdog Timer" 223 select RT_USING_WDT 224 default n 225 226 menuconfig BSP_USING_DAC 227 bool "Enable DAC" 228 default n 229 select RT_USING_DAC 230 if BSP_USING_DAC 231 config BSP_USING_DAC1 232 bool "Enable DAC1" 233 default n 234 config BSP_USING_DAC2 235 bool "Enable DAC2" 236 default n 237 endif 238 239 menuconfig BSP_USING_TIM 240 bool "Enable timer" 241 default n 242 select RT_USING_HWTIMER 243 if BSP_USING_TIM 244 config BSP_USING_TIM1 245 bool "Enable TIM1" 246 default n 247 config BSP_USING_TIM2 248 bool "Enable TIM2" 249 default n 250 endif 251endmenu 252 253endmenu 254