1menu "Hardware Drivers Config" 2 3config SOC_APM32F030RB 4 bool 5 select SOC_SERIES_APM32F0 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 16 config BSP_USING_GPIO 17 bool "Enable GPIO" 18 select RT_USING_PIN 19 default y 20 21 menuconfig BSP_USING_UART 22 bool "Enable UART" 23 default y 24 select RT_USING_SERIAL 25 if BSP_USING_UART 26 config BSP_USING_UART1 27 bool "Enable UART1" 28 default y 29 config BSP_USING_UART2 30 bool "Enable UART2" 31 default n 32 endif 33 34 menuconfig BSP_USING_ADC 35 bool "Enable ADC" 36 default n 37 select RT_USING_ADC 38 if BSP_USING_ADC 39 config BSP_USING_ADC1 40 bool "Enable ADC1" 41 default n 42 endif 43 44 menuconfig BSP_USING_DAC 45 bool "Enable DAC" 46 default n 47 select RT_USING_DAC 48 if BSP_USING_DAC 49 config BSP_USING_DAC1 50 bool "Enable DAC1" 51 default n 52 endif 53 54 menuconfig BSP_USING_ONCHIP_RTC 55 bool "Enable RTC" 56 select RT_USING_RTC 57 default n 58 if BSP_USING_ONCHIP_RTC 59 choice 60 prompt "Select clock source" 61 default BSP_RTC_USING_LSE 62 63 config BSP_RTC_USING_LSE 64 bool "RTC USING LSE" 65 66 config BSP_RTC_USING_LSI 67 bool "RTC USING LSI" 68 endchoice 69 endif 70 71 menuconfig BSP_USING_I2C 72 bool "Enable I2C BUS (software simulation)" 73 default n 74 select RT_USING_I2C 75 select RT_USING_I2C_BITOPS 76 select RT_USING_PIN 77 if BSP_USING_I2C 78 config BSP_USING_I2C1 79 bool "Enable I2C1 BUS" 80 if BSP_USING_I2C1 81 comment "Notice: PB10 --> 26; PB11 --> 27" 82 config BSP_I2C1_SCL_PIN 83 int "i2c1 scl pin number" 84 range 0 63 85 default 26 86 config BSP_I2C1_SDA_PIN 87 int "I2C1 sda pin number" 88 range 0 63 89 default 27 90 endif 91 config BSP_USING_I2C2 92 bool "Enable I2C2 BUS" 93 if BSP_USING_I2C2 94 comment "Notice: PA0 --> 0; PA1 --> 1" 95 config BSP_I2C2_SCL_PIN 96 int "i2c2 scl pin number" 97 range 0 63 98 default 22 99 config BSP_I2C2_SDA_PIN 100 int "I2C2 sda pin number" 101 range 0 63 102 default 23 103 endif 104 endif 105 106 menuconfig BSP_USING_SPI 107 bool "Enable SPI" 108 default n 109 select RT_USING_SPI 110 if BSP_USING_SPI 111 config BSP_USING_SPI1 112 bool "Enable SPI1" 113 default n 114 115 config BSP_USING_SPI2 116 bool "Enable SPI2" 117 default n 118 endif 119 120 menuconfig BSP_USING_TMR 121 bool "Enable Timer" 122 default n 123 select RT_USING_HWTIMER 124 if BSP_USING_TMR 125 config BSP_USING_TMR1 126 bool "Enable TMR1" 127 default n 128 129 config BSP_USING_TMR3 130 bool "Enable TMR3" 131 default n 132 133 config BSP_USING_TMR6 134 bool "Enable TMR6" 135 default n 136 137 config BSP_USING_TMR7 138 bool "Enable TMR7" 139 default n 140 141 config BSP_USING_TMR14 142 bool "Enable TMR14" 143 default n 144 145 config BSP_USING_TMR15 146 bool "Enable TMR15" 147 default n 148 149 config BSP_USING_TMR16 150 bool "Enable TMR16" 151 default n 152 153 config BSP_USING_TMR17 154 bool "Enable TMR17" 155 default n 156 endif 157 158 menuconfig BSP_USING_PWM 159 bool "Enable PWM" 160 default n 161 select RT_USING_PWM 162 if BSP_USING_PWM 163 menuconfig BSP_USING_PWM3 164 bool "Enable timer3 output PWM" 165 default n 166 if BSP_USING_PWM3 167 config BSP_USING_PWM3_CH1 168 bool "Enable PWM3 channel1" 169 default n 170 171 config BSP_USING_PWM3_CH2 172 bool "Enable PWM3 channel2" 173 default n 174 175 config BSP_USING_PWM3_CH3 176 bool "Enable PWM3 channel3" 177 default n 178 179 config BSP_USING_PWM3_CH4 180 bool "Enable PWM3 channel4" 181 default n 182 endif 183 endif 184 185 config BSP_USING_WDT 186 bool "Enable Watchdog Timer" 187 select RT_USING_WDT 188 default n 189 190endmenu 191 192menu "Board extended module Drivers" 193 194endmenu 195 196endmenu 197