rt-thread/bsp/ESP32_C3/drivers/Kconfig

71 lines
1.4 KiB
Plaintext
Raw Normal View History

2022-08-23 01:40:27 +08:00
config SOC_ESPRESSIF
2023-01-09 10:14:23 +08:00
bool
2022-07-03 21:40:12 +08:00
config SOC_ESP32_C3
bool
2022-08-23 01:40:27 +08:00
select SOC_ESPRESSIF
2022-07-03 21:40:12 +08:00
select RT_USING_COMPONENTS_INIT
2022-08-23 01:40:27 +08:00
select RT_USING_USER_MAIN
select PKG_USING_ESP_IDF if BSP_USING_LOCAL_ESP_IDF = n
2022-07-03 21:40:12 +08:00
default y
2022-08-23 01:40:27 +08:00
menu "Hardware Drivers Config"
2022-07-03 21:40:12 +08:00
config BSP_USING_LOCAL_ESP_IDF
bool "Use local ESP-IDF installation"
default n
2022-07-03 21:40:12 +08:00
choice
prompt "Select BSP board "
default BSP_BOARD_LUATOS_ESP32C3
config BSP_BOARD_LUATOS_ESP32C3
bool "LUATOS ESP32C3 board"
config BSP_BOARD_HX_EXP32C3
2023-01-09 10:14:23 +08:00
bool "HONGXU ESP32C3 board"
2022-07-03 21:40:12 +08:00
endchoice
menu "Onboard Peripheral Drivers"
config RT_BSP_LED_PIN
int "LED GPIO PIN SET"
default 12 if BSP_BOARD_LUATOS_ESP32C3
default 8 if BSP_BOARD_HX_EXP32C3
depends on BSP_USING_GPIO
config RT_BSP_UART_PORT
int "UART PORT SET"
default 0
depends on BSP_USING_UART
config RT_BSP_UART_TX_PIN
int "UART TX PIN SET"
default 21 if BSP_BOARD_LUATOS_ESP32C3
depends on BSP_USING_UART
config RT_BSP_UART_RX_PIN
int "UART RX PIN SET"
default 20 if BSP_BOARD_LUATOS_ESP32C3
depends on BSP_USING_UART
2022-07-03 21:40:12 +08:00
endmenu
menu "On-chip Peripheral Drivers"
config BSP_USING_GPIO
bool "Enable GPIO"
select RT_USING_PIN
default y
2023-01-09 10:14:23 +08:00
2022-07-03 21:40:12 +08:00
config BSP_USING_UART
2023-01-09 10:14:23 +08:00
bool "Enable UART"
select RT_USING_SERIAL
select RT_USING_SERIAL_V1
default y
2022-07-03 21:40:12 +08:00
endmenu
endmenu