btstack/port/mtk/btstack_config.h

44 lines
1.0 KiB
C
Raw Normal View History

2016-01-21 20:56:56 +00:00
//
// btstack_config.h for Android mtk port
//
// Documentation: https://bluekitchen-gmbh.com/btstack/#how_to/
//
2020-11-06 11:01:26 +00:00
#ifndef BTSTACK_CONFIG_H
#define BTSTACK_CONFIG_H
2016-01-21 20:56:56 +00:00
// Port related features
#define HAVE_MALLOC
#define HAVE_POSIX_FILE_IO
2016-03-30 08:59:47 +00:00
#define HAVE_POSIX_TIME
#define HAVE_UNIX_SOCKETS
2020-11-06 11:01:26 +00:00
2016-01-21 20:56:56 +00:00
// BTstack features that can be enabled
#define ENABLE_BLE
2016-01-24 17:09:29 +00:00
#define ENABLE_CLASSIC
#define ENABLE_LE_CENTRAL
2020-11-06 11:01:26 +00:00
#define ENABLE_LE_PERIPHERAL
#define ENABLE_LOG_ERROR
2020-11-06 11:01:26 +00:00
#define ENABLE_LOG_INFO
2020-11-06 11:06:11 +00:00
#define ENABLE_PRINTF_HEXDUMP
2016-01-21 14:33:36 +00:00
#define ENABLE_SDP_DES_DUMP
2016-01-21 20:56:56 +00:00
// BTstack configuration. buffers, sizes, ...
#define HCI_ACL_PAYLOAD_SIZE 1021
#define MAX_NR_LE_DEVICE_DB_ENTRIES 1
2016-01-21 20:56:56 +00:00
#define NVM_NUM_DEVICE_DB_ENTRIES 16
2020-11-06 11:01:26 +00:00
#define NVM_NUM_LINK_KEYS 16
2016-01-21 20:56:56 +00:00
// Daemon configuration
#define BTSTACK_LOG_FILE "/data/btstack/hci_dump.pklg"
2016-01-21 20:56:56 +00:00
#define BTSTACK_UNIX "/data/btstack/BTstack"
2020-11-06 11:01:26 +00:00
#define ENABLE_RFCOMM
#define ENABLE_SDP
#define HAVE_TRANSPORT_H4
2016-01-21 20:56:56 +00:00
#define REMOTE_DEVICE_DB remote_device_db_memory
#define UART_DEVICE "/dev/ttyS0"
#define UART_SPEED 115200
#endif