1menu "Hardware Drivers Config" 2 3config SOC_APM32E103ZE 4 bool 5 select SOC_SERIES_APM32E1 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 (uart1)" 14 select BSP_USING_UART 15 select BSP_USING_UART1 16 default y 17 18 config BSP_USING_SPI_FLASH 19 bool "Enable SPI FLASH (W25Q16 spi3)" 20 select BSP_USING_SPI 21 select BSP_USING_SPI3 22 select RT_USING_SFUD 23 select RT_SFUD_USING_SFDP 24 default n 25 26 config BSP_USING_EEPROM 27 bool "Enable I2C EEPROM (i2c1)" 28 select BSP_USING_I2C 29 select BSP_USING_I2C1 30 default n 31 32 config BSP_USING_SDCARD 33 bool "Enable SDCARD (sdio)" 34 select BSP_USING_SDIO 35 select RT_USING_DFS 36 select RT_USING_DFS_ELMFAT 37 default n 38 39 config BSP_USING_SDRAM 40 bool "Enable SDRAM" 41 select BSP_USING_DMC 42 default n 43 44endmenu 45 46menu "On-chip Peripheral Drivers" 47 48 config BSP_USING_GPIO 49 bool "Enable GPIO" 50 select RT_USING_PIN 51 default y 52 53 menuconfig BSP_USING_UART 54 bool "Enable UART" 55 default y 56 select RT_USING_SERIAL 57 if BSP_USING_UART 58 config BSP_USING_UART1 59 bool "Enable UART1" 60 default y 61 config BSP_USING_UART2 62 bool "Enable UART2" 63 default n 64 endif 65 66 menuconfig BSP_USING_ADC 67 bool "Enable ADC" 68 default n 69 select RT_USING_ADC 70 if BSP_USING_ADC 71 config BSP_USING_ADC1 72 bool "Enable ADC1" 73 default n 74 config BSP_USING_ADC2 75 bool "Enable ADC2" 76 default n 77 config BSP_USING_ADC3 78 bool "Enable ADC3" 79 default n 80 endif 81 82 menuconfig BSP_USING_DAC 83 bool "Enable DAC" 84 default n 85 select RT_USING_DAC 86 if BSP_USING_DAC 87 config BSP_USING_DAC1 88 bool "Enable DAC1" 89 default n 90 endif 91 92 menuconfig BSP_USING_ONCHIP_RTC 93 bool "Enable RTC" 94 select RT_USING_RTC 95 default n 96 if BSP_USING_ONCHIP_RTC 97 choice 98 prompt "Select clock source" 99 default BSP_RTC_USING_LSE 100 101 config BSP_RTC_USING_LSE 102 bool "RTC USING LSE" 103 104 config BSP_RTC_USING_LSI 105 bool "RTC USING LSI" 106 endchoice 107 endif 108 109 menuconfig BSP_USING_I2C 110 bool "Enable I2C BUS (software simulation)" 111 default n 112 select RT_USING_I2C 113 select RT_USING_I2C_BITOPS 114 select RT_USING_PIN 115 if BSP_USING_I2C 116 config BSP_USING_I2C1 117 bool "Enable I2C1 BUS" 118 if BSP_USING_I2C1 119 comment "Notice: PB6 --> 22; PB7 --> 23" 120 config BSP_I2C1_SCL_PIN 121 int "i2c1 scl pin number" 122 range 0 63 123 default 22 124 config BSP_I2C1_SDA_PIN 125 int "I2C1 sda pin number" 126 range 0 63 127 default 23 128 endif 129 config BSP_USING_I2C2 130 bool "Enable I2C2 BUS" 131 if BSP_USING_I2C2 132 comment "Notice: PA0 --> 0; PA1 --> 1" 133 config BSP_I2C2_SCL_PIN 134 int "i2c2 scl pin number" 135 range 0 63 136 default 22 137 config BSP_I2C2_SDA_PIN 138 int "I2C2 sda pin number" 139 range 0 63 140 default 23 141 endif 142 config BSP_USING_I2C3 143 bool "Enable I2C3 BUS" 144 if BSP_USING_I2C3 145 comment "Notice: PB0 --> 16; PB1 --> 17" 146 config BSP_I2C3_SCL_PIN 147 int "i2c3 scl pin number" 148 range 0 63 149 default 8 150 config BSP_I2C3_SDA_PIN 151 int "I2C3 sda pin number" 152 range 0 63 153 default 41 154 endif 155 endif 156 157 menuconfig BSP_USING_SPI 158 bool "Enable SPI" 159 default n 160 select RT_USING_SPI 161 if BSP_USING_SPI 162 config BSP_USING_SPI1 163 bool "Enable SPI1" 164 default n 165 166 config BSP_USING_SPI2 167 bool "Enable SPI2" 168 default n 169 170 config BSP_USING_SPI3 171 bool "Enable SPI3" 172 default n 173 endif 174 175 menuconfig BSP_USING_TMR 176 bool "Enable Timer" 177 default n 178 select RT_USING_HWTIMER 179 if BSP_USING_TMR 180 config BSP_USING_TMR1 181 bool "Enable TMR1" 182 default n 183 184 config BSP_USING_TMR2 185 bool "Enable TMR2" 186 default n 187 188 config BSP_USING_TMR3 189 bool "Enable TMR3" 190 default n 191 192 config BSP_USING_TMR4 193 bool "Enable TMR4" 194 default n 195 196 config BSP_USING_TMR5 197 bool "Enable TMR5" 198 default n 199 200 config BSP_USING_TMR6 201 bool "Enable TMR6" 202 default n 203 204 config BSP_USING_TMR7 205 bool "Enable TMR7" 206 default n 207 208 config BSP_USING_TMR8 209 bool "Enable TMR8" 210 default n 211 endif 212 213 menuconfig BSP_USING_PWM 214 bool "Enable PWM" 215 default n 216 select RT_USING_PWM 217 if BSP_USING_PWM 218 menuconfig BSP_USING_PWM3 219 bool "Enable timer3 output PWM" 220 default n 221 if BSP_USING_PWM3 222 config BSP_USING_PWM3_CH1 223 bool "Enable PWM3 channel1" 224 default n 225 226 config BSP_USING_PWM3_CH2 227 bool "Enable PWM3 channel2" 228 default n 229 230 config BSP_USING_PWM3_CH3 231 bool "Enable PWM3 channel3" 232 default n 233 234 config BSP_USING_PWM3_CH4 235 bool "Enable PWM3 channel4" 236 default n 237 endif 238 endif 239 240 menuconfig BSP_USING_CAN 241 bool "Enable CAN" 242 default n 243 select RT_USING_CAN 244 if BSP_USING_CAN 245 config BSP_USING_CAN1 246 bool "Enable CAN1" 247 default n 248 config BSP_USING_CAN2 249 bool "Enable CAN2" 250 default n 251 endif 252 253 config BSP_USING_SDIO 254 bool "Enable SDIO" 255 select RT_USING_SDIO 256 select RT_USING_DFS 257 default n 258 259 config BSP_USING_ON_CHIP_FLASH 260 bool "Enable on-chip FLASH" 261 default n 262 263 config BSP_USING_WDT 264 bool "Enable Watchdog Timer" 265 select RT_USING_WDT 266 default n 267 268 config BSP_USING_DMC 269 bool 270 default n 271 272endmenu 273 274endmenu 275