@@ -9,3 +9,53 @@ PKGS_DIR := packages
99source "$(RTT_DIR)/Kconfig"
1010osource "$PKGS_DIR/Kconfig"
1111rsource "drivers/Kconfig"
12+ # In bsp/ESP32_C3/Kconfig
13+
14+ # Look for the section related to board peripherals or drivers
15+
16+ menu "Board Level Drivers"
17+
18+ # 1. Define the option that allows the user to input the pin number
19+ config RT_BSP_LED_PIN
20+ int "Onboard LED Pin (GPIO Number)"
21+ default 21 # Set a common default (e.g., GPIO 21 is often used on ESP32 boards)
22+ range 0 40 # Set a valid range for ESP32 GPIO pins (0-40)
23+ help
24+ This sets the GPIO number for the on-board LED.
25+ Check your ESP32-C3 board schematic for the correct pin.
26+
27+ endmenu # Board Level Drivers
28+
29+ menu "ESP32-C3 On-Chip Drivers"
30+
31+ # BLE Dependency
32+ config BSP_USING_BLE
33+ bool "Enable Bluetooth Low Energy (BLE) Support"
34+ default y
35+ select ESP32C3_BLE_DRV # Link to the underlying chip driver config (name may vary)
36+ help
37+ Enable this to include the necessary BLE drivers and compile
38+ the BLE-related code blocks in main.c (via #ifdef BSP_USING_BLE).
39+
40+ # WiFi Dependency
41+ config RT_USING_WIFI
42+ bool "Enable Wi-Fi Support"
43+ default y
44+ select RT_USING_WIFI_DRIVER_ESP32C3 # Link to the underlying driver config (name may vary)
45+ help
46+ Enable this to include the Wi-Fi framework and driver support
47+ for network functionality.
48+
49+ endmenu # ESP32-C3 On-Chip Drivers
50+
51+ # --------------------------------------------------------------------------
52+ # Optional: Ensure core features are enabled when necessary
53+ # --------------------------------------------------------------------------
54+
55+ # If your custom feature requires msh, you can select it like this:
56+ config BSP_USING_APP_COMMANDS
57+ bool "Enable Custom Application Commands (app_data_cmd)"
58+ default y
59+ select FINSH_USING_MSH # This ensures the FinSH msh mode is enabled if this is selected
60+ help
61+ This enables the app_data_cmd function in main.c, which relies on the FinSH shell.
0 commit comments