1menu "Hardware Drivers Config" 2 3config SOC_APM32F107VC 4 bool 5 select SOC_SERIES_APM32F1 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 (uart4)" 14 select BSP_USING_UART 15 select BSP_USING_UART4 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 software simulation)" 28 select BSP_USING_I2C 29 select BSP_USING_I2C1 30 default n 31 32 config BSP_USING_ETH 33 bool "Enable Ethernet" 34 default n 35 select RT_USING_LWIP 36 select RT_USING_POSIX_FS 37 select RT_USING_POSIX_SOCKET 38 39 config PHY_USING_DP83848C 40 bool 41 depends on BSP_USING_ETH 42 default y 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_UART4 59 bool "Enable UART4" 60 default y 61 endif 62 63 menuconfig BSP_USING_ADC 64 bool "Enable ADC" 65 default n 66 select RT_USING_ADC 67 if BSP_USING_ADC 68 config BSP_USING_ADC1 69 bool "Enable ADC1" 70 default n 71 config BSP_USING_ADC2 72 bool "Enable ADC2" 73 default n 74 endif 75 76 menuconfig BSP_USING_DAC 77 bool "Enable DAC" 78 default n 79 select RT_USING_DAC 80 if BSP_USING_DAC 81 config BSP_USING_DAC1 82 bool "Enable DAC1" 83 default n 84 endif 85 86 menuconfig BSP_USING_ONCHIP_RTC 87 bool "Enable RTC" 88 select RT_USING_RTC 89 default n 90 if BSP_USING_ONCHIP_RTC 91 choice 92 prompt "Select clock source" 93 default BSP_RTC_USING_LSE 94 95 config BSP_RTC_USING_LSE 96 bool "RTC USING LSE" 97 98 config BSP_RTC_USING_LSI 99 bool "RTC USING LSI" 100 endchoice 101 endif 102 103 menuconfig BSP_USING_I2C 104 bool "Enable I2C BUS (software simulation)" 105 default n 106 select RT_USING_I2C 107 select RT_USING_I2C_BITOPS 108 select RT_USING_PIN 109 if BSP_USING_I2C 110 config BSP_USING_I2C1 111 bool "Enable I2C1 BUS" 112 if BSP_USING_I2C1 113 comment "Notice: PB6 --> 22; PB7 --> 23" 114 config BSP_I2C1_SCL_PIN 115 int "i2c1 scl pin number" 116 range 0 63 117 default 22 118 config BSP_I2C1_SDA_PIN 119 int "I2C1 sda pin number" 120 range 0 63 121 default 23 122 endif 123 config BSP_USING_I2C2 124 bool "Enable I2C2 BUS" 125 if BSP_USING_I2C2 126 comment "Notice: PA0 --> 0; PA1 --> 1" 127 config BSP_I2C2_SCL_PIN 128 int "i2c2 scl pin number" 129 range 0 63 130 default 0 131 config BSP_I2C2_SDA_PIN 132 int "I2C2 sda pin number" 133 range 0 63 134 default 1 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 endif 189 190 menuconfig BSP_USING_PWM 191 bool "Enable PWM" 192 default n 193 select RT_USING_PWM 194 if BSP_USING_PWM 195 menuconfig BSP_USING_PWM3 196 bool "Enable timer3 output PWM" 197 default n 198 if BSP_USING_PWM3 199 config BSP_USING_PWM3_CH1 200 bool "Enable PWM3 channel1" 201 default n 202 203 config BSP_USING_PWM3_CH2 204 bool "Enable PWM3 channel2" 205 default n 206 207 config BSP_USING_PWM3_CH3 208 bool "Enable PWM3 channel3" 209 default n 210 211 config BSP_USING_PWM3_CH4 212 bool "Enable PWM3 channel4" 213 default n 214 endif 215 endif 216 217 menuconfig BSP_USING_CAN 218 bool "Enable CAN" 219 default n 220 select RT_USING_CAN 221 if BSP_USING_CAN 222 config BSP_USING_CAN1 223 bool "Enable CAN1" 224 default n 225 config BSP_USING_CAN2 226 bool "Enable CAN2" 227 default n 228 endif 229 230 config BSP_USING_ON_CHIP_FLASH 231 bool "Enable on-chip FLASH" 232 default n 233 234 config BSP_USING_WDT 235 bool "Enable Watchdog Timer" 236 select RT_USING_WDT 237 default n 238 239endmenu 240 241menu "Board extended module Drivers" 242 243endmenu 244 245endmenu 246