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