diff --git a/port/apollo2-em9304/btstack_config.h b/port/apollo2-em9304/btstack_config.h index 574ca1cd1..8cf08695f 100644 --- a/port/apollo2-em9304/btstack_config.h +++ b/port/apollo2-em9304/btstack_config.h @@ -1,5 +1,7 @@ // -// btstack_config.h for EM9304 DVK +// btstack_config.h for Apollo 2 + EM9304 port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ // #ifndef BTSTACK_CONFIG_H diff --git a/port/arduino/btstack_config.h b/port/arduino/btstack_config.h index b4d0c3c54..cebfddbfa 100644 --- a/port/arduino/btstack_config.h +++ b/port/arduino/btstack_config.h @@ -1,6 +1,8 @@ // // btstack_config.h for Arduino port // +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ +// #ifndef BTSTACK_CONFIG_H #define BTSTACK_CONFIG_H diff --git a/port/esp32/components/btstack/include/btstack_config.h b/port/esp32/components/btstack/include/btstack_config.h index 2f84129d4..97639f203 100644 --- a/port/esp32/components/btstack/include/btstack_config.h +++ b/port/esp32/components/btstack/include/btstack_config.h @@ -1,6 +1,8 @@ // // btstack_config.h for esp32 port // +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ +// #ifndef BTSTACK_CONFIG_H #define BTSTACK_CONFIG_H diff --git a/port/libusb-intel/btstack_config.h b/port/libusb-intel/btstack_config.h index e2006f0e8..af79a2b8b 100644 --- a/port/libusb-intel/btstack_config.h +++ b/port/libusb-intel/btstack_config.h @@ -1,5 +1,7 @@ // -// btstack_config.h for libusb port +// btstack_config.h for libusb-intel port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ // #ifndef BTSTACK_CONFIG_H diff --git a/port/libusb/btstack_config.h b/port/libusb/btstack_config.h index bfc8511c8..be88f7797 100644 --- a/port/libusb/btstack_config.h +++ b/port/libusb/btstack_config.h @@ -1,6 +1,8 @@ // // btstack_config.h for libusb port // +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ +// #ifndef BTSTACK_CONFIG_H #define BTSTACK_CONFIG_H diff --git a/port/msp432p401lp-cc256x/btstack_config.h b/port/msp432p401lp-cc256x/btstack_config.h index 01c54bb8f..c8562cdb8 100644 --- a/port/msp432p401lp-cc256x/btstack_config.h +++ b/port/msp432p401lp-cc256x/btstack_config.h @@ -1,6 +1,8 @@ // // btstack_config.h for MSP432P401R + TI CC256B port // +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ +// #ifndef __BTSTACK_CONFIG #define __BTSTACK_CONFIG diff --git a/port/mtk/btstack_config.h b/port/mtk/btstack_config.h index f810def27..57bfea2db 100644 --- a/port/mtk/btstack_config.h +++ b/port/mtk/btstack_config.h @@ -1,6 +1,8 @@ // // btstack_config.h for Android mtk port // +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ +// #ifndef BTSTACK_CONFIG_H #define BTSTACK_CONFIG_H diff --git a/port/nrf5-cinnamon/port/btstack_config.h b/port/nrf5-cinnamon/port/btstack_config.h index f03867c2e..c9a201d0b 100644 --- a/port/nrf5-cinnamon/port/btstack_config.h +++ b/port/nrf5-cinnamon/port/btstack_config.h @@ -1,5 +1,8 @@ // -// btstack_config.h for nRF5x LL +// btstack_config.h for nrf5-cinnamon port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ +// // #ifndef BTSTACK_CONFIG_H diff --git a/port/nrf5-zephyr/btstack_config.h b/port/nrf5-zephyr/btstack_config.h index 19f3dccd1..4af98cc97 100644 --- a/port/nrf5-zephyr/btstack_config.h +++ b/port/nrf5-zephyr/btstack_config.h @@ -1,6 +1,8 @@ // // btstack_config.h for mRF5-Zephyr port // +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ +// #ifndef BTSTACK_CONFIG_H #define BTSTACK_CONFIG_H diff --git a/port/posix-h4-atwilc3000/btstack_config.h b/port/posix-h4-atwilc3000/btstack_config.h index 296fa2dab..e09b16f8b 100644 --- a/port/posix-h4-atwilc3000/btstack_config.h +++ b/port/posix-h4-atwilc3000/btstack_config.h @@ -1,5 +1,7 @@ // -// btstack_config.h for generic POSIX H4 port +// btstack_config.h for POSIX H4 + ATWILC3000 port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ // #ifndef BTSTACK_CONFIG_H diff --git a/port/posix-h4-da14581/btstack_config.h b/port/posix-h4-da14581/btstack_config.h index 296fa2dab..2d1da2123 100644 --- a/port/posix-h4-da14581/btstack_config.h +++ b/port/posix-h4-da14581/btstack_config.h @@ -1,5 +1,7 @@ // -// btstack_config.h for generic POSIX H4 port +// btstack_config.h for POSIX H4 + DA14581 port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ // #ifndef BTSTACK_CONFIG_H diff --git a/port/posix-h4-da14585/btstack_config.h b/port/posix-h4-da14585/btstack_config.h index 4917bbfad..f4908c16a 100644 --- a/port/posix-h4-da14585/btstack_config.h +++ b/port/posix-h4-da14585/btstack_config.h @@ -1,5 +1,7 @@ // -// btstack_config.h for generic POSIX H4 port +// btstack_config.h for POSIX H4 + DA14585 port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ // #ifndef BTSTACK_CONFIG_H diff --git a/port/posix-h4-zephyr/btstack_config.h b/port/posix-h4-zephyr/btstack_config.h index e19c82ec8..95e8ed212 100644 --- a/port/posix-h4-zephyr/btstack_config.h +++ b/port/posix-h4-zephyr/btstack_config.h @@ -1,5 +1,7 @@ // -// btstack_config.h for generic POSIX H4 port +// btstack_config.h for POSIX H4 + Zephyr HCI Controller port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ // #ifndef BTSTACK_CONFIG_H diff --git a/port/posix-h4/btstack_config.h b/port/posix-h4/btstack_config.h index 417853284..c92eded54 100644 --- a/port/posix-h4/btstack_config.h +++ b/port/posix-h4/btstack_config.h @@ -1,6 +1,8 @@ // // btstack_config.h for generic POSIX H4 port // +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ +// #ifndef BTSTACK_CONFIG_H #define BTSTACK_CONFIG_H diff --git a/port/posix-h5/btstack_config.h b/port/posix-h5/btstack_config.h index 443e23e45..a9f9710ee 100644 --- a/port/posix-h5/btstack_config.h +++ b/port/posix-h5/btstack_config.h @@ -1,5 +1,7 @@ // -// btstack_config.h for generic POSIX H4 port +// btstack_config.h for POSIX H5 port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ // #ifndef BTSTACK_CONFIG_H diff --git a/port/qt-h4/btstack_config.h b/port/qt-h4/btstack_config.h index ae8951cfa..325fa0d19 100644 --- a/port/qt-h4/btstack_config.h +++ b/port/qt-h4/btstack_config.h @@ -1,5 +1,7 @@ // -// btstack_config.h for libusb port +// btstack_config.h for Qt H4 port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ // #ifndef BTSTACK_CONFIG_H diff --git a/port/qt-usb/btstack_config.h b/port/qt-usb/btstack_config.h index ae8951cfa..ecd99cc12 100644 --- a/port/qt-usb/btstack_config.h +++ b/port/qt-usb/btstack_config.h @@ -1,5 +1,7 @@ // -// btstack_config.h for libusb port +// btstack_config.h for Qt USB port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ // #ifndef BTSTACK_CONFIG_H diff --git a/port/raspi/btstack_config.h b/port/raspi/btstack_config.h index a55c62469..e0ccedeb3 100644 --- a/port/raspi/btstack_config.h +++ b/port/raspi/btstack_config.h @@ -1,5 +1,7 @@ // -// btstack_config.h for generic POSIX H4 port +// btstack_config.h for Raspberry Pi port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ // #ifndef BTSTACK_CONFIG_H diff --git a/port/renesas-tb-s1ja-cc256x/template/btstack_example/src/btstack_config.h b/port/renesas-tb-s1ja-cc256x/template/btstack_example/src/btstack_config.h index 551dca0f5..9761e7074 100644 --- a/port/renesas-tb-s1ja-cc256x/template/btstack_example/src/btstack_config.h +++ b/port/renesas-tb-s1ja-cc256x/template/btstack_example/src/btstack_config.h @@ -1,5 +1,7 @@ // -// btstack_config.h for STM32F103RB Nucleo + TI CC256B port +// btstack_config.h for Renesas TB-S1JA + TI CC256x port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ // #ifndef BTSTACK_CONFIG_H diff --git a/port/samv71-xplained-atwilc3000/btstack_config.h b/port/samv71-xplained-atwilc3000/btstack_config.h index ccaa36a7f..ae41c9775 100644 --- a/port/samv71-xplained-atwilc3000/btstack_config.h +++ b/port/samv71-xplained-atwilc3000/btstack_config.h @@ -1,6 +1,8 @@ // // btstack_config.h for SAMV71 + ATWILC3000 // +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ +// #ifndef BTSTACK_CONFIG_H #define BTSTACK_CONFIG_H diff --git a/port/stm32-f4discovery-cc256x/port/btstack_config.h b/port/stm32-f4discovery-cc256x/port/btstack_config.h index a4534b3ab..b630adbec 100644 --- a/port/stm32-f4discovery-cc256x/port/btstack_config.h +++ b/port/stm32-f4discovery-cc256x/port/btstack_config.h @@ -1,5 +1,7 @@ // -// btstack_config.h for STM32F103RB Nucleo + TI CC256B port +// btstack_config.h for STM32 F4 Discovery + TI CC256x port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ // #ifndef BTSTACK_CONFIG_H diff --git a/port/stm32-f4discovery-usb/port/btstack_config.h b/port/stm32-f4discovery-usb/port/btstack_config.h index 5ec761c4b..bc7b1e181 100644 --- a/port/stm32-f4discovery-usb/port/btstack_config.h +++ b/port/stm32-f4discovery-usb/port/btstack_config.h @@ -1,5 +1,7 @@ // -// btstack_config.h for STM32F103RB Nucleo + TI CC256B port +// btstack_config.h for STM32 F4 Discovery + USB Bluetooth Dongle port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ // #ifndef BTSTACK_CONFIG_H diff --git a/port/stm32-l073rz-nucleo-em9304/port/btstack_config.h b/port/stm32-l073rz-nucleo-em9304/port/btstack_config.h index abde2eca9..2dff97603 100644 --- a/port/stm32-l073rz-nucleo-em9304/port/btstack_config.h +++ b/port/stm32-l073rz-nucleo-em9304/port/btstack_config.h @@ -1,5 +1,7 @@ // -// btstack_config.h for EM9304 DVK +// btstack_config.h for STM32 L073RZ Nucleo + EM9304 Development Kit port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ // #ifndef BTSTACK_CONFIG_H diff --git a/port/wiced-h4/btstack_config.h b/port/wiced-h4/btstack_config.h index c6f969863..285163238 100644 --- a/port/wiced-h4/btstack_config.h +++ b/port/wiced-h4/btstack_config.h @@ -1,5 +1,7 @@ // -// btstack_config.h for WICED port +// btstack_config.h for WICED H4 port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ // #ifndef BTSTACK_CONFIG_H diff --git a/port/windows-h4-da14585/btstack_config.h b/port/windows-h4-da14585/btstack_config.h index 00ea11134..48dc53344 100644 --- a/port/windows-h4-da14585/btstack_config.h +++ b/port/windows-h4-da14585/btstack_config.h @@ -1,5 +1,7 @@ // -// btstack_config.h for generic POSIX H4 port +// btstack_config.h for Windows H4 + DA14585 port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ // #ifndef BTSTACK_CONFIG_H diff --git a/port/windows-h4-zephyr/btstack_config.h b/port/windows-h4-zephyr/btstack_config.h index 5848f66b6..750711939 100644 --- a/port/windows-h4-zephyr/btstack_config.h +++ b/port/windows-h4-zephyr/btstack_config.h @@ -1,5 +1,7 @@ // -// btstack_config.h for libusb port +// btstack_config.h for Windows H4 + Zephyr HCI Controller port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ // #ifndef BTSTACK_CONFIG_H diff --git a/port/windows-h4/btstack_config.h b/port/windows-h4/btstack_config.h index 8c4606044..a32ac12f1 100644 --- a/port/windows-h4/btstack_config.h +++ b/port/windows-h4/btstack_config.h @@ -1,5 +1,7 @@ // -// btstack_config.h for libusb port +// btstack_config.h for Windows H4 port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ // #ifndef BTSTACK_CONFIG_H diff --git a/port/windows-winusb-intel/btstack_config.h b/port/windows-winusb-intel/btstack_config.h index 238cbabee..ba5c12b4a 100644 --- a/port/windows-winusb-intel/btstack_config.h +++ b/port/windows-winusb-intel/btstack_config.h @@ -1,56 +1,58 @@ -// -// btstack_config.h for libusb port -// - -#ifndef BTSTACK_CONFIG_H -#define BTSTACK_CONFIG_H - -// Port related features -#define HAVE_ASSERT -#define HAVE_BTSTACK_STDIN -#define HAVE_MALLOC -#define HAVE_POSIX_FILE_IO -#define HAVE_POSIX_TIME - -// BTstack features that can be enabled -#define ENABLE_BLE -#define ENABLE_CLASSIC -#define ENABLE_HFP_WIDE_BAND_SPEECH -#define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE -#define ENABLE_LE_CENTRAL -#define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE -#define ENABLE_LE_DATA_LENGTH_EXTENSION -#define ENABLE_LE_PERIPHERAL -#define ENABLE_LE_SECURE_CONNECTIONS -#define ENABLE_LOG_ERROR -#define ENABLE_LOG_INFO -#define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS -#define ENABLE_PRINTF_HEXDUMP -#define ENABLE_SCO_OVER_HCI -#define ENABLE_SDP_DES_DUMP -#define ENABLE_SOFTWARE_AES128 - -// BTstack configuration. buffers, sizes, ... -#define HCI_ACL_PAYLOAD_SIZE (1691 + 4) -#define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy - -#define NVM_NUM_DEVICE_DB_ENTRIES 16 -#define NVM_NUM_LINK_KEYS 16 - -// Mesh Configuration -#define ENABLE_MESH -#define ENABLE_MESH_ADV_BEARER -#define ENABLE_MESH_GATT_BEARER -#define ENABLE_MESH_PB_ADV -#define ENABLE_MESH_PB_GATT -#define ENABLE_MESH_PROVISIONER -#define ENABLE_MESH_PROXY_SERVER - -#define MAX_NR_MESH_SUBNETS 2 -#define MAX_NR_MESH_TRANSPORT_KEYS 16 -#define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 - -// allow for one NetKey update -#define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1) - -#endif +// +// btstack_config.h for Windows-winusb + Intel USB Controller port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ +// + +#ifndef BTSTACK_CONFIG_H +#define BTSTACK_CONFIG_H + +// Port related features +#define HAVE_ASSERT +#define HAVE_BTSTACK_STDIN +#define HAVE_MALLOC +#define HAVE_POSIX_FILE_IO +#define HAVE_POSIX_TIME + +// BTstack features that can be enabled +#define ENABLE_BLE +#define ENABLE_CLASSIC +#define ENABLE_HFP_WIDE_BAND_SPEECH +#define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE +#define ENABLE_LE_CENTRAL +#define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE +#define ENABLE_LE_DATA_LENGTH_EXTENSION +#define ENABLE_LE_PERIPHERAL +#define ENABLE_LE_SECURE_CONNECTIONS +#define ENABLE_LOG_ERROR +#define ENABLE_LOG_INFO +#define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS +#define ENABLE_PRINTF_HEXDUMP +#define ENABLE_SCO_OVER_HCI +#define ENABLE_SDP_DES_DUMP +#define ENABLE_SOFTWARE_AES128 + +// BTstack configuration. buffers, sizes, ... +#define HCI_ACL_PAYLOAD_SIZE (1691 + 4) +#define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy + +#define NVM_NUM_DEVICE_DB_ENTRIES 16 +#define NVM_NUM_LINK_KEYS 16 + +// Mesh Configuration +#define ENABLE_MESH +#define ENABLE_MESH_ADV_BEARER +#define ENABLE_MESH_GATT_BEARER +#define ENABLE_MESH_PB_ADV +#define ENABLE_MESH_PB_GATT +#define ENABLE_MESH_PROVISIONER +#define ENABLE_MESH_PROXY_SERVER + +#define MAX_NR_MESH_SUBNETS 2 +#define MAX_NR_MESH_TRANSPORT_KEYS 16 +#define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 + +// allow for one NetKey update +#define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1) + +#endif diff --git a/port/windows-winusb/btstack_config.h b/port/windows-winusb/btstack_config.h index 710b49073..004cd7d9d 100644 --- a/port/windows-winusb/btstack_config.h +++ b/port/windows-winusb/btstack_config.h @@ -1,58 +1,60 @@ -// -// btstack_config.h for libusb port -// - -#ifndef BTSTACK_CONFIG_H -#define BTSTACK_CONFIG_H - -// Port related features -#define HAVE_ASSERT -#define HAVE_BTSTACK_STDIN -#define HAVE_MALLOC -#define HAVE_POSIX_FILE_IO -#define HAVE_POSIX_TIME - -// BTstack features that can be enabled -#define ENABLE_BLE -#define ENABLE_CLASSIC -#define ENABLE_CROSS_TRANSPORT_KEY_DERIVATION -#define ENABLE_HFP_WIDE_BAND_SPEECH -#define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE -#define ENABLE_LE_CENTRAL -#define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE -#define ENABLE_LE_DATA_LENGTH_EXTENSION -#define ENABLE_LE_PERIPHERAL -#define ENABLE_LE_PRIVACY_ADDRESS_RESOLUTION -#define ENABLE_LE_SECURE_CONNECTIONS -#define ENABLE_LOG_ERROR -#define ENABLE_LOG_INFO -#define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS -#define ENABLE_PRINTF_HEXDUMP -#define ENABLE_SCO_OVER_HCI -#define ENABLE_SDP_DES_DUMP -#define ENABLE_SOFTWARE_AES128 - -// BTstack configuration. buffers, sizes, ... -#define HCI_ACL_PAYLOAD_SIZE (1691 + 4) -#define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy - -#define NVM_NUM_DEVICE_DB_ENTRIES 16 -#define NVM_NUM_LINK_KEYS 16 - -// Mesh Configuration -#define ENABLE_MESH -#define ENABLE_MESH_ADV_BEARER -#define ENABLE_MESH_GATT_BEARER -#define ENABLE_MESH_PB_ADV -#define ENABLE_MESH_PB_GATT -#define ENABLE_MESH_PROVISIONER -#define ENABLE_MESH_PROXY_SERVER - -#define MAX_NR_MESH_SUBNETS 2 -#define MAX_NR_MESH_TRANSPORT_KEYS 16 -#define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 - -// allow for one NetKey update -#define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1) - -#endif +// +// btstack_config.h for Windows-winusb port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ +// + +#ifndef BTSTACK_CONFIG_H +#define BTSTACK_CONFIG_H + +// Port related features +#define HAVE_ASSERT +#define HAVE_BTSTACK_STDIN +#define HAVE_MALLOC +#define HAVE_POSIX_FILE_IO +#define HAVE_POSIX_TIME + +// BTstack features that can be enabled +#define ENABLE_BLE +#define ENABLE_CLASSIC +#define ENABLE_CROSS_TRANSPORT_KEY_DERIVATION +#define ENABLE_HFP_WIDE_BAND_SPEECH +#define ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE +#define ENABLE_LE_CENTRAL +#define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE +#define ENABLE_LE_DATA_LENGTH_EXTENSION +#define ENABLE_LE_PERIPHERAL +#define ENABLE_LE_PRIVACY_ADDRESS_RESOLUTION +#define ENABLE_LE_SECURE_CONNECTIONS +#define ENABLE_LOG_ERROR +#define ENABLE_LOG_INFO +#define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS +#define ENABLE_PRINTF_HEXDUMP +#define ENABLE_SCO_OVER_HCI +#define ENABLE_SDP_DES_DUMP +#define ENABLE_SOFTWARE_AES128 + +// BTstack configuration. buffers, sizes, ... +#define HCI_ACL_PAYLOAD_SIZE (1691 + 4) +#define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy + +#define NVM_NUM_DEVICE_DB_ENTRIES 16 +#define NVM_NUM_LINK_KEYS 16 + +// Mesh Configuration +#define ENABLE_MESH +#define ENABLE_MESH_ADV_BEARER +#define ENABLE_MESH_GATT_BEARER +#define ENABLE_MESH_PB_ADV +#define ENABLE_MESH_PB_GATT +#define ENABLE_MESH_PROVISIONER +#define ENABLE_MESH_PROXY_SERVER + +#define MAX_NR_MESH_SUBNETS 2 +#define MAX_NR_MESH_TRANSPORT_KEYS 16 +#define MAX_NR_MESH_VIRTUAL_ADDRESSES 16 + +// allow for one NetKey update +#define MAX_NR_MESH_NETWORK_KEYS (MAX_NR_MESH_SUBNETS+1) + +#endif diff --git a/tool/misc/update_btstack_config_docu_link.py b/tool/misc/update_btstack_config_docu_link.py new file mode 100644 index 000000000..7a2b15e49 --- /dev/null +++ b/tool/misc/update_btstack_config_docu_link.py @@ -0,0 +1,53 @@ +#!/usr/bin/env python3 + +import os +import sys +import re + +config_header_template = """// btstack_config.h for PORT_NAME port +// +// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/ +""" + +btstack_root = os.path.abspath(os.path.dirname(sys.argv[0]) + '/../../port/') + +def write_configuration(full_path, configuration): + if configuration: + with open(full_path, "wb") as fout: + bytes = configuration.encode('utf-8') + fout.write(bytes) + +def get_line_ending(full_path): + with open(full_path, "r", newline='') as fin: + line = fin.readline() + if line.endswith('\r\n'): + return '\r\n' + if line.endswith('\r'): + return '\r' + return '\n' + +def read_and_update_configuration(full_path, line_ending, root): + configuration = "" + + port_name = root.split("port/")[1].split("/")[0] + if port_name.startswith("archive"): + return + + with open(full_path, "rt") as fin: + for unstripped_line in fin: + line = unstripped_line.strip() + + parts = re.match('(//\s*btstack_config.h\s)(\w*)', line) + if parts and len(parts.groups()) == 2: + configuration += config_header_template.replace("PORT_NAME", port_name).replace("\r\n", line_ending) + else: + configuration += unstripped_line + return configuration + +for root, dirs, files in os.walk(btstack_root, topdown=True): + for f in files: + if f.endswith("btstack_config.h"): + config_file = root + "/" + f + line_ending = get_line_ending(config_file) + configuration = read_and_update_configuration(config_file, line_ending, root) + write_configuration(config_file, configuration)