Skip to content

Commit

Permalink
Merge branch 'fix/sdkconfig' into 'feature/esp_as_mcu_host'
Browse files Browse the repository at this point in the history
fix(bluetooth): Enable bluetooth modem power svae by default

See merge request app-frameworks/esp_hosted!504
  • Loading branch information
mantriyogesh committed Sep 16, 2024
2 parents 615d1e9 + be04ba2 commit ddf29e1
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ menu "ESP-Hosted config"
int "GPIO pin for handshake"
default 16 if IDF_TARGET_ESP32P4 && SLAVE_CHIPSET_ESP32C6
default 3 if IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C6
default 17 if IDF_TARGET_ESP32S3
default 17 if IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32S2
default 26
help
GPIO pin to use for handshake with other spi controller
Expand Down
2 changes: 1 addition & 1 deletion slave/main/Kconfig.projbuild
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ menu "Example Configuration"
int "Slave GPIO pin for handshake"
default 22 if ESP_HOST_DEV_BOARD_P4_FUNC_BOARD
default 3 if IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C6
default 17 if IDF_TARGET_ESP32S3
default 17 if IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32S2
default 26
help
Slave GPIO pin to use for handshake with other spi controller
Expand Down
7 changes: 7 additions & 0 deletions slave/partitions.esp32.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,16K,
otadata,data,ota,0xd000,8K,
phy_init,data,phy,0xf000,4K,
ota_0,app,ota_0,0x10000,1792K,
ota_1,app,ota_1,0x1D0000,1792K,
2 changes: 0 additions & 2 deletions slave/sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
CONFIG_BT_ENABLED=y
CONFIG_BT_CONTROLLER_ONLY=y

CONFIG_ESP32_WIFI_NVS_ENABLED=

# OTA
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_PARTITION_TABLE_TWO_OTA=y
Expand Down
11 changes: 7 additions & 4 deletions slave/sdkconfig.defaults.esp32
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ CONFIG_BT_BLUEDROID_ENABLED=
CONFIG_BTDM_CONTROLLER_MODE_BTDM=y
CONFIG_BTDM_CONTROLLER_HCI_MODE_VHCI=y
CONFIG_BTDM_CTRL_AUTO_LATENCY=y

CONFIG_ESP32_WIFI_NVS_ENABLED=
CONFIG_BTDM_CONTROLLER_MODEM_SLEEP=y
CONFIG_BTDM_CTRL_MODEM_SLEEP=y

# BT over UART
#CONFIG_BTDM_CONTROLLER_HCI_MODE_UART_H4=y
Expand All @@ -32,5 +32,8 @@ CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER=y
CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=64

# OTA
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_PARTITION_TABLE_TWO_OTA=y
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.esp32.csv"

# iram text saving
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
7 changes: 1 addition & 6 deletions slave/sdkconfig.defaults.esp32c2
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,14 @@ CONFIG_SDIO_DAT2_DISABLED=
CONFIG_BT_ENABLED=n ## temporary disable
CONFIG_BT_CONTROLLER_ONLY=y
CONFIG_BT_BLUEDROID_ENABLED=
CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y
CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=n
CONFIG_BTDM_CTRL_MODE_BTDM=n
CONFIG_BTDM_CTRL_HCI_MODE_VHCI=y
CONFIG_BT_LE_SLEEP_ENABLE=y

#UART pins, Enable below config, delete sdkconfig and rebuild
#CONFIG_BT_LE_HCI_INTERFACE_USE_UART=y
#CONFIG_BT_LE_HCI_UART_FLOWCTRL=n
#CONFIG_BT_LE_HCI_UART_TX_PIN=5
#CONFIG_BT_LE_HCI_UART_RX_PIN=18

CONFIG_ESP32_WIFI_NVS_ENABLED=

CONFIG_ESPTOOLPY_FLASHSIZE_4MB=n
CONFIG_ESPTOOLPY_FLASHSIZE_2MB=y
CONFIG_PARTITION_TABLE_TWO_OTA=y
Expand Down
7 changes: 1 addition & 6 deletions slave/sdkconfig.defaults.esp32c3
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,4 @@ CONFIG_SDIO_DAT2_DISABLED=
CONFIG_BT_ENABLED=y
CONFIG_BT_CONTROLLER_ONLY=y
CONFIG_BT_BLUEDROID_ENABLED=
CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y
CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=n
CONFIG_BTDM_CTRL_MODE_BTDM=n
CONFIG_BTDM_CTRL_HCI_MODE_VHCI=y

CONFIG_ESP32_WIFI_NVS_ENABLED=
CONFIG_BT_LE_SLEEP_ENABLE=y
3 changes: 1 addition & 2 deletions slave/sdkconfig.defaults.esp32c6
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_160=y
CONFIG_BT_ENABLED=y
CONFIG_BT_CONTROLLER_ONLY=y
CONFIG_BT_BLUEDROID_ENABLED=
CONFIG_BT_LE_SLEEP_ENABLE=y

# SPI/SDIO only
CONFIG_BT_LE_HCI_INTERFACE_USE_RAM=y
Expand All @@ -18,8 +19,6 @@ CONFIG_BT_LE_HCI_INTERFACE_USE_RAM=y
# #CONFIG_BT_LE_HCI_UART_RTS_PIN=9
# #CONFIG_BT_LE_HCI_UART_CTS_PIN=13

CONFIG_ESP_WIFI_NVS_ENABLED=

CONFIG_ESP_CACHE_MALLOC=n

CONFIG_PARTITION_TABLE_CUSTOM=y
Expand Down
7 changes: 1 addition & 6 deletions slave/sdkconfig.defaults.esp32s3
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,4 @@ CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ=240
CONFIG_BT_ENABLED=y
CONFIG_BT_CONTROLLER_ONLY=y
CONFIG_BT_BLUEDROID_ENABLED=
CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y
CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=n
CONFIG_BTDM_CTRL_MODE_BTDM=n
CONFIG_BTDM_CTRL_HCI_MODE_VHCI=y

CONFIG_ESP32_WIFI_NVS_ENABLED=
CONFIG_BT_LE_SLEEP_ENABLE=y

0 comments on commit ddf29e1

Please sign in to comment.