xref: /btstack/port/archive/pic32-harmony/src/btstack_config.h (revision d68300f919c366a1a4223e1dbdfa9a4f061b6b2e)
1 //
2 // btstack_config.h for PIC32 port
3 //
4 
5 #ifndef BTSTACK_CONFIG_H
6 #define BTSTACK_CONFIG_H
7 
8 // Port related features
9 #define HAVE_EMBEDDED_TICK
10 
11 // BTstack features that can be enabled
12 #define ENABLE_BLE
13 #define ENABLE_CLASSIC
14 #define ENABLE_LE_CENTRAL
15 #define ENABLE_L2CAP_LE_CREDIT_BASED_FLOW_CONTROL_MODE
16 #define ENABLE_LE_PERIPHERAL
17 #define ENABLE_LE_SECURE_CONNECTIONS
18 #define ENABLE_LOG_ERROR
19 #define ENABLE_LOG_INFO
20 #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS
21 #define ENABLE_PRINTF_HEXDUMP
22 
23 // BTstack configuration. buffers, sizes, ...
24 #define HCI_ACL_PAYLOAD_SIZE 1021
25 #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof BNEP header, avoid memcpy
26 #define HCI_OUTGOING_PRE_BUFFER_SIZE  4
27 
28 #define MAX_NR_AVDTP_CONNECTIONS 1
29 #define MAX_NR_AVDTP_STREAM_ENDPOINTS 1
30 #define MAX_NR_AVRCP_CONNECTIONS 2
31 #define MAX_NR_BNEP_CHANNELS 0
32 #define MAX_NR_BNEP_SERVICES 0
33 #define MAX_NR_BTSTACK_LINK_KEY_DB_MEMORY_ENTRIES  2
34 #define MAX_NR_GATT_CLIENTS 1
35 #define MAX_NR_HCI_CONNECTIONS 1
36 #define MAX_NR_HFP_CONNECTIONS 1
37 #define MAX_NR_L2CAP_CHANNELS  3
38 #define MAX_NR_L2CAP_SERVICES  3
39 #define MAX_NR_LE_DEVICE_DB_ENTRIES 1
40 #define MAX_NR_RFCOMM_CHANNELS 1
41 #define MAX_NR_RFCOMM_MULTIPLEXERS 1
42 #define MAX_NR_RFCOMM_SERVICES 1
43 #define MAX_NR_SERVICE_RECORD_ITEMS 4
44 #define MAX_NR_SM_LOOKUP_ENTRIES 3
45 #define MAX_NR_WHITELIST_ENTRIES 1
46 
47 // commented to use le_device_db_memory
48 // #define NVM_NUM_DEVICE_DB_ENTRIES      16
49 
50 #define NVM_NUM_LINK_KEYS              16
51 
52 #endif
53