2022-08-23 01:40:27 +08:00
|
|
|
|
|
|
|
config SOC_ESPRESSIF
|
2023-03-29 11:52:54 +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
|
2023-07-25 13:42:31 +08:00
|
|
|
select PKG_USING_ESP_IDF
|
|
|
|
select PKG_USING_FREERTOS_WRAPPER
|
|
|
|
select PKG_FREERTOS_USING_CONFIG_H
|
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
|
|
|
|
|
|
|
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-03-29 11:52:54 +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
|
|
|
|
|
2022-08-06 01:35:38 +08:00
|
|
|
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-03-29 11:52:54 +08:00
|
|
|
|
2022-07-03 21:40:12 +08:00
|
|
|
config BSP_USING_UART
|
2023-03-29 11:52:54 +08:00
|
|
|
bool "Enable UART"
|
2022-08-06 01:35:38 +08:00
|
|
|
select RT_USING_SERIAL
|
|
|
|
select RT_USING_SERIAL_V1
|
|
|
|
default y
|
2023-03-29 11:52:54 +08:00
|
|
|
|
|
|
|
config BSP_USING_I2C0
|
|
|
|
bool "Enable I2C0"
|
|
|
|
select RT_USING_I2C
|
|
|
|
default n
|
2023-10-16 14:57:16 +08:00
|
|
|
|
|
|
|
config BSP_USING_WIFI
|
|
|
|
bool "Enable WIFI"
|
|
|
|
select RT_USING_WIFI
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BSP_USING_BLE
|
|
|
|
bool "Enable BLE"
|
|
|
|
default n
|
|
|
|
|
2023-11-17 16:11:37 +08:00
|
|
|
config BSP_USING_HWTIMER
|
|
|
|
bool "Enable HWTIMER"
|
|
|
|
select RT_USING_HWTIMER
|
|
|
|
default n
|
|
|
|
if BSP_USING_HWTIMER
|
|
|
|
config BSP_USING_TIMER0
|
|
|
|
bool "Enable HWTIMER0"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
2023-11-26 15:56:27 +08:00
|
|
|
menuconfig BSP_USING_ADC
|
|
|
|
bool "Enable ADC"
|
|
|
|
default n
|
|
|
|
select RT_USING_ADC
|
|
|
|
if BSP_USING_ADC
|
|
|
|
config BSP_USING_ADC1
|
|
|
|
bool "Enable ADC1"
|
|
|
|
default n
|
|
|
|
endif
|
|
|
|
|
2023-11-28 15:58:24 +08:00
|
|
|
menuconfig BSP_USING_PWM
|
|
|
|
bool "Enable PWM"
|
|
|
|
default n
|
|
|
|
select RT_USING_PWM
|
|
|
|
if BSP_USING_PWM
|
|
|
|
menuconfig BSP_USING_PWM0
|
|
|
|
bool "Enable PWM0"
|
|
|
|
default n
|
|
|
|
if BSP_USING_PWM0
|
|
|
|
config BSP_LEDC_CH0_GPIO
|
|
|
|
int "LEDC CH0 GPIO PIN SET"
|
|
|
|
default 12
|
|
|
|
config BSP_LEDC_CH1_GPIO
|
|
|
|
int "LEDC CH1 GPIO PIN SET"
|
|
|
|
default 6
|
|
|
|
config BSP_LEDC_CH2_GPIO
|
|
|
|
int "LEDC CH2 GPIO PIN SET"
|
|
|
|
default 2
|
|
|
|
config BSP_LEDC_CH3_GPIO
|
|
|
|
int "LEDC CH3 GPIO PIN SET"
|
|
|
|
default 10
|
|
|
|
config BSP_LEDC_CH4_GPIO
|
|
|
|
int "LEDC CH4 GPIO PIN SET"
|
|
|
|
default 8
|
|
|
|
config BSP_LEDC_CH5_GPIO
|
|
|
|
int "LEDC CH5 GPIO PIN SET"
|
|
|
|
default 18
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2022-07-03 21:40:12 +08:00
|
|
|
endmenu
|
|
|
|
|
2023-10-16 14:57:16 +08:00
|
|
|
config BSP_ENABLE_GDBSTUB
|
|
|
|
bool "Enable ESP_GDBSTUB compontent"
|
|
|
|
default n
|
|
|
|
|
2022-07-03 21:40:12 +08:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
|