Loading...
Searching...
No Matches
app_conf.h
1#pragma once
2
3#include <ble/core/ble_defs.h>
4
5#define CFG_TX_POWER (0x19) /* +0dBm */
6
7#define CFG_IDENTITY_ADDRESS GAP_PUBLIC_ADDR
8
12#define CFG_ENCRYPTION_KEY_SIZE_MAX (16)
13#define CFG_ENCRYPTION_KEY_SIZE_MIN (8)
14
18#define CFG_IO_CAPABILITY IO_CAP_DISPLAY_YES_NO
19
23#define CFG_SC_SUPPORT SC_PAIRING_OPTIONAL
24
28#define ALL_PHYS_PREFERENCE 0x00
29#define RX_2M_PREFERRED 0x02
30#define TX_2M_PREFERRED 0x02
31#define TX_1M 0x01
32#define TX_2M 0x02
33#define RX_1M 0x01
34#define RX_2M 0x02
35
36/******************************************************************************
37 * BLE Stack
38 ******************************************************************************/
43#define CFG_BLE_NUM_LINK 2
44
49#define CFG_BLE_NUM_GATT_SERVICES 8
50
58#define CFG_BLE_NUM_GATT_ATTRIBUTES 68
59
63#define CFG_BLE_MAX_ATT_MTU (256 + 128 + 16 + 8 + 4 + 2)
64
75#define CFG_BLE_ATT_VALUE_ARRAY_SIZE (1344)
76
80#define CFG_BLE_PREPARE_WRITE_LIST_SIZE BLE_PREP_WRITE_X_ATT(CFG_BLE_MAX_ATT_MTU)
81
85#define CFG_BLE_MBLOCK_COUNT \
86 (BLE_MBLOCKS_CALC(CFG_BLE_PREPARE_WRITE_LIST_SIZE, CFG_BLE_MAX_ATT_MTU, CFG_BLE_NUM_LINK))
87
91#define CFG_BLE_DATA_LENGTH_EXTENSION 1
92
96#define CFG_BLE_SLAVE_SCA 500
97
109#define CFG_BLE_MASTER_SCA 0
110
116#define CFG_BLE_LSE_SOURCE \
117 SHCI_C2_BLE_INIT_CFG_BLE_LS_CLK_LSE | SHCI_C2_BLE_INIT_CFG_BLE_LS_OTHER_DEV | \
118 SHCI_C2_BLE_INIT_CFG_BLE_LS_CALIB
119
123#define CFG_BLE_HSE_STARTUP_TIME 0x148
124
128#define CFG_BLE_MAX_CONN_EVENT_LENGTH (0xFFFFFFFF)
129
135#define CFG_BLE_VITERBI_MODE 1
136
166#define CFG_BLE_OPTIONS \
167 (SHCI_C2_BLE_INIT_OPTIONS_LL_HOST | SHCI_C2_BLE_INIT_OPTIONS_WITH_SVC_CHANGE_DESC | \
168 SHCI_C2_BLE_INIT_OPTIONS_DEVICE_NAME_RO | SHCI_C2_BLE_INIT_OPTIONS_EXT_ADV | \
169 SHCI_C2_BLE_INIT_OPTIONS_CS_ALGO2 | SHCI_C2_BLE_INIT_OPTIONS_POWER_CLASS_2_3)
170
184#define CFG_TLBLE_EVT_QUEUE_LENGTH 5
193#define CFG_TLBLE_MOST_EVENT_PAYLOAD_SIZE \
194 255
196#define TL_BLE_EVENT_FRAME_SIZE (TL_EVT_HDR_SIZE + CFG_TLBLE_MOST_EVENT_PAYLOAD_SIZE)
197
198/* Various defines for compatibility with -Wundef - thanks, ST */
199#define CFG_DEBUG_TRACE_FULL 0
200#define CFG_DEBUG_TRACE_LIGHT 0