rt-thread-official/bsp/synwit/swm341/drivers/Kconfig

410 lines
13 KiB
Plaintext

menu "Hardware Drivers Config"
config SOC_SWM341
bool
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "On-chip Peripheral Drivers"
menuconfig BSP_USING_UART
bool "Enable UART"
default y
select RT_USING_SERIAL
if BSP_USING_UART
config BSP_USING_UART0
bool "Enable UART0 (M0/RX,M1/TX)"
default y
config BSP_USING_UART1
bool "Enable UART1 (D4/RX,D3/TX)"
default n
config BSP_USING_UART2
bool "Enable UART2 (C1/RX,C0/TX)"
default n
config BSP_USING_UART3
bool "Enable UART3 (C2/RX,C3/TX)"
default n
endif
config BSP_USING_GPIO
bool "Enable GPIO"
select RT_USING_PIN
default y
menuconfig BSP_USING_ADC
bool "Enable ADC"
default n
select RT_USING_ADC
if BSP_USING_ADC
config BSP_USING_ADC0
bool "Enable ADC0"
default n
if BSP_USING_ADC0
config BSP_USING_ADC0_CHN0
bool "Enable ADC0_CHN0(C6)"
default n
config BSP_USING_ADC0_CHN1
bool "Enable ADC0_CHN1(C5)"
default n
config BSP_USING_ADC0_CHN2
bool "Enable ADC0_CHN2(C4)"
default n
config BSP_USING_ADC0_CHN3
bool "Enable ADC0_CHN3(C3)"
default n
config BSP_USING_ADC0_CHN4
bool "Enable ADC0_CHN4(C2)"
default n
config BSP_USING_ADC0_CHN5
bool "Enable ADC0_CHN5(C1)"
default n
config BSP_USING_ADC0_CHN6
bool "Enable ADC0_CHN6(C0)"
default n
config BSP_USING_ADC0_CHN7
bool "Enable ADC0_CHN7(A15)"
default n
config BSP_USING_ADC0_CHN8
bool "Enable ADC0_CHN8(A14)"
default n
config BSP_USING_ADC0_CHN9
bool "Enable ADC0_CHN9(A13)"
default n
config BSP_USING_ADC0_CHN10
bool "Enable ADC0_CHN10(A12)"
default n
config BSP_USING_ADC0_CHN11
bool "Enable ADC0_CHN11(A10)"
default n
endif
config BSP_USING_ADC1
bool "Enable ADC1"
default n
if BSP_USING_ADC1
config BSP_USING_ADC1_CHN0
bool "Enable ADC1_CHN0(D1)"
default n
config BSP_USING_ADC1_CHN1
bool "Enable ADC1_CHN1(D0)"
default n
config BSP_USING_ADC1_CHN2
bool "Enable ADC1_CHN2(C13)"
default n
config BSP_USING_ADC1_CHN3
bool "Enable ADC1_CHN3(C12)"
default n
config BSP_USING_ADC1_CHN4
bool "Enable ADC1_CHN4(C11)"
default n
config BSP_USING_ADC1_CHN5
bool "Enable ADC1_CHN5(C10)"
default n
config BSP_USING_ADC1_CHN6
bool "Enable ADC1_CHN6(C9)"
default n
endif
endif
config BSP_USING_DAC
bool "Enable DAC"
select RT_USING_DAC
default n
menuconfig BSP_USING_CAN
bool "Enable CAN"
default n
select RT_USING_CAN
if BSP_USING_CAN
config BSP_USING_CAN0
bool "Enable CAN0(TX/B4,RX/B5)"
default n
config BSP_USING_CAN1
bool "Enable CAN1(TX/B2,RX/B3)"
default n
endif
menuconfig BSP_USING_TIM
bool "Enable HWTIMER"
default n
select RT_USING_HWTIMER
if BSP_USING_TIM
config BSP_USING_TIM0
bool "Enable TIM0"
default n
config BSP_USING_TIM1
bool "Enable TIM1"
default n
config BSP_USING_TIM2
bool "Enable TIM2"
default n
config BSP_USING_TIM3
bool "Enable TIM3"
default n
config BSP_USING_TIM4
bool "Enable TIM4"
default n
config BSP_USING_BTIM0
bool "Enable BTIM0"
default n
config BSP_USING_BTIM1
bool "Enable BTIM1"
default n
config BSP_USING_BTIM2
bool "Enable BTIM2"
default n
config BSP_USING_BTIM3
bool "Enable BTIM3"
default n
config BSP_USING_BTIM4
bool "Enable BTIM4"
default n
config BSP_USING_BTIM5
bool "Enable BTIM5"
default n
config BSP_USING_BTIM6
bool "Enable BTIM6"
default n
config BSP_USING_BTIM7
bool "Enable BTIM7"
default n
config BSP_USING_BTIM8
bool "Enable BTIM8"
default n
config BSP_USING_BTIM9
bool "Enable BTIM9"
default n
config BSP_USING_BTIM10
bool "Enable BTIM10"
default n
config BSP_USING_BTIM11
bool "Enable BTIM11"
default n
endif
menuconfig BSP_USING_I2C
bool "Enable I2C BUS (software simulation)"
default n
select RT_USING_I2C
select RT_USING_I2C_BITOPS
select RT_USING_PIN
if BSP_USING_I2C
config BSP_USING_I2C0
bool "Enable I2C0"
default n
if BSP_USING_I2C0
config BSP_I2C0_SCL_PIN
int "I2C0 scl pin number"
range 0 111
default 1
config BSP_I2C0_SDA_PIN
int "I2C0 sda pin number"
range 0 111
default 0
endif
config BSP_USING_I2C1
bool "Enable I2C1"
default n
if BSP_USING_I2C1
config BSP_I2C1_SCL_PIN
int "I2C1 scl pin number"
range 0 111
default 37
config BSP_I2C1_SDA_PIN
int "I2C1 sda pin number"
range 0 111
default 36
endif
endif
menuconfig BSP_USING_PWM
bool "Enable PWM"
default n
select RT_USING_PWM
if BSP_USING_PWM
comment "Notice: PWMA,PWMAN,PWMB,PWMBN are all channel0,the performance is the same"
config BSP_USING_PWM0
bool "Enable PWM0"
default n
if BSP_USING_PWM0
config BSP_USING_PWM0A
bool "Enable PWM0A (M1)"
default n
config BSP_USING_PWM0AN
bool "Enable PWM0AN (M4)"
default n
config BSP_USING_PWM0B
bool "Enable PWM0B (M2)"
default n
config BSP_USING_PWM0BN
bool "Enable PWM0BN (M5)"
default n
endif
config BSP_USING_PWM1
bool "Enable PWM1"
default n
if BSP_USING_PWM1
config BSP_USING_PWM1A
bool "Enable PWM1A (M3)"
default n
config BSP_USING_PWM1AN
bool "Enable PWM1AN (M6)"
default n
config BSP_USING_PWM1B
bool "Enable PWM1B (D9)"
default n
config BSP_USING_PWM1BN
bool "Enable PWM1BN (D8)"
default n
endif
config BSP_USING_PWM2
bool "Enable PWM2"
default n
if BSP_USING_PWM2
config BSP_USING_PWM2A
bool "Enable PWM2A (M12)"
default n
config BSP_USING_PWM2AN
bool "Enable PWM2AN (M9)"
default n
config BSP_USING_PWM2B
bool "Enable PWM2B (M11)"
default n
config BSP_USING_PWM2BN
bool "Enable PWM2BN (M8)"
default n
endif
config BSP_USING_PWM3
bool "Enable PWM3"
default n
if BSP_USING_PWM3
config BSP_USING_PWM3A
bool "Enable PWM3A (C2)"
default n
config BSP_USING_PWM3AN
bool "Enable PWM3AN (C3)"
default n
config BSP_USING_PWM3B
bool "Enable PWM3B (B1)"
default n
config BSP_USING_PWM3BN
bool "Enable PWM3BN (B0)"
default n
endif
config BSP_USING_PWM4
bool "Enable PWM4"
default n
if BSP_USING_PWM4
config BSP_USING_PWM4A
bool "Enable PWM4A (B15)"
default n
config BSP_USING_PWM4AN
bool "Enable PWM4AN (B14) NOTICE:SWDIO"
default n
config BSP_USING_PWM4B
bool "Enable PWM4B (B13)"
default n
config BSP_USING_PWM4BN
bool "Enable PWM4BN (B12) NOTICE:SWDCK"
default n
endif
endif
config BSP_USING_RTC
bool "Enable RTC"
select RT_USING_RTC
select RT_USING_LIBC
default n
menuconfig BSP_USING_SPI
bool "Enable SPI BUS"
default n
select RT_USING_SPI
if BSP_USING_SPI
config BSP_USING_SPI0
bool "Enable SPI0 BUS(CS/M3,MISO/M4,MOSI/M5,CLK/M2)"
default n
config BSP_USING_SPI1
bool "Enable SPI1 BUS(CS/B5,MISO/B3,MOSI/B4,CLK/B2)"
default n
endif
config BSP_USING_WDT
bool "Enable Watchdog Timer"
select RT_USING_WDT
default n
config BSP_USING_CRC
bool "Enable CRC"
select RT_USING_HWCRYPTO
select RT_HWCRYPTO_USING_CRC
default n
config BSP_USING_RNG
bool "Enable RNG (Random Number Generator)"
select RT_USING_HWCRYPTO
select RT_HWCRYPTO_USING_RNG
default n
config BSP_USING_SDIO
bool "Enable SDCARD (sdio)"
select RT_USING_SDIO
select RT_USING_DFS
select RT_USING_DFS_ELMFAT
default n
menuconfig BSP_USING_SDRAM
bool "Enable SDRAM"
select RT_USING_MEMHEAP
select RT_USING_MEMHEAP_AS_HEAP
select RT_USING_MEMHEAP_AUTO_BINDING
default n
if BSP_USING_SDRAM
config BSP_SDRAM_SIZE
hex "SDRAM size"
default 0x800000
endif
menuconfig BSP_USING_GT9147
bool "Enable gt9147(use i2c0)"
select RT_USING_TOUCH
select RT_TOUCH_PIN_IRQ
select BSP_USING_I2C
select BSP_USING_I2C0
select PKG_USING_TOUCH_DRIVERS
select PKG_USING_GT9147
select PKG_USING_GT9147_LATEST_VERSION
default n
if BSP_USING_GT9147
config GT9147_RST_PIN
int "GT9147 rst pin number"
range 0 111
default 39
config GT9147_IRQ_PIN
int "GT9147 irq pin number"
range 0 111
default 48
endif
menuconfig BSP_USING_RGB_LCD
bool "Enable RGB LCD"
select BSP_USING_SDRAM
default n
if BSP_USING_RGB_LCD
config BSP_USING_LVGL
bool "Enable LVGL for LCD"
select PKG_USING_LVGL
default n
endif
endmenu
menu "Onboard Peripheral Drivers"
endmenu
menu "Offboard Peripheral Drivers"
endmenu
endmenu