Skip to content

ESP32-C2, ESP32-C6 and ESP32-H2 targets #389

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,17 @@ jobs:

build-for-esp32:
runs-on: ubuntu-latest

strategy:
matrix:
fqbn:
- esp32:esp32:esp32
- esp32:esp32:esp32s3
- esp32:esp32:esp32c3
# future bluetooth chips
- esp32:esp32:esp32c6
- esp32:esp32:esp32h2
# Not supported out of the box by ESP32 Arduino core
#- esp32:esp32:esp32c2
#- esp32:esp32:esp32c6
#- esp32:esp32:esp32h2

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions src/utility/HCIVirtualTransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ int HCIVirtualTransportClass::begin()
#if CONFIG_IDF_TARGET_ESP32
bt_cfg.mode = ESP_BT_MODE_BLE; //original esp32 chip
#else
#if !(CONFIG_IDF_TARGET_ESP32C2 || CONFIG_IDF_TARGET_ESP32C6 || CONFIG_IDF_TARGET_ESP32H2)
bt_cfg.bluetooth_mode = ESP_BT_MODE_BLE; //different api for newer models
#endif
#endif

esp_bt_controller_mem_release(ESP_BT_MODE_CLASSIC_BT);
Expand Down
Loading