2024-01-29 09:13:21 +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
|
|
|
|
|
|
|
|
config RT_USING_UART1
|
|
|
|
bool "Enable UART 1"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config UART_IRQ_BASE
|
|
|
|
int
|
|
|
|
default 30
|
|
|
|
endif
|
|
|
|
|
2024-02-16 07:05:39 +08:00
|
|
|
menuconfig BSP_USING_I2C
|
|
|
|
bool "Using HW 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
|
|
|
|
|
|
|
|
config BSP_USING_I2C1
|
|
|
|
bool "Enable I2C1"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config I2C_IRQ_BASE
|
|
|
|
int
|
|
|
|
default 32
|
|
|
|
endif
|
2024-01-29 09:13:21 +08:00
|
|
|
endmenu
|