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