1menu "Hardware Drivers Config" 2 3config MCU_TAE32F53xx 4 bool 5 select ARCH_ARM_CORTEX_M3 6 select RT_USING_COMPONENTS_INIT 7 select RT_USING_USER_MAIN 8 default y 9 10menu "Onboard Peripheral Drivers" 11 12endmenu 13 14menu "On-chip Peripheral Drivers" 15 config BSP_USING_GPIO 16 bool "Enable GPIO" 17 select RT_USING_PIN 18 default y 19 20 menuconfig BSP_USING_UART 21 bool "Enable UART" 22 default y 23 select RT_USING_SERIAL 24 if BSP_USING_UART 25 config BSP_USING_UART0 26 bool "Enable UART0" 27 default y 28 29 config BSP_UART0_RX_USING_DMA 30 bool "Enable UART0 RX DMA" 31 depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA 32 default n 33 34 config BSP_UART0_TX_USING_DMA 35 bool "Enable UART0 TX DMA" 36 depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA 37 default n 38 39 config BSP_USING_UART1 40 bool "Enable UART1" 41 default n 42 43 config BSP_UART1_RX_USING_DMA 44 bool "Enable UART1 RX DMA" 45 depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA 46 default n 47 48 config BSP_UART1_TX_USING_DMA 49 bool "Enable UART1 TX DMA" 50 depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA 51 default n 52 endif 53 54 menuconfig BSP_USING_I2C1 55 bool "Enable I2C1 BUS (software simulation)" 56 default y 57 select RT_USING_I2C 58 select RT_USING_I2C_BITOPS 59 select RT_USING_PIN 60 if BSP_USING_I2C1 61 config BSP_I2C1_SCL_PIN 62 int "i2c1 scl pin number" 63 range 1 176 64 default 51 65 config BSP_I2C1_SDA_PIN 66 int "I2C1 sda pin number" 67 range 1 176 68 default 90 69 endif 70 71 menuconfig BSP_USING_SPI 72 bool "Enable SPI BUS" 73 default n 74 select RT_USING_SPI 75 if BSP_USING_SPI 76 config BSP_USING_SPI1 77 bool "Enable SPI1 BUS" 78 default n 79 80 config BSP_SPI1_TX_USING_DMA 81 bool "Enable SPI1 TX DMA" 82 depends on BSP_USING_SPI1 83 default n 84 85 config BSP_SPI1_RX_USING_DMA 86 bool "Enable SPI1 RX DMA" 87 depends on BSP_USING_SPI1 88 select BSP_SPI1_TX_USING_DMA 89 default n 90 91 config BSP_USING_SPI2 92 bool "Enable SPI2 BUS" 93 default n 94 95 config BSP_SPI2_TX_USING_DMA 96 bool "Enable SPI2 TX DMA" 97 depends on BSP_USING_SPI2 98 default n 99 100 config BSP_SPI2_RX_USING_DMA 101 bool "Enable SPI2 RX DMA" 102 depends on BSP_USING_SPI2 103 select BSP_SPI2_TX_USING_DMA 104 default n 105 106 config BSP_USING_SPI3 107 bool "Enable SPI3 BUS" 108 default n 109 110 config BSP_SPI3_TX_USING_DMA 111 bool "Enable SPI3 TX DMA" 112 depends on BSP_USING_SPI3 113 default n 114 115 config BSP_SPI3_RX_USING_DMA 116 bool "Enable SPI3 RX DMA" 117 depends on BSP_USING_SPI3 118 select BSP_SPI3_TX_USING_DMA 119 default n 120 121 config BSP_USING_SPI4 122 bool "Enable SPI4 BUS" 123 default n 124 125 config BSP_SPI4_TX_USING_DMA 126 bool "Enable SPI4 TX DMA" 127 depends on BSP_USING_SPI4 128 default n 129 130 config BSP_SPI4_RX_USING_DMA 131 bool "Enable SPI4 RX DMA" 132 depends on BSP_USING_SPI4 133 select BSP_SPI4_TX_USING_DMA 134 default n 135 136 config BSP_USING_SPI5 137 bool "Enable SPI5 BUS" 138 default n 139 140 config BSP_SPI5_RX_USING_DMA 141 bool "Enable SPI5 TX DMA" 142 depends on BSP_USING_SPI5 143 default n 144 145 config BSP_SPI5_RX_USING_DMA 146 bool "Enable SPI5 RX DMA" 147 depends on BSP_USING_SPI5 148 select BSP_SPI5_TX_USING_DMA 149 default n 150 151 config BSP_USING_SPI6 152 bool "Enable SPI6 BUS" 153 default n 154 155 config BSP_SPI6_TX_USING_DMA 156 bool "Enable SPI6 TX DMA" 157 depends on BSP_USING_SPI6 158 default n 159 160 config BSP_SPI6_RX_USING_DMA 161 bool "Enable SPI6 RX DMA" 162 depends on BSP_USING_SPI6 163 select BSP_SPI6_TX_USING_DMA 164 default n 165 endif 166 167 menuconfig BSP_USING_RTC 168 bool "Enable RTC" 169 select RT_USING_RTC 170 default n 171 172 if BSP_USING_RTC 173 choice 174 prompt "Select clock source" 175 default BSP_RTC_USING_LRC 176 177 config BSP_RTC_USING_XTAL32 178 bool "RTC USING XTAL32" 179 180 config BSP_RTC_USING_LRC 181 bool "RTC USING LRC" 182 endchoice 183 endif 184 185 menuconfig BSP_USING_PWM 186 bool "Enable PWM" 187 default n 188 select RT_USING_PWM 189 if BSP_USING_PWM 190 menuconfig BSP_USING_PWM1 191 bool "Enable timer1 output PWM" 192 default n 193 if BSP_USING_PWM1 194 config BSP_USING_PWM1_CH1 195 bool "Enable PWM1 channel1" 196 default n 197 198 config BSP_USING_PWM1_CH2 199 bool "Enable PWM1 channel2" 200 default n 201 202 config BSP_USING_PWM1_CH3 203 bool "Enable PWM1 channel3" 204 default n 205 206 config BSP_USING_PWM1_CH4 207 bool "Enable PWM1 channel4" 208 default n 209 endif 210 211 menuconfig BSP_USING_PWM2 212 bool "Enable timer2 output PWM" 213 default n 214 if BSP_USING_PWM2 215 config BSP_USING_PWM2_CH1 216 bool "Enable PWM2 channel1" 217 default n 218 219 config BSP_USING_PWM2_CH2 220 bool "Enable PWM2 channel2" 221 default n 222 223 config BSP_USING_PWM2_CH3 224 bool "Enable PWM2 channel3" 225 default n 226 227 config BSP_USING_PWM2_CH4 228 bool "Enable PWM2 channel4" 229 default n 230 endif 231 endif 232 233 menuconfig BSP_USING_TIMER 234 bool "Enable TIMER" 235 default n 236 select RT_USING_HWTIMER 237 if BSP_USING_TIMER 238 config BSP_USING_TIMER5 239 bool "Enable TIMER5" 240 default n 241 242 config BSP_USING_TIMER6 243 bool "Enable TIMER6" 244 default n 245 246 config BSP_USING_TIMER7 247 bool "Enable TIMER7" 248 default n 249 250 config BSP_USING_TIMER8 251 bool "Enable TIMER8" 252 default n 253 endif 254 255 menuconfig BSP_USING_PULSE_ENCODER 256 bool "Enable Pulse Encoder" 257 default n 258 select RT_USING_PULSE_ENCODER 259 if BSP_USING_PULSE_ENCODER 260 config BSP_USING_PULSE_ENCODER9 261 bool "Enable Pulse Encoder9" 262 default n 263 264 config BSP_USING_PULSE_ENCODER10 265 bool "Enable Pulse Encoder10" 266 default n 267 268 config BSP_USING_PULSE_ENCODER11 269 bool "Enable Pulse Encoder11" 270 default n 271 272 config BSP_USING_PULSE_ENCODER12 273 bool "Enable Pulse Encoder12" 274 default n 275 endif 276 277endmenu 278 279menu "Board extended module Drivers" 280 281endmenu 282 283endmenu 284 285