2023-06-30 00:05:55 +08:00
|
|
|
menu "General Drivers Configuration"
|
|
|
|
|
|
|
|
menuconfig BSP_USING_UART
|
|
|
|
bool "Using UART"
|
|
|
|
select RT_USING_SERIAL
|
|
|
|
default y
|
|
|
|
|
|
|
|
if BSP_USING_UART
|
|
|
|
config RT_USING_UART0
|
|
|
|
bool "Enable UART 0"
|
|
|
|
default y
|
|
|
|
|
2024-01-28 16:05:52 +08:00
|
|
|
config UART_IRQ_BASE
|
|
|
|
int
|
2024-02-19 01:42:06 +08:00
|
|
|
default 44
|
2024-01-28 16:05:52 +08:00
|
|
|
|
2023-06-30 00:05:55 +08:00
|
|
|
config RT_USING_UART1
|
|
|
|
bool "Enable UART 1"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_USING_UART2
|
|
|
|
bool "Enable UART 2"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_USING_UART3
|
|
|
|
bool "Enable UART 3"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config RT_USING_UART4
|
|
|
|
bool "Enable UART 4"
|
|
|
|
default n
|
|
|
|
|
|
|
|
endif
|
2024-05-22 08:19:07 +08:00
|
|
|
|
|
|
|
menuconfig BSP_USING_I2C
|
|
|
|
bool "Using I2C"
|
|
|
|
select RT_USING_I2C
|
|
|
|
select RT_USING_I2C_BITOPS
|
|
|
|
select RT_USING_PIN
|
|
|
|
default n
|
|
|
|
|
|
|
|
if BSP_USING_I2C
|
|
|
|
config BSP_USING_I2C0
|
|
|
|
bool "Enable I2C0"
|
|
|
|
default n
|
|
|
|
|
2024-05-28 16:33:30 +08:00
|
|
|
if BSP_USING_I2C0
|
|
|
|
config BSP_I2C0_SCL_PINNAME
|
|
|
|
string "i2c0 scl pin name"
|
|
|
|
default ""
|
|
|
|
config BSP_I2C0_SDA_PINNAME
|
|
|
|
string "i2c0 sda pin name"
|
|
|
|
default ""
|
|
|
|
endif
|
|
|
|
|
2024-05-22 08:19:07 +08:00
|
|
|
config BSP_USING_I2C1
|
|
|
|
bool "Enable I2C1"
|
|
|
|
default n
|
|
|
|
|
2024-05-28 16:33:30 +08:00
|
|
|
if BSP_USING_I2C1
|
|
|
|
config BSP_I2C1_SCL_PINNAME
|
|
|
|
string "i2c1 scl pin name"
|
|
|
|
default ""
|
|
|
|
config BSP_I2C1_SDA_PINNAME
|
|
|
|
string "i2c1 sda pin name"
|
|
|
|
default ""
|
|
|
|
endif
|
|
|
|
|
|
|
|
config BSP_USING_I2C2
|
|
|
|
bool "Enable I2C2"
|
|
|
|
default n
|
|
|
|
|
|
|
|
if BSP_USING_I2C2
|
|
|
|
config BSP_I2C2_SCL_PINNAME
|
|
|
|
string "i2c2 scl pin name"
|
|
|
|
default ""
|
|
|
|
config BSP_I2C2_SDA_PINNAME
|
|
|
|
string "i2c2 sda pin name"
|
|
|
|
default ""
|
|
|
|
endif
|
|
|
|
|
|
|
|
config BSP_USING_I2C3
|
|
|
|
bool "Enable I2C3"
|
|
|
|
default n
|
|
|
|
|
|
|
|
if BSP_USING_I2C3
|
|
|
|
config BSP_I2C3_SCL_PINNAME
|
|
|
|
string "i2c3 scl pin name"
|
|
|
|
default ""
|
|
|
|
config BSP_I2C3_SDA_PINNAME
|
|
|
|
string "i2c3 sda pin name"
|
|
|
|
default ""
|
|
|
|
endif
|
|
|
|
|
|
|
|
config BSP_USING_I2C4
|
|
|
|
bool "Enable I2C4"
|
|
|
|
default n
|
|
|
|
|
|
|
|
if BSP_USING_I2C4
|
|
|
|
config BSP_I2C4_SCL_PINNAME
|
|
|
|
string "i2c4 scl pin name"
|
|
|
|
default ""
|
|
|
|
config BSP_I2C4_SDA_PINNAME
|
|
|
|
string "i2c4 sda pin name"
|
|
|
|
default ""
|
|
|
|
endif
|
|
|
|
|
2024-05-22 08:19:07 +08:00
|
|
|
config I2C_IRQ_BASE
|
|
|
|
int
|
|
|
|
default 49
|
|
|
|
endif
|
|
|
|
|
2024-03-02 16:16:22 +08:00
|
|
|
config BSP_USING_ADC
|
2024-02-28 00:04:31 +08:00
|
|
|
bool "Using ADC"
|
|
|
|
select RT_USING_ADC
|
|
|
|
default n
|
2023-06-30 00:05:55 +08:00
|
|
|
|
2024-03-31 20:28:24 +08:00
|
|
|
config BSP_USING_SPI
|
|
|
|
bool "Using SPI"
|
|
|
|
select RT_USING_SPI
|
|
|
|
default n
|
|
|
|
|
2024-05-22 08:19:07 +08:00
|
|
|
menuconfig BSP_USING_WDT
|
|
|
|
bool "Enable Watchdog Timer"
|
|
|
|
select RT_USING_WDT
|
|
|
|
default n
|
|
|
|
|
|
|
|
if BSP_USING_WDT
|
|
|
|
config BSP_USING_WDT0
|
|
|
|
bool "Enable WDT0"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_WDT1
|
|
|
|
bool "Enable WDT1"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_WDT2
|
|
|
|
bool "Enable WDT2"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
2024-03-02 16:16:22 +08:00
|
|
|
menuconfig BSP_USING_PWM
|
|
|
|
bool "Using PWM"
|
|
|
|
select RT_USING_PWM
|
|
|
|
default n
|
|
|
|
|
|
|
|
if BSP_USING_PWM
|
|
|
|
config BSP_USING_PWM0
|
|
|
|
bool "Enable PWM 0"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_PWM1
|
|
|
|
bool "Enable PWM 1"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_PWM2
|
|
|
|
bool "Enable PWM 2"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_PWM3
|
|
|
|
bool "Enable PWM 3"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
2024-05-22 08:19:07 +08:00
|
|
|
config BSP_USING_RTC
|
|
|
|
bool "Enable RTC"
|
|
|
|
select RT_USING_RTC
|
|
|
|
default n
|
|
|
|
|
2024-04-24 05:40:22 +08:00
|
|
|
config BSP_USING_SDH
|
|
|
|
select RT_USING_SDIO
|
|
|
|
select RT_USING_DFS
|
|
|
|
select RT_USING_DFS_ELMFAT
|
|
|
|
select RT_USING_DFS_ROMFS
|
|
|
|
bool "Enable Secure Digital Host Controller"
|
|
|
|
default n
|
2024-04-30 05:47:50 +08:00
|
|
|
|
|
|
|
config BSP_USING_ETH
|
|
|
|
bool "Enable Ethernet"
|
|
|
|
default n
|
|
|
|
select RT_USING_LWIP
|
|
|
|
select RT_USING_POSIX_FS
|
|
|
|
select RT_USING_POSIX_SOCKET
|
2024-05-22 08:19:07 +08:00
|
|
|
|
2023-06-30 00:05:55 +08:00
|
|
|
endmenu
|