Skip to content

Commit

Permalink
esp-hosted: fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Jan 19, 2024
1 parent d521ebd commit a665dee
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
16 changes: 16 additions & 0 deletions libraries/WiFi/extra/0001-Defaults-for-C33-BLE.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ Subject: [PATCH] Defaults for C33 BLE
.../esp/esp_driver/network_adapter/main/slave_bt.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/esp_hosted_fg/esp/esp_driver/network_adapter/main/slave_bt.c b/esp_hosted_fg/esp/esp_driver/network_adapter/main/slave_bt.c
index b2e8a73..3a7eae6 100644
--- a/esp_hosted_fg/esp/esp_driver/network_adapter/main/slave_bt.c
+++ b/esp_hosted_fg/esp/esp_driver/network_adapter/main/slave_bt.c
@@ -321,8 +321,8 @@ static void init_uart_c3_s3(void)
};
ESP_ERROR_CHECK(gdma_new_channel(&rx_channel_config, &s_rx_channel));

- gdma_connect(s_tx_channel, GDMA_MAKE_TRIGGER(GDMA_TRIG_PERIPH_UART, 0));
- gdma_connect(s_rx_channel, GDMA_MAKE_TRIGGER(GDMA_TRIG_PERIPH_UART, 0));
+ gdma_connect(s_tx_channel, GDMA_MAKE_TRIGGER(GDMA_TRIG_PERIPH_UHCI, 0));
+ gdma_connect(s_rx_channel, GDMA_MAKE_TRIGGER(GDMA_TRIG_PERIPH_UHCI, 0));

gdma_strategy_config_t strategy_config = {
.auto_update_desc = false,

diff --git a/esp_hosted_fg/esp/esp_driver/network_adapter/main/slave_bt.h b/esp_hosted_fg/esp/esp_driver/network_adapter/main/slave_bt.h
index 87e29f7..30acaf1 100644
--- a/esp_hosted_fg/esp/esp_driver/network_adapter/main/slave_bt.h
Expand Down
2 changes: 2 additions & 0 deletions libraries/WiFi/extra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
```
git clone https://github.com/espressif/esp-hosted.git --recursive
cd esp-hosted/
#git checkout release/fg-v0.0.5
git checkout fe0b10584417629908cee8141699c2f35ea05a25
patch -p1 < ../0001-Defaults-for-C33-BLE.patch
cd esp_hosted_fg/esp/esp_driver/
./esp-idf/install.sh esp32s3
Expand Down
8 changes: 7 additions & 1 deletion libraries/WiFi/extra/sdkconfig.default.c33
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ 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_CTRL_HCI_MODE_VHCI=n
CONFIG_BT_CTRL_HCI_MODE_UART_H4=y
CONFIG_BT_CTRL_HCI_TL=0
CONFIG_BT_CTRL_HCI_TL_EFF=0
CONFIG_EXAMPLE_HCI_UART_BAUDRATE=921600

CONFIG_ESP32_WIFI_NVS_ENABLED=

CONFIG_COMPILER_DISABLE_GCC12_WARNINGS=y

0 comments on commit a665dee

Please sign in to comment.