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