Skip to content

Commit

Permalink
Merge branch 'feature/support_ble_for_esp32c6' into 'master'
Browse files Browse the repository at this point in the history
support ble for esp32c6

See merge request espressif/esp-idf!21866
  • Loading branch information
Isl2017 committed Jan 4, 2023
2 parents 8020407 + e41b35b commit bdf3001
Show file tree
Hide file tree
Showing 24 changed files with 2,255 additions and 71 deletions.
4 changes: 4 additions & 0 deletions .gitmodules
Expand Up @@ -79,6 +79,10 @@
path = components/bt/controller/lib_esp32c2/esp32c2-bt-lib
url = ../../espressif/esp32c2-bt-lib.git

[submodule "components/bt/controller/lib_esp32c6/esp32c6-bt-lib"]
path = components/bt/controller/lib_esp32c6/esp32c6-bt-lib
url = ../../espressif/esp32c6-bt-lib.git

[submodule "components/heap/tlsf"]
path = components/heap/tlsf
url = ../../espressif/tlsf.git
7 changes: 7 additions & 0 deletions components/bt/CMakeLists.txt
Expand Up @@ -24,6 +24,10 @@ if(CONFIG_BT_ENABLED)
elseif(CONFIG_IDF_TARGET_ESP32C2)
list(APPEND srcs "controller/esp32c2/bt.c")
list(APPEND include_dirs include/esp32c2/include)

elseif(CONFIG_IDF_TARGET_ESP32C6)
list(APPEND srcs "controller/esp32c6/bt.c")
list(APPEND include_dirs include/esp32c6/include)
endif()


Expand Down Expand Up @@ -712,6 +716,9 @@ if(CONFIG_BT_ENABLED)
elseif(CONFIG_IDF_TARGET_ESP32C2)
add_prebuilt_library(nimblelib "controller/lib_esp32c2/esp32c2-bt-lib/libble_app.a")
target_link_libraries(${COMPONENT_LIB} PRIVATE nimblelib)
elseif(CONFIG_IDF_TARGET_ESP32C6)
add_prebuilt_library(nimblelib "controller/lib_esp32c6/esp32c6-bt-lib/libble_app.a")
target_link_libraries(${COMPONENT_LIB} PRIVATE nimblelib)
endif()

set_source_files_properties(
Expand Down

0 comments on commit bdf3001

Please sign in to comment.