1menu "Hardware Drivers Config" 2 3config SOC_AT32F455ZET7 4 bool 5 select SOC_SERIES_AT32F455 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_SERIAL 13 bool "Enable USART (uart1)" 14 select BSP_USING_UART 15 select BSP_USING_UART1 16 default y 17 18endmenu 19 20menu "On-chip Peripheral Drivers" 21 22 config BSP_USING_SDRAM 23 bool "Enable SDRAM" 24 default n 25 26 config BSP_USING_GPIO 27 bool "Enable GPIO" 28 select RT_USING_PIN 29 default y 30 31 config BSP_USING_ON_CHIP_FLASH 32 bool "Enable on-chip FLASH" 33 default n 34 35 menuconfig BSP_USING_USBOTG 36 bool "Enable USB BUS" 37 default n 38 if BSP_USING_USBOTG 39 menuconfig BSP_USING_USBOTG1 40 bool "Enable USB BUS1" 41 default n 42 if BSP_USING_USBOTG1 43 config BSP_USING_DEVICE_USBOTG1 44 bool "Enable USB1 Deivce" 45 select RT_USING_USB_DEVICE 46 default n 47 48 config BSP_USING_HOST_USBOTG1 49 bool "Enable USB1 Host" 50 select RT_USING_USB_HOST 51 default n 52 endif 53 endif 54 55 config BSP_USING_EMAC 56 bool "Enable Ethernet" 57 default n 58 select RT_USING_LWIP 59 if BSP_USING_EMAC 60 choice 61 prompt "Select phy" 62 default PHY_USING_DM9162 63 64 config PHY_USING_DM9162 65 bool "PHY USING DM9162" 66 67 config PHY_USING_DP83848 68 bool "PHY USING DP83848" 69 70 config PHY_USING_LAN8720 71 bool "PHY USING LAN8720" 72 73 config PHY_USING_YT8512 74 bool "PHY USING YT8512" 75 endchoice 76 endif 77 78 menuconfig BSP_USING_QSPI 79 bool "Enable QSPI BUS" 80 default n 81 select RT_USING_QSPI 82 select RT_USING_SPI 83 if BSP_USING_QSPI 84 config BSP_USING_QSPI1 85 bool "Enable QSPI1" 86 default n 87 endif 88 89 menuconfig BSP_USING_RTC 90 bool "Enable RTC" 91 select RT_USING_RTC 92 default n 93 if BSP_USING_RTC 94 choice 95 prompt "Select clock source" 96 default BSP_RTC_USING_LEXT 97 98 config BSP_RTC_USING_LEXT 99 bool "RTC USING LEXT" 100 101 config BSP_RTC_USING_LICK 102 bool "RTC USING LICK" 103 endchoice 104 endif 105 106 menuconfig BSP_USING_UART 107 bool "Enable UART" 108 default y 109 select RT_USING_SERIAL 110 if BSP_USING_UART 111 menuconfig BSP_USING_UART1 112 bool "Enable UART1" 113 default y 114 if BSP_USING_UART1 115 config BSP_UART1_RX_USING_DMA 116 bool "Enable UART1 RX DMA" 117 depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA 118 default n 119 120 config BSP_UART1_TX_USING_DMA 121 bool "Enable UART1 TX DMA" 122 depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA 123 default n 124 125 config BSP_UART1_RX_BUFSIZE 126 int "Set UART1 RX buffer size" 127 range 64 65535 128 depends on RT_USING_SERIAL_V2 129 default 256 130 131 config BSP_UART1_TX_BUFSIZE 132 int "Set UART1 TX buffer size" 133 range 0 65535 134 depends on RT_USING_SERIAL_V2 135 default 0 136 endif 137 138 menuconfig BSP_USING_UART2 139 bool "Enable UART2" 140 default y 141 if BSP_USING_UART2 142 config BSP_UART2_RX_USING_DMA 143 bool "Enable UART2 RX DMA" 144 depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA 145 default n 146 147 config BSP_UART2_TX_USING_DMA 148 bool "Enable UART2 TX DMA" 149 depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA 150 default n 151 152 config BSP_UART2_RX_BUFSIZE 153 int "Set UART2 RX buffer size" 154 range 64 65535 155 depends on RT_USING_SERIAL_V2 156 default 256 157 158 config BSP_UART2_TX_BUFSIZE 159 int "Set UART2 TX buffer size" 160 range 0 65535 161 depends on RT_USING_SERIAL_V2 162 default 0 163 endif 164 165 menuconfig BSP_USING_UART3 166 bool "Enable UART3" 167 default y 168 if BSP_USING_UART3 169 config BSP_UART3_RX_USING_DMA 170 bool "Enable UART3 RX DMA" 171 depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA 172 default n 173 174 config BSP_UART3_TX_USING_DMA 175 bool "Enable UART3 TX DMA" 176 depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA 177 default n 178 179 config BSP_UART3_RX_BUFSIZE 180 int "Set UART3 RX buffer size" 181 range 64 65535 182 depends on RT_USING_SERIAL_V2 183 default 256 184 185 config BSP_UART3_TX_BUFSIZE 186 int "Set UART3 TX buffer size" 187 range 0 65535 188 depends on RT_USING_SERIAL_V2 189 default 0 190 endif 191 endif 192 193 menuconfig BSP_USING_PWM 194 bool "Enable PWM" 195 default n 196 select RT_USING_PWM 197 if BSP_USING_PWM 198 menuconfig BSP_USING_PWM1 199 bool "Enable timer1 output pwm" 200 default n 201 if BSP_USING_PWM1 202 config BSP_USING_PWM1_CH1 203 bool "Enable PWM1 channel1" 204 default n 205 206 config BSP_USING_PWM1_CH4 207 bool "Enable PWM1 channel4" 208 default n 209 endif 210 menuconfig BSP_USING_PWM2 211 bool "Enable timer2 output pwm" 212 default n 213 if BSP_USING_PWM2 214 config BSP_USING_PWM2_CH1 215 bool "Enable PWM2 channel1" 216 default n 217 218 config BSP_USING_PWM2_CH2 219 bool "Enable PWM2 channel2" 220 default n 221 endif 222 endif 223 224 menuconfig BSP_USING_HWTIMER 225 bool "Enable HWTIMER" 226 default n 227 select RT_USING_HWTIMER 228 if BSP_USING_HWTIMER 229 config BSP_USING_HWTMR3 230 bool "Enable hardware timer3" 231 default n 232 config BSP_USING_HWTMR4 233 bool "Enable hardware timer4" 234 default n 235 config BSP_USING_HWTMR5 236 bool "Enable hardware timer5" 237 default n 238 endif 239 240 menuconfig BSP_USING_SPI 241 bool "Enable SPI BUS" 242 default n 243 select RT_USING_SPI 244 if BSP_USING_SPI 245 config BSP_USING_SPI1 246 bool "Enable SPI1 BUS" 247 default n 248 249 config BSP_SPI1_TX_USING_DMA 250 bool "Enable SPI1 TX DMA" 251 depends on BSP_USING_SPI1 252 default n 253 254 config BSP_SPI1_RX_USING_DMA 255 bool "Enable SPI1 RX DMA" 256 depends on BSP_USING_SPI1 257 select BSP_SPI1_TX_USING_DMA 258 default n 259 260 config BSP_USING_SPI2 261 bool "Enable SPI2 BUS" 262 default n 263 264 config BSP_SPI2_TX_USING_DMA 265 bool "Enable SPI2 TX DMA" 266 depends on BSP_USING_SPI2 267 default n 268 269 config BSP_SPI2_RX_USING_DMA 270 bool "Enable SPI2 RX DMA" 271 depends on BSP_USING_SPI2 272 select BSP_SPI2_TX_USING_DMA 273 default n 274 endif 275 276 menuconfig BSP_USING_I2C 277 bool "Enable I2C BUS (software simulation)" 278 default n 279 select RT_USING_I2C 280 select RT_USING_I2C_BITOPS 281 select RT_USING_PIN 282 if BSP_USING_I2C 283 config BSP_USING_I2C1 284 bool "Enable I2C1 BUS" 285 if BSP_USING_I2C1 286 config BSP_I2C1_SCL_PIN 287 int "i2c1 scl pin number" 288 range 0 63 289 default 22 290 config BSP_I2C1_SDA_PIN 291 int "I2C1 sda pin number" 292 range 0 63 293 default 23 294 endif 295 config BSP_USING_I2C2 296 bool "Enable I2C2 BUS" 297 if BSP_USING_I2C2 298 config BSP_I2C2_SCL_PIN 299 int "i2c2 scl pin number" 300 range 0 63 301 default 26 302 config BSP_I2C2_SDA_PIN 303 int "I2C2 sda pin number" 304 range 0 63 305 default 27 306 endif 307 config BSP_USING_I2C3 308 bool "Enable I2C3 BUS" 309 if BSP_USING_I2C3 310 config BSP_I2C3_SCL_PIN 311 int "i2c3 scl pin number" 312 range 0 63 313 default 8 314 config BSP_I2C3_SDA_PIN 315 int "I2C3 sda pin number" 316 range 0 63 317 default 41 318 endif 319 endif 320 321 menuconfig BSP_USING_HARD_I2C 322 bool "Enable I2C BUS (hardware driver)" 323 default n 324 select RT_USING_I2C 325 if BSP_USING_HARD_I2C 326 config BSP_USING_HARD_I2C1 327 bool "Enable I2C1 BUS" 328 default n 329 330 config BSP_I2C1_TX_USING_DMA 331 bool "Enable I2C1 TX DMA" 332 depends on BSP_USING_HARD_I2C1 333 default n 334 335 config BSP_I2C1_RX_USING_DMA 336 bool "Enable I2C1 RX DMA" 337 depends on BSP_USING_HARD_I2C1 338 select BSP_I2C1_TX_USING_DMA 339 default n 340 341 config BSP_USING_HARD_I2C2 342 bool "Enable I2C2 BUS" 343 default n 344 345 config BSP_I2C2_TX_USING_DMA 346 bool "Enable I2C2 TX DMA" 347 depends on BSP_USING_HARD_I2C2 348 default n 349 350 config BSP_I2C2_RX_USING_DMA 351 bool "Enable I2C2 RX DMA" 352 depends on BSP_USING_HARD_I2C2 353 select BSP_I2C2_TX_USING_DMA 354 default n 355 356 config BSP_USING_HARD_I2C3 357 bool "Enable I2C3 BUS" 358 default n 359 360 config BSP_I2C3_TX_USING_DMA 361 bool "Enable I2C3 TX DMA" 362 depends on BSP_USING_HARD_I2C3 363 default n 364 365 config BSP_I2C3_RX_USING_DMA 366 bool "Enable I2C3 RX DMA" 367 depends on BSP_USING_HARD_I2C3 368 select BSP_I2C3_TX_USING_DMA 369 default n 370 endif 371 372 menuconfig BSP_USING_ADC 373 bool "Enable ADC" 374 default n 375 select RT_USING_ADC 376 if BSP_USING_ADC 377 config BSP_USING_ADC1 378 bool "Enable ADC1" 379 default n 380 config BSP_USING_ADC2 381 bool "Enable ADC2" 382 default n 383 endif 384 385 menuconfig BSP_USING_DAC 386 bool "Enable DAC" 387 default n 388 select RT_USING_DAC 389 if BSP_USING_DAC 390 config BSP_USING_DAC1 391 bool "Enable DAC1" 392 default n 393 endif 394 395 menuconfig BSP_USING_CAN_V2 396 bool "Enable CAN" 397 default n 398 select RT_USING_CAN 399 if BSP_USING_CAN_V2 400 config BSP_USING_CAN1 401 bool "using CAN1" 402 default n 403 config BSP_USING_CAN2 404 bool "using CAN2" 405 default n 406 config BSP_USING_CAN3 407 bool "using CAN3" 408 default n 409 endif 410 411 menuconfig BSP_USING_SDIO 412 bool "Enable SDIO" 413 default n 414 select RT_USING_SDIO 415 if BSP_USING_SDIO 416 config BSP_USING_SDIO1 417 bool "Enable SDIO1" 418 default n 419 endif 420endmenu 421 422endmenu 423