xref: /btstack/port/posix-h4-atwilc3000/btstack_config.h (revision d20e3046cbd5da533ad321c5296b06e09b34ca36)
1ccebdf93SMatthias Ringwald //
2ccebdf93SMatthias Ringwald // btstack_config.h for generic POSIX H4 port
3ccebdf93SMatthias Ringwald //
4ccebdf93SMatthias Ringwald 
5ccebdf93SMatthias Ringwald #ifndef __BTSTACK_CONFIG
6ccebdf93SMatthias Ringwald #define __BTSTACK_CONFIG
7ccebdf93SMatthias Ringwald 
8ccebdf93SMatthias Ringwald // Port related features
9*d20e3046SMatthias Ringwald #define HAVE_ASSERT
10ccebdf93SMatthias Ringwald #define HAVE_MALLOC
11ccebdf93SMatthias Ringwald #define HAVE_POSIX_FILE_IO
12ccebdf93SMatthias Ringwald #define HAVE_BTSTACK_STDIN
13ccebdf93SMatthias Ringwald #define HAVE_POSIX_TIME
14ccebdf93SMatthias Ringwald 
15ccebdf93SMatthias Ringwald // BTstack features that can be enabled
16ccebdf93SMatthias Ringwald #define ENABLE_BLE
17ccebdf93SMatthias Ringwald #define ENABLE_LE_CENTRAL
18ccebdf93SMatthias Ringwald #define ENABLE_LE_PERIPHERAL
19ccebdf93SMatthias Ringwald #define ENABLE_LE_SECURE_CONNECTIONS
20fcae305fSMatthias Ringwald #define ENABLE_MICRO_ECC_FOR_LE_SECURE_CONNECTIONS
21ff01079bSMatthias Ringwald #define ENABLE_LE_DATA_CHANNELS
22ccebdf93SMatthias Ringwald #define ENABLE_LE_DATA_LENGTH_EXTENSION
23ccebdf93SMatthias Ringwald #define ENABLE_LOG_ERROR
24ccebdf93SMatthias Ringwald #define ENABLE_LOG_INFO
25ccebdf93SMatthias Ringwald 
26ccebdf93SMatthias Ringwald // BTstack configuration. buffers, sizes, ...
27ccebdf93SMatthias Ringwald #define HCI_INCOMING_PRE_BUFFER_SIZE 14 // sizeof benep heade, avoid memcpy
28ccebdf93SMatthias Ringwald #define HCI_ACL_PAYLOAD_SIZE (1691 + 4)
29ccebdf93SMatthias Ringwald 
3081862996SMatthias Ringwald #define NVM_NUM_DEVICE_DB_ENTRIES      20
31e514a7f5SMatthias Ringwald 
32e514a7f5SMatthias Ringwald // Mesh Configuration
33e514a7f5SMatthias Ringwald #define ENABLE_MESH
34e514a7f5SMatthias Ringwald #define ENABLE_MESH_ADV_BEARER
35e514a7f5SMatthias Ringwald #define ENABLE_MESH_GATT_BEARER
36e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_ADV
37e514a7f5SMatthias Ringwald #define ENABLE_MESH_PB_GATT
38e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROXY_SERVER
39e514a7f5SMatthias Ringwald #define ENABLE_MESH_PROVISIONER
40e514a7f5SMatthias Ringwald 
41e514a7f5SMatthias Ringwald #define MAX_NR_MESH_TRANSPORT_KEYS    16
42e514a7f5SMatthias Ringwald #define MAX_NR_MESH_VIRTUAL_ADDRESSES 16
43e514a7f5SMatthias Ringwald #define MAX_NR_MESH_SUBNETS            2
44e514a7f5SMatthias Ringwald 
45e514a7f5SMatthias Ringwald // allow for one NetKey update
46e514a7f5SMatthias Ringwald #define MAX_NR_MESH_NETWORK_KEYS      (MAX_NR_MESH_SUBNETS+1)
47e514a7f5SMatthias Ringwald 
48ccebdf93SMatthias Ringwald #endif
49ccebdf93SMatthias Ringwald 
50