mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-22 13:10:55 +01:00
Add support for esp32c6
This commit is contained in:
parent
1786d0ede3
commit
2ea0f26de0
3 changed files with 7 additions and 2 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -13,7 +13,7 @@ jobs:
|
||||||
# https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-docker-image.html
|
# https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-docker-image.html
|
||||||
# for details.
|
# for details.
|
||||||
idf_ver: ["release-v4.4", "release-v5.1"]
|
idf_ver: ["release-v4.4", "release-v5.1"]
|
||||||
idf_target: ["esp32", "esp32s3", "esp32c3"]
|
idf_target: ["esp32", "esp32s3", "esp32c3", "esp32c6"]
|
||||||
example:
|
example:
|
||||||
- Advanced/NimBLE_Client
|
- Advanced/NimBLE_Client
|
||||||
- Advanced/NimBLE_Server
|
- Advanced/NimBLE_Server
|
||||||
|
@ -32,6 +32,8 @@ jobs:
|
||||||
example: Bluetooth_5/NimBLE_extended_server
|
example: Bluetooth_5/NimBLE_extended_server
|
||||||
- idf_target: "esp32"
|
- idf_target: "esp32"
|
||||||
example: Bluetooth_5/NimBLE_multi_advertiser
|
example: Bluetooth_5/NimBLE_multi_advertiser
|
||||||
|
- idf_ver: release-v4.4
|
||||||
|
idf_target: esp32c6
|
||||||
|
|
||||||
container: espressif/idf:${{ matrix.idf_ver }}
|
container: espressif/idf:${{ matrix.idf_ver }}
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -29,6 +29,7 @@ idf_component_register(
|
||||||
"esp32"
|
"esp32"
|
||||||
"esp32s3"
|
"esp32s3"
|
||||||
"esp32c3"
|
"esp32c3"
|
||||||
|
"esp32c6"
|
||||||
INCLUDE_DIRS
|
INCLUDE_DIRS
|
||||||
"src"
|
"src"
|
||||||
SRCS
|
SRCS
|
||||||
|
|
|
@ -23,7 +23,9 @@
|
||||||
# include "esp_bt.h"
|
# include "esp_bt.h"
|
||||||
# include "nvs_flash.h"
|
# include "nvs_flash.h"
|
||||||
# if defined(CONFIG_NIMBLE_CPP_IDF)
|
# if defined(CONFIG_NIMBLE_CPP_IDF)
|
||||||
# include "esp_nimble_hci.h"
|
# if (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0, 0) || CONFIG_BT_NIMBLE_LEGACY_VHCI_ENABLE)
|
||||||
|
# include "esp_nimble_hci.h"
|
||||||
|
# endif
|
||||||
# include "nimble/nimble_port.h"
|
# include "nimble/nimble_port.h"
|
||||||
# include "nimble/nimble_port_freertos.h"
|
# include "nimble/nimble_port_freertos.h"
|
||||||
# include "host/ble_hs.h"
|
# include "host/ble_hs.h"
|
||||||
|
|
Loading…
Reference in a new issue