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