Skip to content
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
45 changes: 43 additions & 2 deletions src/rp2_common/pico_btstack/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ if (EXISTS ${PICO_BTSTACK_PATH}/${BTSTACK_TEST_PATH})
${PICO_BTSTACK_PATH}/src/hci_event.c
${PICO_BTSTACK_PATH}/src/l2cap.c
${PICO_BTSTACK_PATH}/src/l2cap_signaling.c
${PICO_BTSTACK_PATH}/src/mesh/gatt-service/mesh_provisioning_service_server.c
${PICO_BTSTACK_PATH}/src/mesh/gatt-service/mesh_proxy_service_server.c
${PICO_BTSTACK_PATH}/3rd-party/md5/md5.c
${PICO_BTSTACK_PATH}/3rd-party/yxml/yxml.c
${CMAKE_CURRENT_LIST_DIR}/btstack_stdin_pico.c
Expand Down Expand Up @@ -157,6 +155,49 @@ if (EXISTS ${PICO_BTSTACK_PATH}/${BTSTACK_TEST_PATH})
ENABLE_CLASSIC=1
)

pico_add_library(pico_btstack_mesh)
target_sources(pico_btstack_mesh INTERFACE
${PICO_BTSTACK_PATH}/src/mesh/mesh.c
${PICO_BTSTACK_PATH}/src/mesh/adv_bearer.c
${PICO_BTSTACK_PATH}/src/mesh/beacon.c
${PICO_BTSTACK_PATH}/src/mesh/gatt_bearer.c
${PICO_BTSTACK_PATH}/src/mesh/gatt-service/mesh_provisioning_service_server.c
${PICO_BTSTACK_PATH}/src/mesh/gatt-service/mesh_proxy_service_server.c
${PICO_BTSTACK_PATH}/src/mesh/mesh.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_access.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_configuration_client.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_configuration_server.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_crypto.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_foundation.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_generic_default_transition_time_client.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_generic_default_transition_time_server.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_generic_level_client.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_generic_level_server.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_generic_on_off_client.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_generic_on_off_server.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_health_server.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_iv_index_seq_number.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_keys.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_lower_transport.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_network.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_node.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_peer.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_proxy.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_upper_transport.c
${PICO_BTSTACK_PATH}/src/mesh/mesh_virtual_addresses.c
${PICO_BTSTACK_PATH}/src/mesh/pb_adv.c
${PICO_BTSTACK_PATH}/src/mesh/pb_gatt.c
${PICO_BTSTACK_PATH}/src/mesh/provisioning.c
${PICO_BTSTACK_PATH}/src/mesh/provisioning_device.c
${PICO_BTSTACK_PATH}/src/mesh/provisioning_provisioner.c
)
pico_mirrored_target_link_libraries(pico_btstack_mesh INTERFACE
pico_btstack_ble
)
target_compile_definitions(pico_btstack_mesh_headers INTERFACE
ENABLE_MESH=1
)

pico_add_library(pico_btstack_flash_bank)
target_sources(pico_btstack_flash_bank INTERFACE
${CMAKE_CURRENT_LIST_DIR}/btstack_flash_bank.c
Expand Down
1 change: 1 addition & 0 deletions src/rp2_common/pico_btstack/doc.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* * \c \b pico_btstack_sbc_decoder - Adds Bluetooth Sub Band Coding (SBC) decoder support.
* * \c \b pico_btstack_bnep_lwip - Adds Bluetooth Network Encapsulation Protocol (BNEP) support using LwIP.
* * \c \b pico_btstack_bnep_lwip_sys_freertos - Adds Bluetooth Network Encapsulation Protocol (BNEP) support using LwIP with FreeRTOS for NO_SYS=0.
* * \c \b pico_btstack_mesh - Adds Bluetooth mesh support from BTstack.
*
* \note The CMake function pico_btstack_make_gatt_header can be used to run the BTstack compile_gatt tool to make a GATT header file from a BTstack GATT file.
*
Expand Down
Loading