streamline btstack_config.h files

This commit is contained in:
Matthias Ringwald 2016-01-21 21:56:56 +01:00
parent 2539bee62f
commit 0d529a9fd2
17 changed files with 228 additions and 205 deletions

View File

@ -11,14 +11,14 @@
#define HAVE_BZERO
#define HAVE_TIME_MS
// BTstack features that can be enabled
#define ENABLE_BLE
#define ENABLE_LOG_INTO_HCI_DUMP
#define ENABLE_LOG_INFO
#define ENABLE_LOG_ERROR
// BTstack configuration. buffers, sizes, ...
#define HCI_ACL_PAYLOAD_SIZE 200
#define MAX_NO_BNEP_SERVICES 0
#define MAX_NO_BNEP_CHANNELS 0
#define MAX_NO_GATT_SUBCLIENTS 2

View File

@ -1,26 +1,27 @@
//
// btstack_config.h for ez430-rf2560 port
//
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define EMBEDDED
#define ENABLE_BLE
// Port related features
#define HAVE_INIT_SCRIPT
#define HAVE_BZERO
#define HAVE_TICK
#define HAVE_EHCILL
// BTstack features that can be enabled
#define ENABLE_BLE
#define ENABLE_LOG_INTO_HCI_DUMP
// #define ENABLE_LOG_ERROR
// #define ENABLE_LOG_INFO
// BTstack configuration. buffers, sizes, ...
#define HCI_ACL_PAYLOAD_SIZE 52
//
#define MAX_SPP_CONNECTIONS 1
#define MAX_NO_HCI_CONNECTIONS MAX_SPP_CONNECTIONS
#define MAX_NO_GATT_CLIENTS 0
#define MAX_NO_GATT_SUBCLIENTS 0
@ -40,32 +41,3 @@
#define MAX_NO_SERVICE_RECORD_ITEMS 1
#endif
//
// btstack_config.h for Arduino port
//
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
// Port related features
#define HAVE_INIT_SCRIPT
#define HAVE_BZERO
#define HAVE_TIME
#define HAVE_MALLOC
// BTstack features that can be enabled
#define ENABLE_BLE
#define ENABLE_LOG_DEBUG
#define ENABLE_LOG_ERROR
#define ENABLE_LOG_INFO
#define ENABLE_LOG_INTO_HCI_DUMP
#define ENABLE_SDP_DES_DUMP
#define ENABLE_SDP_EXTRA_QUERIES
// BTstack configuration. buffers, sizes, ...
#define HCI_ACL_PAYLOAD_SIZE 52
#define HCI_INCOMING_PRE_BUFFER_SIZE 4
#endif

View File

@ -1,30 +1,34 @@
//
// btstack_config.h
// created by configure for BTstack
// Tue Oct 14 21:52:44 CEST 2014
// btstack_config.h for iOS port in Cydia
//
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
// Port related features
#define HAVE_BZERO
#define HAVE_MALLOC
#define HAVE_PLATFORM_IPHONE_OS
#define HAVE_SO_NOSIGPIPE
#define HAVE_TIME
// BTstack features that can be enabled
#define ENABLE_LOG_ERROR
#define ENABLE_LOG_INFO
#define ENABLE_LOG_INTO_HCI_DUMP
#define ENABLE_SDP_DES_DUMP
// BTstack configuration. buffers, sizes, ...
#define HCI_ACL_PAYLOAD_SIZE 1021
// Daemon configuration
#define ENABLE_RFCOMM
#define ENABLE_SDP
#define HAVE_TRANSPORT_H4
#define UART_DEVICE "/dev/tty.bluetooth"
#define UART_SPEED 921600
#define ENABLE_SDP
#define ENABLE_RFCOMM
#define REMOTE_DEVICE_DB remote_device_db_iphone
#define HAVE_SO_NOSIGPIPE
#define HAVE_TIME
#define HAVE_MALLOC
#define HAVE_BZERO
#define ENABLE_LOG_INTO_HCI_DUMP
#define ENABLE_LOG_INFO
#define ENABLE_LOG_ERROR
#define HCI_ACL_PAYLOAD_SIZE 1021
#define ENABLE_SDP_DES_DUMP
#define USE_SPRINGBOARD
#define USE_LAUNCHD
#define HAVE_PLATFORM_IPHONE_OS
#endif

View File

@ -1,26 +1,29 @@
// config.h created by configure for BTstack Tue Jun 4 23:10:20 CEST 2013
//
// btstack_config.h for libusb port
//
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define ENABLE_LOG_ERROR
#define ENABLE_LOG_INFO
#define ENABLE_BLE
// Port related features
#define HAVE_BZERO
#define ENABLE_LOG_INTO_HCI_DUMP
#define HAVE_MALLOC
#define ENABLE_RFCOMM
#define ENABLE_SDP
#define HAVE_SO_NOSIGPIPE
#define HAVE_TIME
#define HAVE_SCO
#define HAVE_SCO
#define HAVE_SCO_OVER_HCI
#define HAVE_SO_NOSIGPIPE
#define HAVE_TIME
// BTstack features that can be enabled
#define ENABLE_BLE
#define ENABLE_LOG_ERROR
#define ENABLE_LOG_INFO
#define ENABLE_LOG_INTO_HCI_DUMP
#define ENABLE_SDP_DES_DUMP
// BTstack configuration. buffers, sizes, ...
#define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
#define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy
#define REMOTE_DEVICE_DB remote_device_db_iphone
#define ENABLE_SDP_DES_DUMP
#define ENABLE_SDP_DES_DUMP
#define HAVE_SCO
#endif

View File

@ -1,43 +1,45 @@
//
// btstack_config.h for msp-exp430f5438-cc2564b port
//
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define EMBEDDED
#define ENABLE_BLE
#define HAVE_INIT_SCRIPT
// Port related features
#define HAVE_BZERO
#define HAVE_EHCILL
#define HAVE_INIT_SCRIPT
#define HAVE_TICK
#define HAVE_EHCILL
#define ENABLE_LOG_INTO_HCI_DUMP
// BTstack features that can be enabled
#define ENABLE_BLE
// #define ENABLE_LOG_INTO_HCI_DUMP
// #define ENABLE_LOG_ERROR
// #define ENABLE_LOG_INFO
// BTstack configuration. buffers, sizes, ...
#define HCI_ACL_PAYLOAD_SIZE 52
//
#define MAX_SPP_CONNECTIONS 1
#define MAX_NO_HCI_CONNECTIONS MAX_SPP_CONNECTIONS
#define MAX_NO_GATT_CLIENTS 0
#define MAX_NO_GATT_SUBCLIENTS 0
#define MAX_NO_L2CAP_SERVICES 2
#define MAX_NO_L2CAP_CHANNELS (1+MAX_SPP_CONNECTIONS)
#define MAX_NO_RFCOMM_MULTIPLEXERS MAX_SPP_CONNECTIONS
#define MAX_NO_RFCOMM_SERVICES 1
#define MAX_NO_RFCOMM_CHANNELS MAX_SPP_CONNECTIONS
#define MAX_NO_BNEP_SERVICES 1
#define MAX_NO_BNEP_CHANNELS MAX_SPP_CONNECTIONS
#define MAX_NO_BNEP_SERVICES 1
#define MAX_NO_DB_MEM_DEVICE_LINK_KEYS 2
#define MAX_NO_DB_MEM_DEVICE_NAMES 0
#define MAX_NO_DB_MEM_SERVICES 1
#define MAX_NO_GATT_CLIENTS 0
#define MAX_NO_GATT_SUBCLIENTS 0
#define MAX_NO_HCI_CONNECTIONS MAX_SPP_CONNECTIONS
#define MAX_NO_HFP_CONNECTIONS 0
#define MAX_NO_WHITELIST_ENTRIES 1
#define MAX_NO_SM_LOOKUP_ENTRIES 3
#define MAX_NO_L2CAP_CHANNELS (1+MAX_SPP_CONNECTIONS)
#define MAX_NO_L2CAP_SERVICES 2
#define MAX_NO_RFCOMM_CHANNELS MAX_SPP_CONNECTIONS
#define MAX_NO_RFCOMM_MULTIPLEXERS MAX_SPP_CONNECTIONS
#define MAX_NO_RFCOMM_SERVICES 1
#define MAX_NO_SERVICE_RECORD_ITEMS 1
#define MAX_NO_SM_LOOKUP_ENTRIES 3
#define MAX_NO_WHITELIST_ENTRIES 1
#define MAX_SPP_CONNECTIONS 1
//
#endif

View File

@ -1,26 +1,27 @@
//
// btstack_config.h for msp-exp430f5438-cc2564b port
//
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define EMBEDDED
#define ENABLE_BLE
// Port related features
#define HAVE_INIT_SCRIPT
#define HAVE_BZERO
#define HAVE_TICK
#define HAVE_EHCILL
// BTstack features that can be enabled
#define ENABLE_BLE
#define ENABLE_LOG_INTO_HCI_DUMP
// #define ENABLE_LOG_ERROR
// #define ENABLE_LOG_INFO
// BTstack configuration. buffers, sizes, ...
#define HCI_ACL_PAYLOAD_SIZE 52
//
#define MAX_SPP_CONNECTIONS 1
#define MAX_NO_HCI_CONNECTIONS MAX_SPP_CONNECTIONS
#define MAX_NO_GATT_CLIENTS 0
#define MAX_NO_GATT_SUBCLIENTS 0

View File

@ -1,26 +1,34 @@
// btstack_config.h created by configure for BTstack Thu Apr 24 14:34:39 CEST 2014
//
// btstack_config.h for Android mtk port
//
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define HAVE_TRANSPORT_H4
#define UART_DEVICE "/dev/ttyS0"
#define UART_SPEED 115200
#define ENABLE_SDP
#define ENABLE_RFCOMM
#define ENABLE_BLE
#define REMOTE_DEVICE_DB remote_device_db_memory
// Port related features
#define HAVE_BZERO
#define HAVE_MALLOC
// #define HAVE_SO_NOSIGPIPE
#define HAVE_TIME
#define HAVE_MALLOC
#define HAVE_BZERO
#define ENABLE_LOG_INTO_HCI_DUMP
#define ENABLE_LOG_INFO
#define HAVE_TRANSPORT_H4
// BTstack features that can be enabled
#define ENABLE_BLE
#define ENABLE_LOG_ERROR
#define HCI_ACL_PAYLOAD_SIZE 1021
#define ENABLE_LOG_INFO
#define ENABLE_LOG_INTO_HCI_DUMP
#define ENABLE_SDP_DES_DUMP
#define BTSTACK_UNIX "/data/btstack/BTstack"
// BTstack configuration. buffers, sizes, ...
#define HCI_ACL_PAYLOAD_SIZE 1021
// Daemon configuration
#define ENABLE_SDP
#define ENABLE_RFCOMM
#define BTSTACK_LOG_FILE "/data/btstack/hci_dump.pklg"
#define BTSTACK_UNIX "/data/btstack/BTstack"
#define REMOTE_DEVICE_DB remote_device_db_memory
#define UART_DEVICE "/dev/ttyS0"
#define UART_SPEED 115200
#endif

View File

@ -1,22 +1,24 @@
//
// btstack_config.h for PIC32 port
//
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define EMBEDDED
#define ENABLE_BLE
#define HAVE_INIT_SCRIPT
// Port related features
#define HAVE_BZERO
#define HAVE_TICK
#define HAVE_EHCILL
// BTstack features that can be enabled
#define ENABLE_BLE
#define ENABLE_LOG_INFO
#define ENABLE_LOG_ERROR
// BTstack configuration. buffers, sizes, ...
#define HCI_ACL_PAYLOAD_SIZE 52
//
#define MAX_SPP_CONNECTIONS 1
#define MAX_NO_GATT_CLIENTS 0
#define MAX_NO_GATT_SUBCLIENTS 0

View File

@ -1,23 +1,26 @@
// config.h created by configure for BTstack Tue Jun 4 23:10:20 CEST 2013
//
// btstack_config.h for POSIX CC2564B port
//
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define HAVE_TRANSPORT_USB
#define ENABLE_BLE
#define ENABLE_SDP
#define ENABLE_RFCOMM
#define REMOTE_DEVICE_DB remote_device_db_iphone
// Port related features
#define HAVE_BZERO
#define HAVE_MALLOC
#define HAVE_SCO
#define HAVE_SO_NOSIGPIPE
#define HAVE_TIME
#define HAVE_MALLOC
#define HAVE_BZERO
#define ENABLE_SDP_DES_DUMP
#define ENABLE_LOG_INFO
// BTstack features that can be enabled
#define ENABLE_BLE
#define ENABLE_LOG_ERROR
#define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
#define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
#define ENABLE_LOG_INFO
#define ENABLE_LOG_INTO_HCI_DUMP
#define ENABLE_SDP_DES_DUMP
// BTstack configuration. buffers, sizes, ...
#define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
#define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
#endif

View File

@ -1,24 +1,28 @@
// config.h created by configure for BTstack Tue Jun 4 23:10:20 CEST 2013
//
// btstack_config.h for POSIX CSR H4 port
//
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define ENABLE_LOG_ERROR
#define ENABLE_LOG_INFO
#define ENABLE_BLE
// Port related features
#define HAVE_BZERO
#define ENABLE_LOG_INTO_HCI_DUMP
#define HAVE_MALLOC
#define ENABLE_RFCOMM
#define ENABLE_SDP
#define HAVE_SCO
// #define HAVE_SCO_OVER_HCI
#define HAVE_SO_NOSIGPIPE
#define HAVE_TIME
#define HAVE_SCO
#define HAVE_SCO_OVER_HCI
#define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
#define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy
#define REMOTE_DEVICE_DB remote_device_db_iphone
#define ENABLE_SDP_DES_DUMP
// BTstack features that can be enabled
#define ENABLE_BLE
#define ENABLE_LOG_ERROR
#define ENABLE_LOG_INFO
#define ENABLE_LOG_INTO_HCI_DUMP
#define ENABLE_SDP_DES_DUMP
// BTstack configuration. buffers, sizes, ...
#define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
#define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
#endif

View File

@ -1,23 +1,28 @@
// config.h created by configure for BTstack Tue Jun 4 23:10:20 CEST 2013
//
// btstack_config.h for generic POSIX H4 port
//
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define HAVE_TRANSPORT_USB
#define ENABLE_BLE
#define ENABLE_SDP
#define ENABLE_RFCOMM
#define REMOTE_DEVICE_DB remote_device_db_iphone
// Port related features
#define HAVE_BZERO
#define HAVE_MALLOC
// #define HAVE_SCO
// #define HAVE_SCO_OVER_HCI
#define HAVE_SO_NOSIGPIPE
#define HAVE_TIME
#define HAVE_MALLOC
#define HAVE_BZERO
#define ENABLE_SDP_DES_DUMP
#define ENABLE_LOG_INFO
// BTstack features that can be enabled
#define ENABLE_BLE
#define ENABLE_LOG_ERROR
#define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
#define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
#define ENABLE_LOG_INFO
#define ENABLE_LOG_INTO_HCI_DUMP
#define ENABLE_SDP_DES_DUMP
// BTstack configuration. buffers, sizes, ...
#define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
#define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
#endif

View File

@ -1,23 +1,30 @@
// config.h created by configure for BTstack Tue Jun 4 23:10:20 CEST 2013
//
// btstack_config.h for POSIX STLC25000d port
//
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define HAVE_TRANSPORT_USB
#define ENABLE_BLE
#define ENABLE_SDP
#define ENABLE_RFCOMM
#define REMOTE_DEVICE_DB remote_device_db_iphone
// Port related features
#define HAVE_BZERO
#define HAVE_MALLOC
#define HAVE_SCO
// #define HAVE_SCO_OVER_HCI
#define HAVE_SO_NOSIGPIPE
#define HAVE_TIME
#define HAVE_MALLOC
#define HAVE_BZERO
#define ENABLE_SDP_DES_DUMP
#define ENABLE_LOG_INFO
// BTstack features that can be enabled
#define ENABLE_BLE
#define ENABLE_LOG_ERROR
#define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
#define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
#define ENABLE_LOG_INFO
#define ENABLE_LOG_INTO_HCI_DUMP
#define ENABLE_RFCOMM
#define ENABLE_SDP
#define ENABLE_SDP_DES_DUMP
// BTstack configuration. buffers, sizes, ...
#define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
#define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
#endif

View File

@ -1,23 +1,28 @@
// config.h created by configure for BTstack Tue Jun 4 23:10:20 CEST 2013
//
// btstack_config.h for Toshiba TC35661 port
//
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
// #define ENABLE_BLE
#define ENABLE_SDP
#define ENABLE_RFCOMM
#define REMOTE_DEVICE_DB remote_device_db_iphone
// Port related features
#define HAVE_BZERO
#define HAVE_MALLOC
// #define HAVE_SCO
// #define HAVE_SCO_OVER_HCI
#define HAVE_SO_NOSIGPIPE
#define HAVE_TIME
#define HAVE_MALLOC
#define HAVE_BZERO
#define ENABLE_SDP_DES_DUMP
#define ENABLE_LOG_INFO
// BTstack features that can be enabled
// #define ENABLE_BLE
#define ENABLE_LOG_ERROR
#define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
#define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
#define ENABLE_LOG_INFO
#define ENABLE_LOG_INTO_HCI_DUMP
#define ENABLE_SDP_DES_DUMP
// BTstack configuration. buffers, sizes, ...
#define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
#define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
#endif

View File

@ -1,26 +1,28 @@
// config.h created by configure for BTstack Tue Jun 4 23:10:20 CEST 2013
//
// btstack_config.h for POSIX TI WL183x port
//
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define HAVE_TRANSPORT_USB
#define ENABLE_BLE
#define ENABLE_SDP
#define ENABLE_RFCOMM
#define REMOTE_DEVICE_DB remote_device_db_iphone
// Port related features
#define HAVE_BZERO
#define HAVE_MALLOC
#define HAVE_SCO
#define HAVE_SCO_OVER_HCI
#define HAVE_SO_NOSIGPIPE
#define HAVE_TIME
#define HAVE_MALLOC
#define HAVE_BZERO
#define ENABLE_SDP_DES_DUMP
#define ENABLE_LOG_INFO
// BTstack features that can be enabled
#define ENABLE_BLE
#define ENABLE_LOG_ERROR
#define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
#define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
#define ENABLE_LOG_INFO
#define ENABLE_LOG_INTO_HCI_DUMP
#define ENABLE_SDP_DES_DUMP
#define HAVE_SCO
#define HAVE_SCO_OVER_HCI
// BTstack configuration. buffers, sizes, ...
#define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
#define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
#endif

View File

@ -74,6 +74,7 @@ clean:
# git clone and compile libopencm3
libopencm3/lib/libopencm3_stm32f1.a:
rm -rf libopencm3
git clone https://github.com/libopencm3/libopencm3.git
make -C libopencm3

View File

@ -1,22 +1,25 @@
//
// btstack_config.h for STM32F103RB Nucleo + TI CC256B port
//
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define EMBEDDED
#define ENABLE_BLE
// Port related features
#define HAVE_INIT_SCRIPT
#define HAVE_BZERO
#define HAVE_TICK
#define HAVE_EHCILL
// BTstack features that can be enabled
// #define ENABLE_LOG_INFO
// #define ENABLE_LOG_ERROR
#define ENABLE_BLE
// BTstack configuration. buffers, sizes, ...
#define HCI_ACL_PAYLOAD_SIZE 52
//
#define MAX_SPP_CONNECTIONS 1
#define MAX_NO_GATT_CLIENTS 0
#define MAX_NO_GATT_SUBCLIENTS 0

View File

@ -1,25 +1,26 @@
//
// btstack_config.h for WICED port
//
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#define EMBEDDED
#define HAVE_WICED
// Port related features
#define HAVE_BZERO
#define HAVE_EHCILL
// #define HAVE_SCO
#define HAVE_TIME_MS
#define WICED_BT_UART_MANUAL_CTS_RTS
// BTstack features that can be enabled
#define ENABLE_BLE
// #define ENABLE_LOG_INFO
// #define ENABLE_LOG_ERROR
#define HAVE_INIT_SCRIPT
#define HAVE_BZERO
#define HAVE_TIME_MS
#define HAVE_EHCILL
#define ENABLE_LOG_INFO
#define ENABLE_LOG_ERROR
// BTstack configuration. buffers, sizes, ...
#define HCI_ACL_PAYLOAD_SIZE 52
//
#define MAX_SPP_CONNECTIONS 1
#define MAX_NO_GATT_CLIENTS 0
#define MAX_NO_GATT_SUBCLIENTS 0