1menu "Hardware Drivers Config" 2 3menuconfig SOC_AB32VG1 4 bool "SOC_AB32VG1" 5 select PKG_USING_BLUETRUM_SDK 6 default y 7 8menuconfig PKG_USING_BLUETRUM_NIMBLE 9 bool "PKG_USING_BLUETRUM_NIMBLE" 10 default n 11 12menu "Onboard Peripheral Drivers" 13 14 menuconfig BSP_USING_AUDIO 15 bool "Enable Audio Device" 16 select RT_USING_AUDIO 17 default n 18 19 if BSP_USING_AUDIO 20 config BSP_USING_AUDIO_PLAY 21 bool "Enable Audio Play" 22 default y 23 endif 24 25 config BSP_USING_SDCARD 26 bool "Enable SDCARD" 27 select BSP_USING_SDIO 28 default n 29 30 if BSP_USING_SDCARD 31 config SDIO_MAX_FREQ 32 int "sdio max freq" 33 range 0 24000000 34 default 24000000 35 endif 36 37 config BSP_USING_NIMBLE 38 bool "use nimble stack(iot)" 39 select PKG_USING_BLUETRUM_NIMBLE 40 default n 41 42endmenu 43 44menu "On-chip Peripheral Drivers" 45 menuconfig BSP_USING_UART 46 bool "Enable UART" 47 if BSP_USING_UART 48 config BSP_USING_UART0 49 bool "Enable UART0" 50 select RT_USING_SERIAL 51 default y 52 if BSP_USING_UART0 53 config BSP_UART0_FIFO_SIZE 54 int "BSP_UART0_FIFO_SIZE" 55 range 5 255 56 default 10 57 endif 58 59 config BSP_USING_UART1 60 bool "Enable UART1" 61 select RT_USING_SERIAL 62 default n 63 if BSP_USING_UART1 64 config BSP_UART1_FIFO_SIZE 65 int "BSP_UART1_FIFO_SIZE" 66 range 5 255 67 default 10 68 endif 69 70 config BSP_USING_UART2 71 bool "Enable UART2" 72 select RT_USING_SERIAL 73 default n 74 if BSP_USING_UART2 75 config BSP_UART2_FIFO_SIZE 76 int "BSP_UART2_FIFO_SIZE" 77 range 5 255 78 default 10 79 endif 80 endif 81 82 config BSP_USING_SDIO 83 bool "Enable SDIO" 84 select RT_USING_SDIO 85 select RT_USING_DFS 86 select RT_USING_DFS_ELMFAT 87 default n 88 89 menuconfig BSP_USING_I2C1 90 bool "Enable I2C1 BUS (software simulation)" 91 default n 92 select RT_USING_I2C 93 select RT_USING_I2C_BITOPS 94 select RT_USING_PIN 95 if BSP_USING_I2C1 96 comment "Notice: PE3 --> 16; PE2 --> 15" 97 config BSP_I2C1_SCL_PIN 98 int "I2C1 scl pin number" 99 range 1 27 100 default 16 101 config BSP_I2C1_SDA_PIN 102 int "I2C1 sda pin number" 103 range 1 27 104 default 15 105 endif 106 107 menuconfig BSP_USING_PWM 108 bool "Enable PWM" 109 default n 110 select RT_USING_PWM 111 if BSP_USING_PWM 112 menuconfig BSP_USING_T3_PWM 113 bool "Enable Timer3 PWM" 114 default n 115 if BSP_USING_T3_PWM 116 config BSP_USING_T3_PWM0 117 bool "Enable Timer3 PWM0 (PB0)(Confict with SD card)" 118 default n 119 endif 120 121 menuconfig BSP_USING_T4_PWM 122 bool "Enable Timer4 PWM" 123 default n 124 if BSP_USING_T4_PWM 125 config BSP_USING_T4_PWM1 126 bool "Enable Timer4 PWM1 (PA6)(Confit with uart0 rx)" 127 default y 128 endif 129 130 menuconfig BSP_USING_T5_PWM 131 bool "Enable Timer5 PWM" 132 default y 133 if BSP_USING_T5_PWM 134 config BSP_USING_T5_PWM0 135 bool "Enable Timer5 PWM2 (PE1)" 136 default y 137 endif 138 139 menuconfig BSP_USING_LPWM0 140 bool "Enable LPWM0" 141 default n 142 if BSP_USING_LPWM0 143 comment "G1, G2 and G3 are mutually exclusive" 144 config BSP_USING_LPWM0_G1 145 bool "Enable LPWM0 G1 (PE4)" 146 default y 147 endif 148 149 menuconfig BSP_USING_LPWM1 150 bool "Enable LPWM1" 151 default n 152 if BSP_USING_LPWM1 153 comment "G1, G2 and G3 are mutually exclusive" 154 config BSP_USING_LPWM1_G3 155 bool "Enable LPWM1 G3 (PA1)" 156 default y 157 endif 158 159 menuconfig BSP_USING_LPWM2 160 bool "Enable LPWM2" 161 default n 162 if BSP_USING_LPWM2 163 comment "G1, G2 and G3 are mutually exclusive" 164 config BSP_USING_LPWM2_G2 165 bool "Enable LPWM2 G2 (PE0)" 166 default y 167 config BSP_USING_LPWM2_G3 168 bool "Enable LPWM2 G3 (PA2)" 169 default n 170 endif 171 endif 172 173 config BSP_USING_WDT 174 bool "Enable Watchdog Timer" 175 select RT_USING_WDT 176 default n 177 178 menuconfig BSP_USING_TIM 179 bool "Enable timer" 180 default n 181 select RT_USING_HWTIMER 182 if BSP_USING_TIM 183 config BSP_USING_TIM1 184 bool "Enable TIM1" 185 default y 186 187 config BSP_USING_TIM2 188 bool "Enable TIM2" 189 default n 190 191 config BSP_USING_TIM3 192 bool "Enable TIM3" 193 default n 194 195 config BSP_USING_TIM4 196 bool "Enable TIM4" 197 default n 198 199 config BSP_USING_TIM5 200 bool "Enable TIM5" 201 default n 202 endif 203 204 menuconfig BSP_USING_ONCHIP_RTC 205 bool "Enable RTC" 206 select RT_USING_RTC 207 default n 208 if BSP_USING_ONCHIP_RTC 209 config RTC_USING_INTERNAL_CLK 210 bool "Using internal clock RTC" 211 default y 212 config RTC_USING_1S_INT 213 bool "Using 1 second interrupt" 214 depends on RT_USING_ALARM 215 default n 216 endif 217 218 menuconfig BSP_USING_ADC 219 bool "Enable ADC" 220 default n 221 select RT_USING_ADC 222 if BSP_USING_ADC 223 config BSP_USING_ADC0 224 bool "Enable ADC0" 225 default y 226 endif 227 228 menuconfig BSP_USING_IRRX 229 bool "Enable IRRX(HW or SW)" 230 default n 231 if BSP_USING_IRRX 232 config BSP_USING_IRRX_HW 233 bool "Enable hardware IRRX" 234 default y 235 config BSP_USING_IRRX_SW 236 bool "Enable software IRRX" 237 default n 238 endif 239 240 config BSP_USING_ON_CHIP_FLASH 241 bool "Enable on-chip FLASH" 242 default n 243endmenu 244 245 246endmenu 247