1menu "Hardware Drivers Config" 2 3config SOC_HPM6E00 4 bool 5 select SOC_SERIES_HPM6E00 6 select RT_USING_COMPONENTS_INIT 7 select RT_USING_USER_MAIN 8 default y 9 10config BSP_USING_ENET_PHY_RTL8211 11 bool 12 default n 13 14menu "On-chip Peripheral Drivers" 15 config BSP_USING_GPIO 16 bool "Enable GPIO" 17 select RT_USING_PIN if BSP_USING_GPIO 18 default n 19 20 menuconfig BSP_USING_UART 21 bool "Enable UART" 22 default y 23 select RT_USING_SERIAL 24 if BSP_USING_UART 25 menuconfig BSP_USING_UART0 26 bool "Enable UART0 (Debugger)" 27 default y 28 if BSP_USING_UART0 29 config BSP_UART0_RX_USING_DMA 30 bool "Enable UART0 RX DMA" 31 depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA 32 default n 33 config BSP_UART0_TX_USING_DMA 34 bool "Enable UART0 TX DMA" 35 depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA 36 default n 37 config BSP_UART0_RX_BUFSIZE 38 int "Set UART0 RX buffer size" 39 range 64 65535 40 depends on RT_USING_SERIAL_V2 41 default 128 42 config BSP_UART0_TX_BUFSIZE 43 int "Set UART0 TX buffer size" 44 range 0 65535 45 depends on RT_USING_SERIAL_V2 46 default 0 47 endif 48 menuconfig BSP_USING_UART1 49 bool "Enable UART1" 50 default y 51 if BSP_USING_UART1 52 config BSP_UART1_RX_USING_DMA 53 bool "Enable UART1 RX DMA" 54 depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA 55 default n 56 config BSP_UART1_TX_USING_DMA 57 bool "Enable UART1 TX DMA" 58 depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA 59 default n 60 config BSP_UART1_RX_BUFSIZE 61 int "Set UART1 RX buffer size" 62 range 64 65535 63 depends on RT_USING_SERIAL_V2 64 default 1024 65 config BSP_UART1_TX_BUFSIZE 66 int "Set UART1 TX buffer size" 67 range 0 65535 68 depends on RT_USING_SERIAL_V2 69 default 0 70 endif 71 endif 72 73 74 menuconfig BSP_USING_SPI 75 bool "Enable SPI" 76 default n 77 select RT_USING_SPI if BSP_USING_SPI 78 if BSP_USING_SPI 79 config BSP_USING_SPI7 80 bool "Enable SPI7" 81 default n 82 if BSP_USING_SPI7 83 config BSP_SPI7_USING_DMA 84 bool "Enable SPI7 DMA" 85 default n 86 choice 87 prompt "Select SPI7 CS TYPE" 88 default BSP_SPI7_USING_SOFT_CS 89 config BSP_SPI7_USING_SOFT_CS 90 bool "Enable SPI7 software cs" 91 config BSP_SPI7_USING_HARD_CS 92 bool "Enable SPI7 hardware cs" 93 endchoice 94 endif 95 endif 96 97 menuconfig BSP_USING_RTC 98 bool "Enable RTC" 99 default n 100 101 menuconfig BSP_USING_ETH 102 bool "Enable Ethernet" 103 default n 104 105 select RT_USING_ETH 106 if BSP_USING_ETH 107 choice 108 prompt "ETH" 109 default BSP_USING_ETH0 110 111 config BSP_USING_ETH0 112 bool "Enable ETH0" 113 select BSP_USING_ENET_PHY_RTL8211 114 endchoice 115 endif 116 117 menuconfig BSP_USING_GPTMR 118 bool "Enable GPTMR" 119 default n 120 select RT_USING_HWTIMER if BSP_USING_GPTMR 121 if BSP_USING_GPTMR 122 config BSP_USING_GPTMR0 123 bool "Enable GPTMR0" 124 default n 125 config BSP_USING_GPTMR1 126 bool "Enable GPTMR1" 127 default n 128 config BSP_USING_GPTMR2 129 bool "Enable GPTMR2" 130 default n 131 config BSP_USING_GPTMR3 132 bool "Enable GPTMR3" 133 default n 134 config BSP_USING_GPTMR4 135 bool "Enable GPTMR4" 136 default n 137 config BSP_USING_GPTMR5 138 bool "Enable GPTMR5" 139 default n 140 config BSP_USING_GPTMR6 141 bool "Enable GPTMR6" 142 default n 143 config BSP_USING_GPTMR7 144 bool "Enable GPTMR7" 145 default n 146 endif 147 148 menuconfig BSP_USING_I2C 149 bool "Enable I2C" 150 default n 151 select RT_USING_I2C if BSP_USING_I2C 152 if BSP_USING_I2C 153 config BSP_USING_I2C0 154 bool "Enable I2C0" 155 default y 156 config BSP_USING_I2C1 157 bool "Enable I2C1" 158 default n 159 config BSP_USING_I2C3 160 bool "Enable I2C3" 161 default n 162 endif 163 if BSP_USING_I2C0 164 config BSP_I2C0_USING_DMA 165 bool "Enable I2C0 DMA" 166 default n 167 endif 168 if BSP_USING_I2C1 169 config BSP_I2C1_USING_DMA 170 bool "Enable I2C1 DMA" 171 default n 172 endif 173 if BSP_USING_I2C3 174 config BSP_I2C3_USING_DMA 175 bool "Enable I2C3 DMA" 176 default n 177 endif 178 179 180 menuconfig BSP_USING_XPI_FLASH 181 bool "Enable XPI FLASH" 182 default n 183 select RT_USING_FAL if BSP_USING_XPI_FLASH 184 185 menuconfig BSP_USING_DAO 186 bool "Enable Audio DAO play" 187 default n 188 select RT_USING_AUDIO if BSP_USING_DAO 189 190 menuconfig BSP_USING_PDM 191 bool "Enable Audio PDM record" 192 default n 193 select RT_USING_AUDIO if BSP_USING_PDM 194 195 menuconfig BSP_USING_I2S 196 bool "Enable Audio I2S device" 197 default n 198 select RT_USING_AUDIO if BSP_USING_I2S 199 if BSP_USING_I2S 200 config BSP_USING_I2S3 201 bool "Enable I2S3" 202 default y 203 config BSP_USING_AUDIO_CODEC_WM8960 204 bool "Enable audio codec on board" 205 default y 206 endif 207 208 menuconfig BSP_USING_USB 209 bool "Enable USB" 210 default n 211 if BSP_USING_USB 212 config BSP_USING_USB_DEVICE 213 bool "Enable USB Device" 214 default n 215 config BSP_USING_USB_HOST 216 bool "Enable USB Host" 217 select RT_USING_CACHE 218 default n 219 endif 220 221 222 menuconfig BSP_USING_EWDG 223 bool "Enable EWDG" 224 default n 225 select RT_USING_WDT if BSP_USING_EWDG 226 if BSP_USING_EWDG 227 config BSP_USING_EWDG0 228 bool "Enable EWDG0" 229 default n 230 config BSP_USING_EWDG1 231 bool "Enable EWDG1" 232 default n 233 endif 234 235 menuconfig BSP_USING_PWMV2 236 bool "Enable PWM" 237 default n 238 239 menuconfig BSP_USING_MCAN 240 bool "Enable MCAN" 241 default n 242 select RT_USING_CAN if BSP_USING_MCAN 243 if BSP_USING_MCAN 244 config BSP_USING_MCAN0 245 bool "Enable MCAN0" 246 default n 247 config BSP_USING_MCAN1 248 bool "Enable MCAN1" 249 default n 250 config BSP_USING_MCAN2 251 bool "Enable MCAN2" 252 default n 253 config BSP_USING_MCAN3 254 bool "Enable MCAN3" 255 default n 256 config BSP_USING_MCAN4 257 bool "Enable MCAN4" 258 default n 259 config BSP_USING_MCAN5 260 bool "Enable MCAN5" 261 default n 262 config BSP_USING_MCAN6 263 bool "Enable MCAN6" 264 default n 265 config BSP_USING_MCAN7 266 bool "Enable MCAN7" 267 default n 268 endif 269 270 menuconfig BSP_USING_ADC 271 bool "Enable ADC" 272 default n 273 select RT_USING_ADC if BSP_USING_ADC 274 if BSP_USING_ADC 275 menuconfig BSP_USING_ADC12 276 bool "Enable ADC12" 277 default n 278 if BSP_USING_ADC12 279 config BSP_USING_ADC0 280 bool "Enable ADC0" 281 default n 282 config BSP_USING_ADC1 283 bool "Enable ADC1" 284 default n 285 config BSP_USING_ADC2 286 bool "Enable ADC2" 287 default n 288 endif 289 menuconfig BSP_USING_ADC16 290 bool "Enable ADC16" 291 default n 292 if BSP_USING_ADC16 293 config BSP_USING_ADC0 294 bool "Enable ADC0" 295 default n 296 endif 297 endif 298 299endmenu 300 301endmenu 302 303