NimBLE-Arduino 2.1.3
Loading...
Searching...
No Matches
esp_nimble_cfg.h
1
2#ifndef __ESP_NIMBLE_CFG__
3#define __ESP_NIMBLE_CFG__
4#include "nimconfig.h"
5
13#define MYNEWT_VAL(x) MYNEWT_VAL_ ## x
14#define MYNEWT_VAL_CHOICE(_name, _val) MYNEWT_VAL_ ## _name ## __ ## _val
15
16/*** kernel/os */
17#ifndef MYNEWT_VAL_MSYS_1_BLOCK_COUNT
18#ifdef CONFIG_BT_NIMBLE_MESH
19#define MYNEWT_VAL_MSYS_1_BLOCK_COUNT (CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT + 8)
20#else
21#define MYNEWT_VAL_MSYS_1_BLOCK_COUNT CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT
22#endif
23#endif
24
25#ifndef MYNEWT_VAL_MSYS_1_BLOCK_SIZE
26#define MYNEWT_VAL_MSYS_1_BLOCK_SIZE (292)
27#endif
28
29#ifndef MYNEWT_VAL_MSYS_1_SANITY_MIN_COUNT
30#define MYNEWT_VAL_MSYS_1_SANITY_MIN_COUNT (0)
31#endif
32
33#ifndef MYNEWT_VAL_MSYS_2_BLOCK_COUNT
34#define MYNEWT_VAL_MSYS_2_BLOCK_COUNT (0)
35#endif
36
37#ifndef MYNEWT_VAL_MSYS_2_BLOCK_SIZE
38#define MYNEWT_VAL_MSYS_2_BLOCK_SIZE (0)
39#endif
40
41#ifndef MYNEWT_VAL_OS_CPUTIME_FREQ
42#define MYNEWT_VAL_OS_CPUTIME_FREQ (1000000)
43#endif
44
45#ifndef MYNEWT_VAL_OS_CPUTIME_TIMER_NUM
46#define MYNEWT_VAL_OS_CPUTIME_TIMER_NUM (0)
47#endif
48
49/*** nimble */
50#ifndef MYNEWT_VAL_BLE_EXT_ADV
51#define MYNEWT_VAL_BLE_EXT_ADV (CONFIG_BT_NIMBLE_EXT_ADV)
52#endif
53
54#ifndef MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE
55#ifdef CONFIG_BT_NIMBLE_EXT_ADV
56#define MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE (CONFIG_BT_NIMBLE_MAX_EXT_ADV_DATA_LEN)
57#else
58#define MYNEWT_VAL_BLE_EXT_ADV_MAX_SIZE (0)
59#endif
60#endif
61
62#ifndef MYNEWT_VAL_BLE_MAX_CONNECTIONS
63#define MYNEWT_VAL_BLE_MAX_CONNECTIONS CONFIG_BT_NIMBLE_MAX_CONNECTIONS
64#endif
65
66#ifndef MYNEWT_VAL_BLE_MULTI_ADV_INSTANCES
67#ifdef CONFIG_BT_NIMBLE_EXT_ADV
68#define MYNEWT_VAL_BLE_MULTI_ADV_INSTANCES (CONFIG_BT_NIMBLE_MAX_EXT_ADV_INSTANCES)
69#else
70#define MYNEWT_VAL_BLE_MULTI_ADV_INSTANCES (0)
71#endif
72#endif
73
74#ifndef MYNEWT_VAL_BLE_MAX_PERIODIC_SYNCS
75#ifdef CONFIG_BT_NIMBLE_ENABLE_PERIODIC_ADV
76#define MYNEWT_VAL_BLE_MAX_PERIODIC_SYNCS (CONFIG_BT_NIMBLE_MAX_PERIODIC_SYNCS)
77#else
78#define MYNEWT_VAL_BLE_MAX_PERIODIC_SYNCS (0)
79#endif
80#endif
81
82#ifndef MYNEWT_VAL_BLE_ROLE_BROADCASTER
83#ifdef CONFIG_BT_NIMBLE_ROLE_BROADCASTER
84#define MYNEWT_VAL_BLE_ROLE_BROADCASTER (1)
85#else
86#define MYNEWT_VAL_BLE_ROLE_BROADCASTER (0)
87#endif
88#endif
89
90#ifndef MYNEWT_VAL_BLE_ROLE_CENTRAL
91#ifdef CONFIG_BT_NIMBLE_ROLE_CENTRAL
92#define MYNEWT_VAL_BLE_ROLE_CENTRAL (1)
93#else
94#define MYNEWT_VAL_BLE_ROLE_CENTRAL (0)
95#endif
96#endif
97
98#ifndef MYNEWT_VAL_BLE_ROLE_OBSERVER
99#ifdef CONFIG_BT_NIMBLE_ROLE_OBSERVER
100#define MYNEWT_VAL_BLE_ROLE_OBSERVER (1)
101#else
102#define MYNEWT_VAL_BLE_ROLE_OBSERVER (0)
103#endif
104#endif
105
106#ifndef MYNEWT_VAL_BLE_ROLE_PERIPHERAL
107#ifdef CONFIG_BT_NIMBLE_ROLE_PERIPHERAL
108#define MYNEWT_VAL_BLE_ROLE_PERIPHERAL (1)
109#else
110#define MYNEWT_VAL_BLE_ROLE_PERIPHERAL (0)
111#endif
112#endif
113
114#ifndef MYNEWT_VAL_BLE_WHITELIST
115#define MYNEWT_VAL_BLE_WHITELIST (1)
116#endif
117
118/*** @apache-mynewt-nimble/nimble/controller */
119#ifndef MYNEWT_VAL_BLE_DEVICE
120#define MYNEWT_VAL_BLE_DEVICE (0)
121#endif
122
123/* Overridden by @apache-mynewt-nimble/nimble/controller (defined by @apache-mynewt-nimble/nimble/controller) */
124#ifndef MYNEWT_VAL_BLE_HW_WHITELIST_ENABLE
125#define MYNEWT_VAL_BLE_HW_WHITELIST_ENABLE (0)
126#endif
127
128#ifndef MYNEWT_VAL_BLE_LL_ADD_STRICT_SCHED_PERIODS
129#define MYNEWT_VAL_BLE_LL_ADD_STRICT_SCHED_PERIODS (0)
130#endif
131
132#ifndef MYNEWT_VAL_BLE_LL_CFG_FEAT_CONN_PARAM_REQ
133#define MYNEWT_VAL_BLE_LL_CFG_FEAT_CONN_PARAM_REQ (1)
134#endif
135
136#ifndef MYNEWT_VAL_BLE_LL_CFG_FEAT_DATA_LEN_EXT
137#define MYNEWT_VAL_BLE_LL_CFG_FEAT_DATA_LEN_EXT (1)
138#endif
139
140#ifndef MYNEWT_VAL_BLE_LL_CFG_FEAT_EXT_SCAN_FILT
141#define MYNEWT_VAL_BLE_LL_CFG_FEAT_EXT_SCAN_FILT (0)
142#endif
143
144#ifndef MYNEWT_VAL_BLE_LL_CFG_FEAT_LE_2M_PHY
145#define MYNEWT_VAL_BLE_LL_CFG_FEAT_LE_2M_PHY (0)
146#endif
147
148#ifndef MYNEWT_VAL_BLE_LL_CFG_FEAT_LE_CODED_PHY
149#define MYNEWT_VAL_BLE_LL_CFG_FEAT_LE_CODED_PHY (0)
150#endif
151
152/* Overridden by @apache-mynewt-nimble/nimble/controller (defined by @apache-mynewt-nimble/nimble/controller) */
153#ifndef MYNEWT_VAL_BLE_LL_CFG_FEAT_LE_CSA2
154#define MYNEWT_VAL_BLE_LL_CFG_FEAT_LE_CSA2 (1)
155#endif
156
157#ifndef MYNEWT_VAL_BLE_LL_CFG_FEAT_LE_ENCRYPTION
158#define MYNEWT_VAL_BLE_LL_CFG_FEAT_LE_ENCRYPTION (1)
159#endif
160
161#ifndef MYNEWT_VAL_BLE_LL_CFG_FEAT_LE_PING
162#define MYNEWT_VAL_BLE_LL_CFG_FEAT_LE_PING (MYNEWT_VAL_BLE_LL_CFG_FEAT_LE_ENCRYPTION)
163#endif
164
165#ifndef MYNEWT_VAL_BLE_LL_CFG_FEAT_LL_EXT_ADV
166#define MYNEWT_VAL_BLE_LL_CFG_FEAT_LL_EXT_ADV (MYNEWT_VAL_BLE_EXT_ADV)
167#endif
168
169#ifndef MYNEWT_VAL_BLE_LL_CFG_FEAT_LL_PRIVACY
170#define MYNEWT_VAL_BLE_LL_CFG_FEAT_LL_PRIVACY (1)
171#endif
172
173#ifndef MYNEWT_VAL_BLE_LL_CFG_FEAT_SLAVE_INIT_FEAT_XCHG
174#define MYNEWT_VAL_BLE_LL_CFG_FEAT_SLAVE_INIT_FEAT_XCHG (1)
175#endif
176
177#ifndef MYNEWT_VAL_BLE_LL_CONN_INIT_MAX_TX_BYTES
178#define MYNEWT_VAL_BLE_LL_CONN_INIT_MAX_TX_BYTES (27)
179#endif
180
181#ifndef MYNEWT_VAL_BLE_LL_CONN_INIT_MIN_WIN_OFFSET
182#define MYNEWT_VAL_BLE_LL_CONN_INIT_MIN_WIN_OFFSET (0)
183#endif
184
185#ifndef MYNEWT_VAL_BLE_LL_CONN_INIT_SLOTS
186#define MYNEWT_VAL_BLE_LL_CONN_INIT_SLOTS (4)
187#endif
188
189#ifndef MYNEWT_VAL_BLE_LL_DIRECT_TEST_MODE
190#define MYNEWT_VAL_BLE_LL_DIRECT_TEST_MODE (0)
191#endif
192
193/* Overridden by @apache-mynewt-nimble/nimble/controller (defined by @apache-mynewt-nimble/nimble/controller) */
194#ifndef MYNEWT_VAL_BLE_LL_EXT_ADV_AUX_PTR_CNT
195#define MYNEWT_VAL_BLE_LL_EXT_ADV_AUX_PTR_CNT (5)
196#endif
197
198#ifndef MYNEWT_VAL_BLE_LL_MASTER_SCA
199#define MYNEWT_VAL_BLE_LL_MASTER_SCA (4)
200#endif
201
202#ifndef MYNEWT_VAL_BLE_LL_MAX_PKT_SIZE
203#define MYNEWT_VAL_BLE_LL_MAX_PKT_SIZE (251)
204#endif
205
206#ifndef MYNEWT_VAL_BLE_LL_MFRG_ID
207#define MYNEWT_VAL_BLE_LL_MFRG_ID (0xFFFF)
208#endif
209
210#ifndef MYNEWT_VAL_BLE_LL_NUM_SCAN_DUP_ADVS
211#define MYNEWT_VAL_BLE_LL_NUM_SCAN_DUP_ADVS (8)
212#endif
213
214#ifndef MYNEWT_VAL_BLE_LL_NUM_SCAN_RSP_ADVS
215#define MYNEWT_VAL_BLE_LL_NUM_SCAN_RSP_ADVS (8)
216#endif
217
218#ifndef MYNEWT_VAL_BLE_LL_OUR_SCA
219#define MYNEWT_VAL_BLE_LL_OUR_SCA (60)
220#endif
221
222#ifndef MYNEWT_VAL_BLE_LL_PRIO
223#define MYNEWT_VAL_BLE_LL_PRIO (0)
224#endif
225
226#ifndef MYNEWT_VAL_BLE_LL_RESOLV_LIST_SIZE
227#define MYNEWT_VAL_BLE_LL_RESOLV_LIST_SIZE (4)
228#endif
229
230#ifndef MYNEWT_VAL_BLE_LL_RNG_BUFSIZE
231#define MYNEWT_VAL_BLE_LL_RNG_BUFSIZE (32)
232#endif
233
234#ifndef MYNEWT_VAL_BLE_LL_STRICT_CONN_SCHEDULING
235#define MYNEWT_VAL_BLE_LL_STRICT_CONN_SCHEDULING (0)
236#endif
237
238#ifndef MYNEWT_VAL_BLE_LL_SUPP_MAX_RX_BYTES
239#define MYNEWT_VAL_BLE_LL_SUPP_MAX_RX_BYTES (MYNEWT_VAL_BLE_LL_MAX_PKT_SIZE)
240#endif
241
242#ifndef MYNEWT_VAL_BLE_LL_SUPP_MAX_TX_BYTES
243#define MYNEWT_VAL_BLE_LL_SUPP_MAX_TX_BYTES (MYNEWT_VAL_BLE_LL_MAX_PKT_SIZE)
244#endif
245
246#ifndef MYNEWT_VAL_BLE_LL_SYSVIEW
247#define MYNEWT_VAL_BLE_LL_SYSVIEW (0)
248#endif
249
250#ifndef MYNEWT_VAL_BLE_LL_TX_PWR_DBM
251#define MYNEWT_VAL_BLE_LL_TX_PWR_DBM (0)
252#endif
253
254#ifndef MYNEWT_VAL_BLE_LL_USECS_PER_PERIOD
255#define MYNEWT_VAL_BLE_LL_USECS_PER_PERIOD (3250)
256#endif
257
258#ifndef MYNEWT_VAL_BLE_LL_VND_EVENT_ON_ASSERT
259#define MYNEWT_VAL_BLE_LL_VND_EVENT_ON_ASSERT (0)
260#endif
261
262#ifndef MYNEWT_VAL_BLE_LL_WHITELIST_SIZE
263#define MYNEWT_VAL_BLE_LL_WHITELIST_SIZE (8)
264#endif
265
266#ifndef MYNEWT_VAL_BLE_LP_CLOCK
267#define MYNEWT_VAL_BLE_LP_CLOCK (1)
268#endif
269
270#ifndef MYNEWT_VAL_BLE_NUM_COMP_PKT_RATE
271#define MYNEWT_VAL_BLE_NUM_COMP_PKT_RATE ((2 * OS_TICKS_PER_SEC))
272#endif
273
274#ifndef MYNEWT_VAL_BLE_PUBLIC_DEV_ADDR
275#define MYNEWT_VAL_BLE_PUBLIC_DEV_ADDR ((uint8_t[6]){0x00, 0x00, 0x00, 0x00, 0x00, 0x00})
276#endif
277
278#ifndef MYNEWT_VAL_BLE_XTAL_SETTLE_TIME
279#define MYNEWT_VAL_BLE_XTAL_SETTLE_TIME (0)
280#endif
281
282/*** @apache-mynewt-nimble/nimble/host */
283#ifndef MYNEWT_VAL_BLE_ATT_PREFERRED_MTU
284#define MYNEWT_VAL_BLE_ATT_PREFERRED_MTU CONFIG_BT_NIMBLE_ATT_PREFERRED_MTU
285#endif
286
287#ifndef MYNEWT_VAL_BLE_HS_LOG_LVL
288#define MYNEWT_VAL_BLE_HS_LOG_LVL CONFIG_BT_NIMBLE_LOG_LEVEL
289#endif
290
291#ifndef MYNEWT_VAL_BLE_PERIODIC_ADV
292#ifdef CONFIG_BT_NIMBLE_EXT_ADV
293#define MYNEWT_VAL_BLE_PERIODIC_ADV (CONFIG_BT_NIMBLE_ENABLE_PERIODIC_ADV)
294#else
295#define MYNEWT_VAL_BLE_PERIODIC_ADV (0)
296#endif
297#endif
298
299#ifndef MYNEWT_VAL_BLE_PERIODIC_ADV_SYNC_TRANSFER
300#define MYNEWT_VAL_BLE_PERIODIC_ADV_SYNC_TRANSFER (0)
301#endif
302
303#ifndef MYNEWT_VAL_BLE_VERSION
304#define MYNEWT_VAL_BLE_VERSION (50)
305#endif
306
307#ifndef MYNEWT_VAL_BLE_ATT_SVR_FIND_INFO
308#define MYNEWT_VAL_BLE_ATT_SVR_FIND_INFO (1)
309#endif
310
311#ifndef MYNEWT_VAL_BLE_ATT_SVR_FIND_TYPE
312#define MYNEWT_VAL_BLE_ATT_SVR_FIND_TYPE (1)
313#endif
314
315#ifndef MYNEWT_VAL_BLE_ATT_SVR_INDICATE
316#define MYNEWT_VAL_BLE_ATT_SVR_INDICATE (1)
317#endif
318
319#ifndef MYNEWT_VAL_BLE_ATT_SVR_MAX_PREP_ENTRIES
320#define MYNEWT_VAL_BLE_ATT_SVR_MAX_PREP_ENTRIES (64)
321#endif
322
323#ifndef MYNEWT_VAL_BLE_ATT_SVR_NOTIFY
324#define MYNEWT_VAL_BLE_ATT_SVR_NOTIFY (1)
325#endif
326
327#ifndef MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE
328#define MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE (1)
329#endif
330
331#ifndef MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE_TMO
332#define MYNEWT_VAL_BLE_ATT_SVR_QUEUED_WRITE_TMO (30000)
333#endif
334
335#ifndef MYNEWT_VAL_BLE_ATT_SVR_READ
336#define MYNEWT_VAL_BLE_ATT_SVR_READ (1)
337#endif
338
339#ifndef MYNEWT_VAL_BLE_ATT_SVR_READ_BLOB
340#define MYNEWT_VAL_BLE_ATT_SVR_READ_BLOB (1)
341#endif
342
343#ifndef MYNEWT_VAL_BLE_ATT_SVR_READ_GROUP_TYPE
344#define MYNEWT_VAL_BLE_ATT_SVR_READ_GROUP_TYPE (1)
345#endif
346
347#ifndef MYNEWT_VAL_BLE_ATT_SVR_READ_MULT
348#define MYNEWT_VAL_BLE_ATT_SVR_READ_MULT (1)
349#endif
350
351#ifndef MYNEWT_VAL_BLE_ATT_SVR_READ_TYPE
352#define MYNEWT_VAL_BLE_ATT_SVR_READ_TYPE (1)
353#endif
354
355#ifndef MYNEWT_VAL_BLE_ATT_SVR_SIGNED_WRITE
356#define MYNEWT_VAL_BLE_ATT_SVR_SIGNED_WRITE (1)
357#endif
358
359#ifndef MYNEWT_VAL_BLE_ATT_SVR_WRITE
360#define MYNEWT_VAL_BLE_ATT_SVR_WRITE (1)
361#endif
362
363#ifndef MYNEWT_VAL_BLE_ATT_SVR_WRITE_NO_RSP
364#define MYNEWT_VAL_BLE_ATT_SVR_WRITE_NO_RSP (1)
365#endif
366
367#ifndef MYNEWT_VAL_BLE_GAP_MAX_PENDING_CONN_PARAM_UPDATE
368#define MYNEWT_VAL_BLE_GAP_MAX_PENDING_CONN_PARAM_UPDATE (1)
369#endif
370
371#ifndef MYNEWT_VAL_BLE_GATT_DISC_ALL_CHRS
372#define MYNEWT_VAL_BLE_GATT_DISC_ALL_CHRS (MYNEWT_VAL_BLE_ROLE_CENTRAL)
373#endif
374
375#ifndef MYNEWT_VAL_BLE_GATT_DISC_ALL_DSCS
376#define MYNEWT_VAL_BLE_GATT_DISC_ALL_DSCS (MYNEWT_VAL_BLE_ROLE_CENTRAL)
377#endif
378
379#ifndef MYNEWT_VAL_BLE_GATT_DISC_ALL_SVCS
380#define MYNEWT_VAL_BLE_GATT_DISC_ALL_SVCS (MYNEWT_VAL_BLE_ROLE_CENTRAL)
381#endif
382
383#ifndef MYNEWT_VAL_BLE_GATT_DISC_CHR_UUID
384#define MYNEWT_VAL_BLE_GATT_DISC_CHR_UUID (MYNEWT_VAL_BLE_ROLE_CENTRAL)
385#endif
386
387#ifndef MYNEWT_VAL_BLE_GATT_DISC_SVC_UUID
388#define MYNEWT_VAL_BLE_GATT_DISC_SVC_UUID (MYNEWT_VAL_BLE_ROLE_CENTRAL)
389#endif
390
391#ifndef MYNEWT_VAL_BLE_GATT_FIND_INC_SVCS
392#define MYNEWT_VAL_BLE_GATT_FIND_INC_SVCS (MYNEWT_VAL_BLE_ROLE_CENTRAL)
393#endif
394
395#ifndef MYNEWT_VAL_BLE_GATT_INDICATE
396#define MYNEWT_VAL_BLE_GATT_INDICATE (1)
397#endif
398
399#ifndef MYNEWT_VAL_BLE_GATT_MAX_PROCS
400#define MYNEWT_VAL_BLE_GATT_MAX_PROCS (4)
401#endif
402
403#ifndef MYNEWT_VAL_BLE_GATT_NOTIFY
404#define MYNEWT_VAL_BLE_GATT_NOTIFY (1)
405#endif
406
407#ifndef MYNEWT_VAL_BLE_GATT_READ
408#define MYNEWT_VAL_BLE_GATT_READ (MYNEWT_VAL_BLE_ROLE_CENTRAL)
409#endif
410
411#ifndef MYNEWT_VAL_BLE_GATT_READ_LONG
412#define MYNEWT_VAL_BLE_GATT_READ_LONG (MYNEWT_VAL_BLE_ROLE_CENTRAL)
413#endif
414
415#ifndef MYNEWT_VAL_BLE_GATT_READ_MAX_ATTRS
416#define MYNEWT_VAL_BLE_GATT_READ_MAX_ATTRS (8)
417#endif
418
419#ifndef MYNEWT_VAL_BLE_GATT_READ_MULT
420#define MYNEWT_VAL_BLE_GATT_READ_MULT (MYNEWT_VAL_BLE_ROLE_CENTRAL)
421#endif
422
423#ifndef MYNEWT_VAL_BLE_GATT_READ_MULT_VAR
424#define MYNEWT_VAL_BLE_GATT_READ_MULT_VAR (MYNEWT_VAL_BLE_ROLE_CENTRAL)
425#endif
426
427#ifndef MYNEWT_VAL_BLE_GATT_READ_UUID
428#define MYNEWT_VAL_BLE_GATT_READ_UUID (MYNEWT_VAL_BLE_ROLE_CENTRAL)
429#endif
430
431#ifndef MYNEWT_VAL_BLE_GATT_RESUME_RATE
432#define MYNEWT_VAL_BLE_GATT_RESUME_RATE (1000)
433#endif
434
435#ifndef MYNEWT_VAL_BLE_GATT_SIGNED_WRITE
436#define MYNEWT_VAL_BLE_GATT_SIGNED_WRITE (MYNEWT_VAL_BLE_ROLE_CENTRAL)
437#endif
438
439#ifndef MYNEWT_VAL_BLE_GATT_WRITE
440#define MYNEWT_VAL_BLE_GATT_WRITE (MYNEWT_VAL_BLE_ROLE_CENTRAL)
441#endif
442
443#ifndef MYNEWT_VAL_BLE_GATT_WRITE_LONG
444#define MYNEWT_VAL_BLE_GATT_WRITE_LONG (MYNEWT_VAL_BLE_ROLE_CENTRAL)
445#endif
446
447#ifndef MYNEWT_VAL_BLE_GATT_WRITE_MAX_ATTRS
448#define MYNEWT_VAL_BLE_GATT_WRITE_MAX_ATTRS (4)
449#endif
450
451#ifndef MYNEWT_VAL_BLE_GATT_WRITE_NO_RSP
452#define MYNEWT_VAL_BLE_GATT_WRITE_NO_RSP (MYNEWT_VAL_BLE_ROLE_CENTRAL)
453#endif
454
455#ifndef MYNEWT_VAL_BLE_GATT_WRITE_RELIABLE
456#define MYNEWT_VAL_BLE_GATT_WRITE_RELIABLE (MYNEWT_VAL_BLE_ROLE_CENTRAL)
457#endif
458
459#ifndef MYNEWT_VAL_BLE_GATT_BLOB_TRANSFER
460#define MYNEWT_VAL_BLE_GATT_BLOB_TRANSFER (0)
461#endif
462
463#ifndef MYNEWT_VAL_BLE_HOST
464#define MYNEWT_VAL_BLE_HOST (1)
465#endif
466
467#ifndef MYNEWT_VAL_ESP_BLE_MESH
468#ifdef CONFIG_BLE_MESH_HCI_5_0
469#define MYNEWT_VAL_ESP_BLE_MESH (1)
470#else
471#define MYNEWT_VAL_ESP_BLE_MESH (0)
472#endif
473#endif
474
475#ifndef MYNEWT_VAL_BLE_HS_DEBUG
476#ifdef CONFIG_BT_NIMBLE_DEBUG
477#define MYNEWT_VAL_BLE_HS_DEBUG (1)
478#else
479#define MYNEWT_VAL_BLE_HS_DEBUG (0)
480#endif
481#endif
482
483#ifndef MYNEWT_VAL_BLE_SM_SC_DEBUG_KEYS
484#ifdef CONFIG_BT_NIMBLE_SM_SC_DEBUG_KEYS
485#define MYNEWT_VAL_BLE_SM_SC_DEBUG_KEYS (1)
486#else
487#define MYNEWT_VAL_BLE_SM_SC_DEBUG_KEYS (0)
488#endif
489#endif
490
491#ifndef MYNEWT_VAL_BLE_HS_AUTO_START
492#define MYNEWT_VAL_BLE_HS_AUTO_START (1)
493#endif
494
495#ifndef MYNEWT_VAL_BLE_HS_FLOW_CTRL
496#ifdef CONFIG_BT_NIMBLE_HS_FLOW_CTRL
497#define MYNEWT_VAL_BLE_HS_FLOW_CTRL (1)
498#else
499#define MYNEWT_VAL_BLE_HS_FLOW_CTRL (0)
500#endif
501#endif
502
503#ifndef MYNEWT_VAL_BLE_HS_FLOW_CTRL_ITVL
504#define MYNEWT_VAL_BLE_HS_FLOW_CTRL_ITVL CONFIG_BT_NIMBLE_HS_FLOW_CTRL_ITVL
505#endif
506
507#ifndef MYNEWT_VAL_BLE_HS_FLOW_CTRL_THRESH
508#define MYNEWT_VAL_BLE_HS_FLOW_CTRL_THRESH CONFIG_BT_NIMBLE_HS_FLOW_CTRL_THRESH
509#endif
510
511#ifndef MYNEWT_VAL_BLE_HS_FLOW_CTRL_TX_ON_DISCONNECT
512#define MYNEWT_VAL_BLE_HS_FLOW_CTRL_TX_ON_DISCONNECT CONFIG_BT_NIMBLE_HS_FLOW_CTRL_TX_ON_DISCONNECT
513#endif
514
515#ifndef MYNEWT_VAL_BLE_HS_PHONY_HCI_ACKS
516#define MYNEWT_VAL_BLE_HS_PHONY_HCI_ACKS (0)
517#endif
518
519#ifndef MYNEWT_VAL_BLE_HS_REQUIRE_OS
520#define MYNEWT_VAL_BLE_HS_REQUIRE_OS (1)
521#endif
522
523#ifndef MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN
524#define MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN (1)
525#endif
526
527#ifndef MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN_TIMEOUT
528#define MYNEWT_VAL_BLE_HS_STOP_ON_SHUTDOWN_TIMEOUT CONFIG_BT_NIMBLE_HS_STOP_TIMEOUT_MS
529#endif
530
531#ifndef MYNEWT_VAL_BLE_HS_SYSINIT_STAGE
532#define MYNEWT_VAL_BLE_HS_SYSINIT_STAGE (200)
533#endif
534
535#ifndef MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM
536#define MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM CONFIG_BT_NIMBLE_L2CAP_COC_MAX_NUM
537#endif
538
539#ifndef MYNEWT_VAL_BLE_L2CAP_COC_MPS
540#define MYNEWT_VAL_BLE_L2CAP_COC_MPS (MYNEWT_VAL_MSYS_1_BLOCK_SIZE - 8)
541#endif
542
543#ifndef MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS
544#define MYNEWT_VAL_BLE_L2CAP_JOIN_RX_FRAGS (1)
545#endif
546
547#ifndef MYNEWT_VAL_BLE_L2CAP_MAX_CHANS
548#define MYNEWT_VAL_BLE_L2CAP_MAX_CHANS (3*MYNEWT_VAL_BLE_MAX_CONNECTIONS)
549#endif
550
551#ifndef MYNEWT_VAL_BLE_L2CAP_RX_FRAG_TIMEOUT
552#define MYNEWT_VAL_BLE_L2CAP_RX_FRAG_TIMEOUT (30000)
553#endif
554
555#ifndef MYNEWT_VAL_BLE_L2CAP_SIG_MAX_PROCS
556#define MYNEWT_VAL_BLE_L2CAP_SIG_MAX_PROCS (1)
557#endif
558
559#ifndef MYNEWT_VAL_BLE_MESH
560#ifdef CONFIG_BT_NIMBLE_MESH
561#define MYNEWT_VAL_BLE_MESH (1)
562#else
563#define MYNEWT_VAL_BLE_MESH (0)
564#endif
565#endif
566
567#ifndef MYNEWT_VAL_BLE_MONITOR_CONSOLE_BUFFER_SIZE
568#define MYNEWT_VAL_BLE_MONITOR_CONSOLE_BUFFER_SIZE (128)
569#endif
570
571#ifndef MYNEWT_VAL_BLE_MONITOR_RTT
572#define MYNEWT_VAL_BLE_MONITOR_RTT (0)
573#endif
574
575#ifndef MYNEWT_VAL_BLE_MONITOR_RTT_BUFFERED
576#define MYNEWT_VAL_BLE_MONITOR_RTT_BUFFERED (1)
577#endif
578
579#ifndef MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_NAME
580#define MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_NAME ("monitor")
581#endif
582
583#ifndef MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_SIZE
584#define MYNEWT_VAL_BLE_MONITOR_RTT_BUFFER_SIZE (256)
585#endif
586
587#ifndef MYNEWT_VAL_BLE_MONITOR_UART
588#define MYNEWT_VAL_BLE_MONITOR_UART (0)
589#endif
590
591#ifndef MYNEWT_VAL_BLE_MONITOR_UART_BAUDRATE
592#define MYNEWT_VAL_BLE_MONITOR_UART_BAUDRATE (1000000)
593#endif
594
595#ifndef MYNEWT_VAL_BLE_MONITOR_UART_BUFFER_SIZE
596#define MYNEWT_VAL_BLE_MONITOR_UART_BUFFER_SIZE (64)
597#endif
598
599#ifndef MYNEWT_VAL_BLE_MONITOR_UART_DEV
600#define MYNEWT_VAL_BLE_MONITOR_UART_DEV ("uart0")
601#endif
602
603#if CONFIG_IDF_TARGET_ESP32
604#define MYNEWT_VAL_BLE_HOST_BASED_PRIVACY (1)
605#else
606#ifndef MYNEWT_VAL_BLE_HOST_BASED_PRIVACY
607#define MYNEWT_VAL_BLE_HOST_BASED_PRIVACY (CONFIG_BT_NIMBLE_HOST_BASED_PRIVACY)
608#endif
609#endif
610
611#ifndef MYNEWT_VAL_BLE_RPA_TIMEOUT
612#define MYNEWT_VAL_BLE_RPA_TIMEOUT (CONFIG_BT_NIMBLE_RPA_TIMEOUT)
613#endif
614
615#ifndef MYNEWT_VAL_BLE_SM_BONDING
616#define MYNEWT_VAL_BLE_SM_BONDING (1)
617#endif
618
619#ifndef MYNEWT_VAL_BLE_SM_IO_CAP
620#define MYNEWT_VAL_BLE_SM_IO_CAP (BLE_HS_IO_NO_INPUT_OUTPUT)
621#endif
622
623#ifndef MYNEWT_VAL_BLE_SM_KEYPRESS
624#define MYNEWT_VAL_BLE_SM_KEYPRESS (0)
625#endif
626
627#ifndef MYNEWT_VAL_BLE_SM_LEGACY
628#ifdef CONFIG_BT_NIMBLE_SM_LEGACY
629#define MYNEWT_VAL_BLE_SM_LEGACY (1)
630#else
631#define MYNEWT_VAL_BLE_SM_LEGACY (0)
632#endif
633#endif
634
635#ifndef MYNEWT_VAL_BLE_SM_MAX_PROCS
636#define MYNEWT_VAL_BLE_SM_MAX_PROCS (1)
637#endif
638
639#ifndef MYNEWT_VAL_BLE_SM_MITM
640#define MYNEWT_VAL_BLE_SM_MITM (0)
641#endif
642
643#ifndef MYNEWT_VAL_BLE_SM_OOB_DATA_FLAG
644#define MYNEWT_VAL_BLE_SM_OOB_DATA_FLAG (0)
645#endif
646
647#ifndef MYNEWT_VAL_BLE_SM_OUR_KEY_DIST
648#define MYNEWT_VAL_BLE_SM_OUR_KEY_DIST (0)
649#endif
650
651#ifndef MYNEWT_VAL_BLE_SM_SC
652#ifdef CONFIG_BT_NIMBLE_SM_SC
653#define MYNEWT_VAL_BLE_SM_SC (1)
654#else
655#define MYNEWT_VAL_BLE_SM_SC (0)
656#endif
657#endif
658
659#ifndef MYNEWT_VAL_BLE_SM_SC_LVL
660#define MYNEWT_VAL_BLE_SM_SC_LVL (0)
661#endif
662
663#ifndef MYNEWT_VAL_BLE_SM_SC_ONLY
664#define MYNEWT_VAL_BLE_SM_SC_ONLY (0)
665#endif
666
667#ifndef MYNEWT_VAL_BLE_SM_THEIR_KEY_DIST
668#define MYNEWT_VAL_BLE_SM_THEIR_KEY_DIST (0)
669#endif
670
671#ifndef MYNEWT_VAL_BLE_CRYPTO_STACK_MBEDTLS
672#define MYNEWT_VAL_BLE_CRYPTO_STACK_MBEDTLS (CONFIG_BT_NIMBLE_CRYPTO_STACK_MBEDTLS)
673#endif
674
675#ifndef MYNEWT_VAL_BLE_STORE_MAX_BONDS
676#define MYNEWT_VAL_BLE_STORE_MAX_BONDS CONFIG_BT_NIMBLE_MAX_BONDS
677#endif
678
679#ifndef MYNEWT_VAL_BLE_STORE_MAX_CCCDS
680#define MYNEWT_VAL_BLE_STORE_MAX_CCCDS CONFIG_BT_NIMBLE_MAX_CCCDS
681#endif
682
683#ifdef CONFIG_BT_NIMBLE_MAX_EADS
684#define MYNEWT_VAL_BLE_STORE_MAX_EADS CONFIG_BT_NIMBLE_MAX_EADS
685#endif
686
687/*** @apache-mynewt-nimble/nimble/host/mesh */
688#ifndef MYNEWT_VAL_BLE_MESH_ACCESS_LAYER_MSG
689#define MYNEWT_VAL_BLE_MESH_ACCESS_LAYER_MSG (1)
690#endif
691
692#ifndef MYNEWT_VAL_BLE_MESH_ACCESS_LOG_LVL
693#define MYNEWT_VAL_BLE_MESH_ACCESS_LOG_LVL (1)
694#endif
695
696#ifndef MYNEWT_VAL_BLE_MESH_ACCESS_LOG_MOD
697#define MYNEWT_VAL_BLE_MESH_ACCESS_LOG_MOD (10)
698#endif
699
700#ifndef MYNEWT_VAL_BLE_MESH_ADV_BUF_COUNT
701#define MYNEWT_VAL_BLE_MESH_ADV_BUF_COUNT (20)
702#endif
703
704#ifndef MYNEWT_VAL_BLE_MESH_ADV_EXT
705#define MYNEWT_VAL_BLE_MESH_ADV_EXT (0)
706#endif
707
708#ifndef MYNEWT_VAL_BLE_MESH_ADV_LEGACY
709#define MYNEWT_VAL_BLE_MESH_ADV_LEGACY (1)
710#endif
711
712#ifndef MYNEWT_VAL_BLE_MESH_ADV_LOG_LVL
713#define MYNEWT_VAL_BLE_MESH_ADV_LOG_LVL (1)
714#endif
715
716#ifndef MYNEWT_VAL_BLE_MESH_ADV_LOG_MOD
717#define MYNEWT_VAL_BLE_MESH_ADV_LOG_MOD (11)
718#endif
719
720#ifndef MYNEWT_VAL_BLE_STORE_CONFIG_PERSIST
721#ifdef CONFIG_BT_NIMBLE_NVS_PERSIST
722#define MYNEWT_VAL_BLE_STORE_CONFIG_PERSIST (1)
723#else
724#define MYNEWT_VAL_BLE_STORE_CONFIG_PERSIST (0)
725#endif
726#endif
727
728/*** nimble/host/services/ans */
729#ifndef MYNEWT_VAL_BLE_SVC_ANS_NEW_ALERT_CAT
730#define MYNEWT_VAL_BLE_SVC_ANS_NEW_ALERT_CAT (0)
731#endif
732
733
734#ifndef MYNEWT_VAL_BLE_SVC_ANS_UNR_ALERT_CAT
735#define MYNEWT_VAL_BLE_SVC_ANS_UNR_ALERT_CAT (0)
736#endif
737
738/*** nimble/host/services/bas */
739#ifndef MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_NOTIFY_ENABLE
740#define MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_NOTIFY_ENABLE (1)
741#endif
742
743#ifndef MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_READ_PERM
744#define MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_READ_PERM (0)
745#endif
746#ifndef MYNEWT_VAL_BLE_MESH_ADV_TASK_PRIO
747#define MYNEWT_VAL_BLE_MESH_ADV_TASK_PRIO (9)
748#endif
749
750#ifndef MYNEWT_VAL_BLE_MESH_APP_KEY_COUNT
751#define MYNEWT_VAL_BLE_MESH_APP_KEY_COUNT (4)
752#endif
753
754/*** @apache-mynewt-nimble/nimble/host/mesh */
755/* Overridden by apps/blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
756#ifndef MYNEWT_VAL_BLE_MESH_ADV_BUF_COUNT
757#define MYNEWT_VAL_BLE_MESH_ADV_BUF_COUNT (20)
758#endif
759
760#ifndef MYNEWT_VAL_BLE_MESH_APP_KEY_COUNT
761#define MYNEWT_VAL_BLE_MESH_APP_KEY_COUNT (1)
762#endif
763
764#ifndef MYNEWT_VAL_BLE_MESH_CFG_CLI
765#define MYNEWT_VAL_BLE_MESH_CFG_CLI (0)
766#endif
767#ifndef MYNEWT_VAL_BLE_MESH_CRPL
768#define MYNEWT_VAL_BLE_MESH_CRPL (10)
769#endif
770
771/* Overridden by apps/blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
772#ifndef MYNEWT_VAL_BLE_MESH_DEBUG
773#define MYNEWT_VAL_BLE_MESH_DEBUG (1)
774#endif
775
776/* Overridden by apps/blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
777#ifndef MYNEWT_VAL_BLE_MESH_DEBUG_ACCESS
778#define MYNEWT_VAL_BLE_MESH_DEBUG_ACCESS (1)
779#endif
780
781/* Overridden by apps/blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
782#ifndef MYNEWT_VAL_BLE_MESH_DEBUG_ADV
783#define MYNEWT_VAL_BLE_MESH_DEBUG_ADV (1)
784#endif
785
786/* Overridden by apps/blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
787#ifndef MYNEWT_VAL_BLE_MESH_DEBUG
788#define MYNEWT_VAL_BLE_MESH_DEBUG (1)
789#endif
790
791/* Overridden by apps/blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
792#ifndef MYNEWT_VAL_BLE_MESH_DEBUG_ACCESS
793#define MYNEWT_VAL_BLE_MESH_DEBUG_ACCESS (1)
794#endif
795
796/* Overridden by apps/blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
797#ifndef MYNEWT_VAL_BLE_MESH_DEBUG_ADV
798#define MYNEWT_VAL_BLE_MESH_DEBUG_ADV (1)
799#endif
800
801/* Overridden by apps/blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
802#ifndef MYNEWT_VAL_BLE_MESH_DEBUG_BEACON
803#define MYNEWT_VAL_BLE_MESH_DEBUG_BEACON (1)
804#endif
805
806/* Overridden by apps/blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
807#ifndef MYNEWT_VAL_BLE_MESH_DEBUG_CRYPTO
808#define MYNEWT_VAL_BLE_MESH_DEBUG_CRYPTO (1)
809#endif
810
811/* Overridden by apps/blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
812#ifndef MYNEWT_VAL_BLE_MESH_DEBUG_FRIEND
813#define MYNEWT_VAL_BLE_MESH_DEBUG_FRIEND (1)
814#endif
815
816/* Overridden by apps/blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
817#ifndef MYNEWT_VAL_BLE_MESH_DEBUG_LOW_POWER
818#define MYNEWT_VAL_BLE_MESH_DEBUG_LOW_POWER (1)
819#endif
820
821/* Overridden by apps/blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
822#ifndef MYNEWT_VAL_BLE_MESH_DEBUG_MODEL
823#define MYNEWT_VAL_BLE_MESH_DEBUG_MODEL (1)
824#endif
825
826/* Overridden by apps/blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
827#ifndef MYNEWT_VAL_BLE_MESH_DEBUG_NET
828#define MYNEWT_VAL_BLE_MESH_DEBUG_NET (1)
829#endif
830
831/* Overridden by apps/blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
832#ifndef MYNEWT_VAL_BLE_MESH_DEBUG_PROV
833#define MYNEWT_VAL_BLE_MESH_DEBUG_PROV (1)
834#endif
835
836/* Overridden by apps/blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
837#ifndef MYNEWT_VAL_BLE_MESH_DEBUG_PROXY
838#define MYNEWT_VAL_BLE_MESH_DEBUG_PROXY (1)
839#endif
840
841#ifndef MYNEWT_VAL_BLE_MESH_DEBUG_SETTINGS
842#define MYNEWT_VAL_BLE_MESH_DEBUG_SETTINGS (1)
843#endif
844
845/* Overridden by apps/blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
846#ifndef MYNEWT_VAL_BLE_MESH_DEBUG_TRANS
847#define MYNEWT_VAL_BLE_MESH_DEBUG_TRANS (1)
848#endif
849
850#ifndef MYNEWT_VAL_BLE_MESH_DEBUG_CDB
851#define MYNEWT_VAL_BLE_MESH_DEBUG_CDB (1)
852#endif
853
854#ifndef MYNEWT_VAL_BLE_MESH_DEBUG_CFG
855#define MYNEWT_VAL_BLE_MESH_DEBUG_CFG (1)
856#endif
857
858#ifndef MYNEWT_VAL_BLE_MESH_DEBUG_USE_ID_ADDR
859#define MYNEWT_VAL_BLE_MESH_DEBUG_USE_ID_ADDR (0)
860#endif
861
862#ifndef MYNEWT_VAL_BLE_MESH_DEFAULT_TTL
863#define MYNEWT_VAL_BLE_MESH_DEFAULT_TTL (7)
864#endif
865
866#ifndef MYNEWT_VAL_BLE_MESH_DEVICE_NAME
867#define MYNEWT_VAL_BLE_MESH_DEVICE_NAME CONFIG_BT_NIMBLE_MESH_DEVICE_NAME
868#endif
869
870#ifndef MYNEWT_VAL_BLE_MESH_DEV_UUID
871#define MYNEWT_VAL_BLE_MESH_DEV_UUID (((uint8_t[16]){0x11, 0x22, 0}))
872#endif
873
874#ifndef MYNEWT_VAL_BLE_MESH_FRIEND
875#ifdef CONFIG_BT_NIMBLE_MESH_FRIEND
876#define MYNEWT_VAL_BLE_MESH_FRIEND (1)
877#else
878#define MYNEWT_VAL_BLE_MESH_FRIEND (0)
879#endif
880#endif
881
882#ifndef MYNEWT_VAL_BLE_MESH_FRIEND_ENABLED
883#define MYNEWT_VAL_BLE_MESH_FRIEND_ENABLED (1)
884#endif
885
886#ifndef MYNEWT_VAL_BLE_MESH_FRIEND_LOG_LVL
887#define MYNEWT_VAL_BLE_MESH_FRIEND_LOG_LVL (1)
888#endif
889
890#ifndef MYNEWT_VAL_BLE_MESH_FRIEND_LOG_MOD
891#define MYNEWT_VAL_BLE_MESH_FRIEND_LOG_MOD (14)
892#endif
893
894#ifndef MYNEWT_VAL_BLE_MESH_FRIEND_LPN_COUNT
895#define MYNEWT_VAL_BLE_MESH_FRIEND_LPN_COUNT (2)
896#endif
897
898#ifndef MYNEWT_VAL_BLE_MESH_FRIEND_QUEUE_SIZE
899#define MYNEWT_VAL_BLE_MESH_FRIEND_QUEUE_SIZE (16)
900#endif
901
902#ifndef MYNEWT_VAL_BLE_MESH_FRIEND_RECV_WIN
903#define MYNEWT_VAL_BLE_MESH_FRIEND_RECV_WIN (255)
904#endif
905
906#ifndef MYNEWT_VAL_BLE_MESH_FRIEND_SEG_RX
907#define MYNEWT_VAL_BLE_MESH_FRIEND_SEG_RX (1)
908#endif
909
910#ifndef MYNEWT_VAL_BLE_MESH_FRIEND_SUB_LIST_SIZE
911#define MYNEWT_VAL_BLE_MESH_FRIEND_SUB_LIST_SIZE (3)
912#endif
913
914#ifndef MYNEWT_VAL_BLE_MESH_GATT_PROXY
915#ifdef CONFIG_BT_NIMBLE_MESH_GATT_PROXY
916#define MYNEWT_VAL_BLE_MESH_GATT_PROXY (1)
917#else
918#define MYNEWT_VAL_BLE_MESH_GATT_PROXY (0)
919#endif
920#endif
921
922#ifndef MYNEWT_VAL_BLE_MESH_GATT_PROXY_ENABLED
923#define MYNEWT_VAL_BLE_MESH_GATT_PROXY_ENABLED (1)
924#endif
925
926#ifndef MYNEWT_VAL_BLE_MESH_GATT_SERVER
927#define MYNEWT_VAL_BLE_MESH_GATT_SERVER (1)
928#endif
929
930#ifndef MYNEWT_VAL_BLE_MESH_HEALTH_CLI
931#define MYNEWT_VAL_BLE_MESH_HEALTH_CLI (0)
932#endif
933
934#ifndef MYNEWT_VAL_BLE_MESH_HEARTBEAT_LOG_LVL
935#define MYNEWT_VAL_BLE_MESH_HEARTBEAT_LOG_LVL (1)
936#endif
937
938#ifndef MYNEWT_VAL_BLE_MESH_HEARTBEAT_LOG_MOD
939#define MYNEWT_VAL_BLE_MESH_HEARTBEAT_LOG_MOD (26)
940#endif
941
942#ifndef MYNEWT_VAL_BLE_MESH_IVU_DIVIDER
943#define MYNEWT_VAL_BLE_MESH_IVU_DIVIDER (4)
944#endif
945
946#ifndef MYNEWT_VAL_BLE_MESH_IV_UPDATE_TEST
947#define MYNEWT_VAL_BLE_MESH_IV_UPDATE_TEST (0)
948#endif
949
950#ifndef MYNEWT_VAL_BLE_MESH_LABEL_COUNT
951#define MYNEWT_VAL_BLE_MESH_LABEL_COUNT (1)
952#endif
953
954#ifndef MYNEWT_VAL_BLE_MESH_LOG_LVL
955#define MYNEWT_VAL_BLE_MESH_LOG_LVL (1)
956#endif
957
958#ifndef MYNEWT_VAL_BLE_MESH_LOG_MOD
959#define MYNEWT_VAL_BLE_MESH_LOG_MOD (9)
960#endif
961
962#ifndef MYNEWT_VAL_BLE_MESH_LOW_POWER
963#ifdef CONFIG_BT_NIMBLE_MESH_LOW_POWER
964#define MYNEWT_VAL_BLE_MESH_LOW_POWER (1)
965#else
966#define MYNEWT_VAL_BLE_MESH_LOW_POWER (0)
967#endif
968#endif
969
970#ifndef MYNEWT_VAL_BLE_MESH_LOW_POWER_LOG_LVL
971#define MYNEWT_VAL_BLE_MESH_LOW_POWER_LOG_LVL (1)
972#endif
973
974#ifndef MYNEWT_VAL_BLE_MESH_LOW_POWER_LOG_MOD
975#define MYNEWT_VAL_BLE_MESH_LOW_POWER_LOG_MOD (15)
976#endif
977
978#ifndef MYNEWT_VAL_BLE_MESH_LPN_AUTO
979#define MYNEWT_VAL_BLE_MESH_LPN_AUTO (1)
980#endif
981
982#ifndef MYNEWT_VAL_BLE_MESH_LPN_AUTO_TIMEOUT
983#define MYNEWT_VAL_BLE_MESH_LPN_AUTO_TIMEOUT (15)
984#endif
985
986#ifndef MYNEWT_VAL_BLE_MESH_LPN_ESTABLISHMENT
987#define MYNEWT_VAL_BLE_MESH_LPN_ESTABLISHMENT (1)
988#endif
989
990#ifndef MYNEWT_VAL_BLE_MESH_LPN_GROUPS
991#define MYNEWT_VAL_BLE_MESH_LPN_GROUPS (10)
992#endif
993
994#ifndef MYNEWT_VAL_BLE_MESH_LPN_SUB_ALL_NODES_ADDR
995#define MYNEWT_VAL_BLE_MESH_LPN_SUB_ALL_NODES_ADDR (1)
996#endif
997
998#ifndef MYNEWT_VAL_BLE_MESH_LPN_INIT_POLL_TIMEOUT
999#define MYNEWT_VAL_BLE_MESH_LPN_INIT_POLL_TIMEOUT (MYNEWT_VAL_BLE_MESH_LPN_POLL_TIMEOUT)
1000#endif
1001
1002#ifndef MYNEWT_VAL_BLE_MESH_LPN_MIN_QUEUE_SIZE
1003#define MYNEWT_VAL_BLE_MESH_LPN_MIN_QUEUE_SIZE (1)
1004#endif
1005
1006#ifndef MYNEWT_VAL_BLE_MESH_LPN_POLL_TIMEOUT
1007#define MYNEWT_VAL_BLE_MESH_LPN_POLL_TIMEOUT (300)
1008#endif
1009
1010#ifndef MYNEWT_VAL_BLE_MESH_LPN_RECV_DELAY
1011#define MYNEWT_VAL_BLE_MESH_LPN_RECV_DELAY (100)
1012#endif
1013
1014#ifndef MYNEWT_VAL_BLE_MESH_LPN_RECV_WIN_FACTOR
1015#define MYNEWT_VAL_BLE_MESH_LPN_RECV_WIN_FACTOR (0)
1016#endif
1017
1018#ifndef MYNEWT_VAL_BLE_MESH_LPN_RETRY_TIMEOUT
1019#define MYNEWT_VAL_BLE_MESH_LPN_RETRY_TIMEOUT (8)
1020#endif
1021
1022#ifndef MYNEWT_VAL_BLE_MESH_LPN_RSSI_FACTOR
1023#define MYNEWT_VAL_BLE_MESH_LPN_RSSI_FACTOR (0)
1024#endif
1025
1026#ifndef MYNEWT_VAL_BLE_MESH_LPN_SCAN_LATENCY
1027#define MYNEWT_VAL_BLE_MESH_LPN_SCAN_LATENCY (10)
1028#endif
1029
1030#ifndef MYNEWT_VAL_BLE_MESH_LPN_SUB_ALL_NODES_ADDR
1031#define MYNEWT_VAL_BLE_MESH_LPN_SUB_ALL_NODES_ADDR (0)
1032#endif
1033
1034#ifndef MYNEWT_VAL_BLE_MESH_MODEL_EXTENSIONS
1035#define MYNEWT_VAL_BLE_MESH_MODEL_EXTENSIONS (0)
1036#endif
1037
1038#ifndef MYNEWT_VAL_BLE_MESH_MODEL_GROUP_COUNT
1039#define MYNEWT_VAL_BLE_MESH_MODEL_GROUP_COUNT (1)
1040#endif
1041
1042#ifndef MYNEWT_VAL_BLE_MESH_MODEL_KEY_COUNT
1043#define MYNEWT_VAL_BLE_MESH_MODEL_KEY_COUNT (1)
1044#endif
1045
1046#ifndef MYNEWT_VAL_BLE_MESH_MODEL_LOG_LVL
1047#define MYNEWT_VAL_BLE_MESH_MODEL_LOG_LVL (1)
1048#endif
1049
1050#ifndef MYNEWT_VAL_BLE_MESH_MODEL_LOG_MOD
1051#define MYNEWT_VAL_BLE_MESH_MODEL_LOG_MOD (16)
1052#endif
1053
1054/* Overridden by @apache-mynewt-nimble/porting/targets/linux_blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
1055#ifndef MYNEWT_VAL_BLE_MESH_MODEL_VND_MSG_CID_FORCE
1056#define MYNEWT_VAL_BLE_MESH_MODEL_VND_MSG_CID_FORCE (1)
1057#endif
1058
1059#ifndef MYNEWT_VAL_BLE_MESH_MSG_CACHE_SIZE
1060#define MYNEWT_VAL_BLE_MESH_MSG_CACHE_SIZE (10)
1061#endif
1062
1063#ifndef MYNEWT_VAL_BLE_MESH_NETWORK_TRANSMIT_COUNT
1064#define MYNEWT_VAL_BLE_MESH_NETWORK_TRANSMIT_COUNT (2)
1065#endif
1066
1067#ifndef MYNEWT_VAL_BLE_MESH_NETWORK_TRANSMIT_INTERVAL
1068#define MYNEWT_VAL_BLE_MESH_NETWORK_TRANSMIT_INTERVAL (20)
1069#endif
1070
1071#ifndef MYNEWT_VAL_BLE_MESH_NET_BUF_USER_DATA_SIZE
1072#define MYNEWT_VAL_BLE_MESH_NET_BUF_USER_DATA_SIZE (4)
1073#endif
1074
1075#ifndef MYNEWT_VAL_BLE_MESH_NET_KEYS_LOG_LVL
1076#define MYNEWT_VAL_BLE_MESH_NET_KEYS_LOG_LVL (1)
1077#endif
1078
1079#ifndef MYNEWT_VAL_BLE_MESH_NET_KEYS_LOG_MOD
1080#define MYNEWT_VAL_BLE_MESH_NET_KEYS_LOG_MOD (23)
1081#endif
1082
1083#ifndef MYNEWT_VAL_BLE_MESH_NET_LOG_LVL
1084#define MYNEWT_VAL_BLE_MESH_NET_LOG_LVL (1)
1085#endif
1086
1087#ifndef MYNEWT_VAL_BLE_MESH_NET_LOG_MOD
1088#define MYNEWT_VAL_BLE_MESH_NET_LOG_MOD (17)
1089#endif
1090
1091#ifndef MYNEWT_VAL_BLE_MESH_NODE_COUNT
1092#define MYNEWT_VAL_BLE_MESH_NODE_COUNT CONFIG_BT_NIMBLE_MESH_NODE_COUNT
1093#endif
1094
1095#ifndef MYNEWT_VAL_BLE_MESH_NODE_ID_TIMEOUT
1096#define MYNEWT_VAL_BLE_MESH_NODE_ID_TIMEOUT (60)
1097#endif
1098
1099#ifndef MYNEWT_VAL_BLE_MESH_OOB_INPUT_ACTIONS
1100#define MYNEWT_VAL_BLE_MESH_OOB_INPUT_ACTIONS (((BT_MESH_NO_INPUT)))
1101#endif
1102
1103#ifndef MYNEWT_VAL_BLE_MESH_OOB_INPUT_SIZE
1104#define MYNEWT_VAL_BLE_MESH_OOB_INPUT_SIZE (4)
1105#endif
1106
1107#ifndef MYNEWT_VAL_BLE_MESH_OOB_OUTPUT_ACTIONS
1108#define MYNEWT_VAL_BLE_MESH_OOB_OUTPUT_ACTIONS (((BT_MESH_DISPLAY_NUMBER)))
1109#endif
1110
1111#ifndef MYNEWT_VAL_BLE_MESH_OOB_OUTPUT_SIZE
1112#define MYNEWT_VAL_BLE_MESH_OOB_OUTPUT_SIZE (4)
1113#endif
1114
1115#ifndef MYNEWT_VAL_BLE_MESH_PB_ADV
1116#ifdef CONFIG_BT_NIMBLE_MESH_PB_ADV
1117#define MYNEWT_VAL_BLE_MESH_PB_ADV (1)
1118#else
1119#define MYNEWT_VAL_BLE_MESH_PB_ADV (0)
1120#endif
1121#endif
1122
1123#ifndef MYNEWT_VAL_BLE_MESH_PB_GATT
1124#ifdef CONFIG_BT_NIMBLE_MESH_PB_GATT
1125#define MYNEWT_VAL_BLE_MESH_PB_GATT (1)
1126#else
1127#define MYNEWT_VAL_BLE_MESH_PB_GATT (0)
1128#endif
1129#endif
1130
1131/* Overridden by @apache-mynewt-nimble/nimble/host/mesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
1132#ifndef MYNEWT_VAL_BLE_MESH_PROV
1133#ifdef CONFIG_BT_NIMBLE_MESH_PROV
1134#define MYNEWT_VAL_BLE_MESH_PROV (1)
1135#else
1136#define MYNEWT_VAL_BLE_MESH_PROV (0)
1137#endif
1138#endif
1139
1140#ifndef MYNEWT_VAL_BLE_MESH_PROVISIONER
1141#ifdef CONFIG_BT_NIMBLE_MESH_PROVISIONER
1142#define MYNEWT_VAL_BLE_MESH_PROVISIONER (1)
1143#else
1144#define MYNEWT_VAL_BLE_MESH_PROVISIONER (0)
1145#endif
1146#endif
1147
1148#ifndef MYNEWT_VAL_BLE_MESH_CDB
1149#define MYNEWT_VAL_BLE_MESH_CDB (0)
1150#endif
1151
1152#ifndef MYNEWT_VAL_BLE_MESH_PROV_LOG_LVL
1153#define MYNEWT_VAL_BLE_MESH_PROV_LOG_LVL (1)
1154#endif
1155
1156#ifndef MYNEWT_VAL_BLE_MESH_PROV_LOG_MOD
1157#define MYNEWT_VAL_BLE_MESH_PROV_LOG_MOD (18)
1158#endif
1159
1160#ifndef MYNEWT_VAL_BLE_MESH_PROV_OOB_PUBLIC_KEY
1161#define MYNEWT_VAL_BLE_MESH_PROV_OOB_PUBLIC_KEY (0)
1162#endif
1163
1164/* Overridden by @apache-mynewt-nimble/nimble/host/mesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
1165#ifndef MYNEWT_VAL_BLE_MESH_PROXY
1166#ifdef CONFIG_BT_NIMBLE_MESH_PROXY
1167#define MYNEWT_VAL_BLE_MESH_PROXY (1)
1168#else
1169#define MYNEWT_VAL_BLE_MESH_PROXY (0)
1170#endif
1171#endif
1172
1173#ifndef MYNEWT_VAL_BLE_MESH_PROXY_FILTER_SIZE
1174#define MYNEWT_VAL_BLE_MESH_PROXY_FILTER_SIZE (3)
1175#endif
1176
1177#ifndef MYNEWT_VAL_BLE_MESH_PROXY_LOG_LVL
1178#define MYNEWT_VAL_BLE_MESH_PROXY_LOG_LVL (1)
1179#endif
1180
1181#ifndef MYNEWT_VAL_BLE_MESH_PROXY_LOG_MOD
1182#define MYNEWT_VAL_BLE_MESH_PROXY_LOG_MOD (19)
1183#endif
1184
1185#ifndef MYNEWT_VAL_BLE_MESH_RELAY
1186#ifdef CONFIG_BT_NIMBLE_MESH_RELAY
1187#define MYNEWT_VAL_BLE_MESH_RELAY (1)
1188#else
1189#define MYNEWT_VAL_BLE_MESH_RELAY (0)
1190#endif
1191#endif
1192
1193/* Value copied from BLE_MESH_RELAY */
1194#ifndef MYNEWT_VAL_BLE_MESH_RELAY_ENABLED
1195#define MYNEWT_VAL_BLE_MESH_RELAY_ENABLED (1)
1196#endif
1197
1198#ifndef MYNEWT_VAL_BLE_MESH_RX_SDU_MAX
1199#define MYNEWT_VAL_BLE_MESH_RX_SDU_MAX (72)
1200#endif
1201
1202#ifndef MYNEWT_VAL_BLE_MESH_SEG_BUFS
1203#define MYNEWT_VAL_BLE_MESH_SEG_BUFS (72)
1204#endif
1205
1206#ifndef MYNEWT_VAL_BLE_MESH_RX_SEG_MAX
1207#define MYNEWT_VAL_BLE_MESH_RX_SEG_MAX (3)
1208#endif
1209
1210#ifndef MYNEWT_VAL_BLE_MESH_RX_SEG_MSG_COUNT
1211#define MYNEWT_VAL_BLE_MESH_RX_SEG_MSG_COUNT (2)
1212#endif
1213
1214#ifndef MYNEWT_VAL_BLE_MESH_SEG_BUFS
1215#define MYNEWT_VAL_BLE_MESH_SEG_BUFS (64)
1216#endif
1217
1218#ifndef MYNEWT_VAL_BLE_MESH_SEG_RETRANSMIT_ATTEMPTS
1219#define MYNEWT_VAL_BLE_MESH_SEG_RETRANSMIT_ATTEMPTS (4)
1220#endif
1221
1222#ifndef MYNEWT_VAL_BLE_MESH_SEQ_STORE_RATE
1223#define MYNEWT_VAL_BLE_MESH_SEQ_STORE_RATE (128)
1224#endif
1225
1226
1227#ifndef MYNEWT_VAL_BLE_MESH_TX_SEG_RETRANS_COUNT
1228#define MYNEWT_VAL_BLE_MESH_TX_SEG_RETRANS_COUNT (4)
1229#endif
1230
1231#ifndef MYNEWT_VAL_BLE_MESH_TX_SEG_RETRANS_TIMEOUT_UNICAST
1232#define MYNEWT_VAL_BLE_MESH_TX_SEG_RETRANS_TIMEOUT_UNICAST (400)
1233#endif
1234
1235#ifndef MYNEWT_VAL_BLE_MESH_TX_SEG_RETRANS_TIMEOUT_GROUP
1236#define MYNEWT_VAL_BLE_MESH_TX_SEG_RETRANS_TIMEOUT_GROUP (50)
1237#endif
1238
1239#ifndef MYNEWT_VAL_BLE_MESH_LOOPBACK_BUFS
1240#define MYNEWT_VAL_BLE_MESH_LOOPBACK_BUFS (3)
1241#endif
1242
1243#ifndef MYNEWT_VAL_BLE_MESH_DEFAULT_TTL
1244#define MYNEWT_VAL_BLE_MESH_DEFAULT_TTL (7)
1245#endif
1246
1247#ifndef MYNEWT_VAL_BLE_MESH_NETWORK_TRANSMIT_COUNT
1248#define MYNEWT_VAL_BLE_MESH_NETWORK_TRANSMIT_COUNT (2)
1249#endif
1250
1251#ifndef MYNEWT_VAL_BLE_MESH_NETWORK_TRANSMIT_INTERVAL
1252#define MYNEWT_VAL_BLE_MESH_NETWORK_TRANSMIT_INTERVAL (20)
1253#endif
1254
1255#ifndef MYNEWT_VAL_BLE_MESH_RELAY_RETRANSMIT_COUNT
1256#define MYNEWT_VAL_BLE_MESH_RELAY_RETRANSMIT_COUNT (2)
1257#endif
1258
1259#ifndef MYNEWT_VAL_BLE_MESH_PB_ADV_RETRANS_TIMEOUT
1260#define MYNEWT_VAL_BLE_MESH_PB_ADV_RETRANS_TIMEOUT (500)
1261#endif
1262
1263#ifndef MYNEWT_VAL_BLE_MESH_RELAY_ENABLED
1264#define MYNEWT_VAL_BLE_MESH_RELAY_ENABLED (1)
1265#endif
1266
1267#ifndef MYNEWT_VAL_BLE_MESH_GATT_PROXY_ENABLED
1268#define MYNEWT_VAL_BLE_MESH_GATT_PROXY_ENABLED (1)
1269#endif
1270
1271#ifndef MYNEWT_VAL_BLE_MESH_FRIEND_ENABLED
1272#define MYNEWT_VAL_BLE_MESH_FRIEND_ENABLED (1)
1273#endif
1274
1275#ifndef MYNEWT_VAL_BLE_MESH_BEACON_ENABLED
1276#define MYNEWT_VAL_BLE_MESH_BEACON_ENABLED (1)
1277#endif
1278
1279#ifndef MYNEWT_VAL_BLE_MESH_RELAY_RETRANSMIT_INTERVAL
1280#define MYNEWT_VAL_BLE_MESH_RELAY_RETRANSMIT_INTERVAL (20)
1281#endif
1282
1283/* Overridden by apps/blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
1284#ifndef MYNEWT_VAL_BLE_MESH_SETTINGS
1285#define MYNEWT_VAL_BLE_MESH_SETTINGS (0)
1286#endif
1287
1288#ifndef MYNEWT_VAL_BLE_MESH_SETTINGS_LOG_LVL
1289#define MYNEWT_VAL_BLE_MESH_SETTINGS_LOG_LVL (1)
1290#endif
1291
1292#ifndef MYNEWT_VAL_BLE_MESH_SETTINGS_LOG_MOD
1293#define MYNEWT_VAL_BLE_MESH_SETTINGS_LOG_MOD (20)
1294#endif
1295
1296#ifndef MYNEWT_VAL_BLE_MESH_SHELL
1297#define MYNEWT_VAL_BLE_MESH_SHELL (0)
1298#endif
1299
1300#ifndef MYNEWT_VAL_BLE_MESH_SHELL_MODELS
1301#define MYNEWT_VAL_BLE_MESH_SHELL_MODELS (0)
1302#endif
1303
1304#ifndef MYNEWT_VAL_BLE_MESH_STORE_TIMEOUT
1305#define MYNEWT_VAL_BLE_MESH_STORE_TIMEOUT (2)
1306#endif
1307
1308#ifndef MYNEWT_VAL_BLE_MESH_SUBNET_COUNT
1309#define MYNEWT_VAL_BLE_MESH_SUBNET_COUNT (1)
1310#endif
1311
1312#ifndef MYNEWT_VAL_BLE_MESH_SYSINIT_STAGE
1313#define MYNEWT_VAL_BLE_MESH_SYSINIT_STAGE (500)
1314#endif
1315
1316#ifndef MYNEWT_VAL_BLE_MESH_SYSINIT_STAGE_SHELL
1317#define MYNEWT_VAL_BLE_MESH_SYSINIT_STAGE_SHELL (1000)
1318#endif
1319
1320#ifndef MYNEWT_VAL_BLE_MESH_TESTING
1321#define MYNEWT_VAL_BLE_MESH_TESTING (0)
1322#endif
1323
1324#ifndef MYNEWT_VAL_BLE_MESH_TRANS_LOG_LVL
1325#define MYNEWT_VAL_BLE_MESH_TRANS_LOG_LVL (1)
1326#endif
1327
1328#ifndef MYNEWT_VAL_BLE_MESH_TRANS_LOG_MOD
1329#define MYNEWT_VAL_BLE_MESH_TRANS_LOG_MOD (21)
1330#endif
1331
1332/* Overridden by apps/blemesh (defined by @apache-mynewt-nimble/nimble/host/mesh) */
1333#ifndef MYNEWT_VAL_BLE_MESH_TX_SEG_MAX
1334#define MYNEWT_VAL_BLE_MESH_TX_SEG_MAX (6)
1335#endif
1336
1337#ifndef MYNEWT_VAL_BLE_MESH_TX_SEG_MSG_COUNT
1338#define MYNEWT_VAL_BLE_MESH_TX_SEG_MSG_COUNT (1)
1339#endif
1340
1341#ifndef MYNEWT_VAL_BLE_MESH_UNPROV_BEACON_INT
1342#define MYNEWT_VAL_BLE_MESH_UNPROV_BEACON_INT (5)
1343#endif
1344
1345/*** @apache-mynewt-nimble/nimble/host/services/ans */
1346#ifndef MYNEWT_VAL_BLE_SVC_ANS_NEW_ALERT_CAT
1347#define MYNEWT_VAL_BLE_SVC_ANS_NEW_ALERT_CAT (0)
1348#endif
1349
1350#ifndef MYNEWT_VAL_BLE_SVC_ANS_SYSINIT_STAGE
1351#define MYNEWT_VAL_BLE_SVC_ANS_SYSINIT_STAGE (303)
1352#endif
1353
1354#ifndef MYNEWT_VAL_BLE_SVC_ANS_UNR_ALERT_CAT
1355#define MYNEWT_VAL_BLE_SVC_ANS_UNR_ALERT_CAT (0)
1356#endif
1357
1358/*** @apache-mynewt-nimble/nimble/host/services/bas */
1359#ifndef MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_NOTIFY_ENABLE
1360#define MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_NOTIFY_ENABLE (1)
1361#endif
1362
1363#ifndef MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_READ_PERM
1364#define MYNEWT_VAL_BLE_SVC_BAS_BATTERY_LEVEL_READ_PERM (0)
1365#endif
1366
1367#ifndef MYNEWT_VAL_BLE_SVC_BAS_SYSINIT_STAGE
1368#define MYNEWT_VAL_BLE_SVC_BAS_SYSINIT_STAGE (303)
1369#endif
1370
1371/*** @apache-mynewt-nimble/nimble/host/services/dis */
1372#ifndef MYNEWT_VAL_BLE_SVC_DIS_DEFAULT_READ_PERM
1373#define MYNEWT_VAL_BLE_SVC_DIS_DEFAULT_READ_PERM (-1)
1374#endif
1375
1376#ifndef MYNEWT_VAL_BLE_SVC_DIS_FIRMWARE_REVISION_DEFAULT
1377#define MYNEWT_VAL_BLE_SVC_DIS_FIRMWARE_REVISION_DEFAULT (NULL)
1378#endif
1379
1380/* Value copied from BLE_SVC_DIS_DEFAULT_READ_PERM */
1381#ifndef MYNEWT_VAL_BLE_SVC_DIS_FIRMWARE_REVISION_READ_PERM
1382#define MYNEWT_VAL_BLE_SVC_DIS_FIRMWARE_REVISION_READ_PERM (-1)
1383#endif
1384
1385#ifndef MYNEWT_VAL_BLE_SVC_DIS_HARDWARE_REVISION_DEFAULT
1386#define MYNEWT_VAL_BLE_SVC_DIS_HARDWARE_REVISION_DEFAULT (NULL)
1387#endif
1388
1389/* Value copied from BLE_SVC_DIS_DEFAULT_READ_PERM */
1390#ifndef MYNEWT_VAL_BLE_SVC_DIS_HARDWARE_REVISION_READ_PERM
1391#define MYNEWT_VAL_BLE_SVC_DIS_HARDWARE_REVISION_READ_PERM (-1)
1392#endif
1393
1394#ifndef MYNEWT_VAL_BLE_SVC_DIS_MANUFACTURER_NAME_DEFAULT
1395#define MYNEWT_VAL_BLE_SVC_DIS_MANUFACTURER_NAME_DEFAULT (NULL)
1396#endif
1397
1398/* Value copied from BLE_SVC_DIS_DEFAULT_READ_PERM */
1399#ifndef MYNEWT_VAL_BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM
1400#define MYNEWT_VAL_BLE_SVC_DIS_MANUFACTURER_NAME_READ_PERM (-1)
1401#endif
1402
1403#ifndef MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_DEFAULT
1404#define MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_DEFAULT ("NimBLE")
1405#endif
1406
1407#ifndef MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_READ_PERM
1408#define MYNEWT_VAL_BLE_SVC_DIS_MODEL_NUMBER_READ_PERM (0)
1409#endif
1410
1411#ifndef MYNEWT_VAL_BLE_SVC_DIS_SERIAL_NUMBER_DEFAULT
1412#define MYNEWT_VAL_BLE_SVC_DIS_SERIAL_NUMBER_DEFAULT (NULL)
1413#endif
1414
1415/* Value copied from BLE_SVC_DIS_DEFAULT_READ_PERM */
1416#ifndef MYNEWT_VAL_BLE_SVC_DIS_SERIAL_NUMBER_READ_PERM
1417#define MYNEWT_VAL_BLE_SVC_DIS_SERIAL_NUMBER_READ_PERM (-1)
1418#endif
1419
1420#ifndef MYNEWT_VAL_BLE_SVC_DIS_SOFTWARE_REVISION_DEFAULT
1421#define MYNEWT_VAL_BLE_SVC_DIS_SOFTWARE_REVISION_DEFAULT (NULL)
1422#endif
1423
1424/* Value copied from BLE_SVC_DIS_DEFAULT_READ_PERM */
1425#ifndef MYNEWT_VAL_BLE_SVC_DIS_SOFTWARE_REVISION_READ_PERM
1426#define MYNEWT_VAL_BLE_SVC_DIS_SOFTWARE_REVISION_READ_PERM (-1)
1427#endif
1428
1429#ifndef MYNEWT_VAL_BLE_SVC_DIS_SYSINIT_STAGE
1430#define MYNEWT_VAL_BLE_SVC_DIS_SYSINIT_STAGE (303)
1431#endif
1432
1433#ifndef MYNEWT_VAL_BLE_SVC_DIS_SYSTEM_ID_DEFAULT
1434#define MYNEWT_VAL_BLE_SVC_DIS_SYSTEM_ID_DEFAULT (NULL)
1435#endif
1436
1437#ifndef MYNEWT_VAL_BLE_SVC_DIS_PNP_ID_DEFAULT
1438#define MYNEWT_VAL_BLE_SVC_DIS_PNP_ID_DEFAULT (NULL)
1439#endif
1440
1441/* Value copied from BLE_SVC_DIS_DEFAULT_READ_PERM */
1442#ifndef MYNEWT_VAL_BLE_SVC_DIS_SYSTEM_ID_READ_PERM
1443#define MYNEWT_VAL_BLE_SVC_DIS_SYSTEM_ID_READ_PERM (-1)
1444#endif
1445
1446/* Value copied from BLE_SVC_DIS_DEFAULT_READ_PERM */
1447#ifndef MYNEWT_VAL_BLE_SVC_DIS_PNP_ID_READ_PERM
1448#define MYNEWT_VAL_BLE_SVC_DIS_PNP_ID_READ_PERM (-1)
1449#endif
1450
1451/*** @apache-mynewt-nimble/nimble/host/services/gap */
1452#ifndef MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE
1453#define MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE CONFIG_BT_NIMBLE_SVC_GAP_APPEARANCE
1454#endif
1455
1456#ifndef MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM
1457#define MYNEWT_VAL_BLE_SVC_GAP_APPEARANCE_WRITE_PERM (-1)
1458#endif
1459
1460#ifndef MYNEWT_VAL_BLE_SVC_GAP_CENTRAL_ADDRESS_RESOLUTION
1461#define MYNEWT_VAL_BLE_SVC_GAP_CENTRAL_ADDRESS_RESOLUTION (-1)
1462#endif
1463
1464#ifndef MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME
1465#define MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME CONFIG_BT_NIMBLE_SVC_GAP_DEVICE_NAME
1466#endif
1467
1468#ifndef MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_MAX_LENGTH
1469#define MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_MAX_LENGTH CONFIG_BT_NIMBLE_GAP_DEVICE_NAME_MAX_LEN
1470#endif
1471
1472#ifndef MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM
1473#define MYNEWT_VAL_BLE_SVC_GAP_DEVICE_NAME_WRITE_PERM (-1)
1474#endif
1475
1476#ifndef MYNEWT_VAL_BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL
1477#define MYNEWT_VAL_BLE_SVC_GAP_PPCP_MAX_CONN_INTERVAL (0)
1478#endif
1479
1480#ifndef MYNEWT_VAL_BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL
1481#define MYNEWT_VAL_BLE_SVC_GAP_PPCP_MIN_CONN_INTERVAL (0)
1482#endif
1483
1484#ifndef MYNEWT_VAL_BLE_SVC_GAP_PPCP_SLAVE_LATENCY
1485#define MYNEWT_VAL_BLE_SVC_GAP_PPCP_SLAVE_LATENCY (0)
1486#endif
1487
1488#ifndef MYNEWT_VAL_BLE_SVC_GAP_PPCP_SUPERVISION_TMO
1489#define MYNEWT_VAL_BLE_SVC_GAP_PPCP_SUPERVISION_TMO (0)
1490#endif
1491
1492/*** nimble/transport */
1493#ifndef MYNEWT_VAL_BLE_HCI_TRANSPORT_EMSPI
1494#define MYNEWT_VAL_BLE_HCI_TRANSPORT_EMSPI (0)
1495#endif
1496
1497/* Overridden by targets/porting-nimble (defined by nimble/transport) */
1498#ifndef MYNEWT_VAL_BLE_HCI_TRANSPORT_NIMBLE_BUILTIN
1499#define MYNEWT_VAL_BLE_HCI_TRANSPORT_NIMBLE_BUILTIN (0)
1500#endif
1501
1502#ifndef MYNEWT_VAL_BLE_HCI_TRANSPORT_RAM
1503#define MYNEWT_VAL_BLE_HCI_TRANSPORT_RAM (0)
1504#endif
1505
1506#ifndef MYNEWT_VAL_BLE_HCI_TRANSPORT_SOCKET
1507#define MYNEWT_VAL_BLE_HCI_TRANSPORT_SOCKET (0)
1508#endif
1509
1510/* Overridden by targets/porting-nimble (defined by nimble/transport) */
1511#ifndef MYNEWT_VAL_BLE_HCI_TRANSPORT_UART
1512#define MYNEWT_VAL_BLE_HCI_TRANSPORT_UART (1)
1513#endif
1514
1515/*** nimble/transport/uart */
1516#ifndef MYNEWT_VAL_BLE_ACL_BUF_COUNT
1517#define MYNEWT_VAL_BLE_ACL_BUF_COUNT CONFIG_BT_NIMBLE_ACL_BUF_COUNT
1518#endif
1519
1520#ifndef MYNEWT_VAL_BLE_TRANSPORT_ACL_SIZE
1521#define MYNEWT_VAL_BLE_TRANSPORT_ACL_SIZE CONFIG_BT_NIMBLE_TRANSPORT_ACL_SIZE
1522#endif
1523
1524#ifndef MYNEWT_VAL_BLE_HCI_ACL_OUT_COUNT
1525#define MYNEWT_VAL_BLE_HCI_ACL_OUT_COUNT (12)
1526#endif
1527
1528#ifndef MYNEWT_VAL_BLE_HCI_EVT_BUF_SIZE
1529#define MYNEWT_VAL_BLE_HCI_EVT_BUF_SIZE CONFIG_BT_NIMBLE_HCI_EVT_BUF_SIZE
1530#endif
1531
1532#ifndef MYNEWT_VAL_BLE_HCI_EVT_HI_BUF_COUNT
1533#define MYNEWT_VAL_BLE_HCI_EVT_HI_BUF_COUNT CONFIG_BT_NIMBLE_HCI_EVT_HI_BUF_COUNT
1534#endif
1535
1536#ifndef MYNEWT_VAL_BLE_HCI_EVT_LO_BUF_COUNT
1537#define MYNEWT_VAL_BLE_HCI_EVT_LO_BUF_COUNT CONFIG_BT_NIMBLE_HCI_EVT_LO_BUF_COUNT
1538#endif
1539
1540/* Overridden by targets/porting-nimble (defined by nimble/transport/uart) */
1541#ifndef MYNEWT_VAL_BLE_HCI_UART_BAUD
1542#define MYNEWT_VAL_BLE_HCI_UART_BAUD (115200)
1543#endif
1544
1545#ifndef MYNEWT_VAL_BLE_HCI_UART_DATA_BITS
1546#define MYNEWT_VAL_BLE_HCI_UART_DATA_BITS (8)
1547#endif
1548
1549/* Overridden by targets/porting-nimble (defined by nimble/transport/uart) */
1550#ifndef MYNEWT_VAL_BLE_HCI_UART_FLOW_CTRL
1551#define MYNEWT_VAL_BLE_HCI_UART_FLOW_CTRL (0)
1552#endif
1553
1554#ifndef MYNEWT_VAL_BLE_HCI_UART_PARITY
1555#define MYNEWT_VAL_BLE_HCI_UART_PARITY (HAL_UART_PARITY_NONE)
1556#endif
1557
1558#ifndef MYNEWT_VAL_BLE_HCI_UART_PORT
1559#define MYNEWT_VAL_BLE_HCI_UART_PORT (0)
1560#endif
1561
1562#ifndef MYNEWT_VAL_BLE_HCI_UART_STOP_BITS
1563#define MYNEWT_VAL_BLE_HCI_UART_STOP_BITS (1)
1564#endif
1565
1566#ifndef CONFIG_BLE_TX_CCA_ENABLED
1567#define MYNEWT_VAL_BLE_TX_CCA_ENABLED (0)
1568#else
1569#define MYNEWT_VAL_BLE_TX_CCA_ENABLED (CONFIG_BLE_TX_CCA_ENABLED)
1570#endif
1571
1572#ifndef CONFIG_BLE_CCA_RSSI_THRESH
1573#define MYNEWT_VAL_BLE_CCA_RSSI_THRESH (50)
1574#else
1575#define MYNEWT_VAL_BLE_CCA_RSSI_THRESH (CONFIG_BLE_CCA_RSSI_THRESH)
1576#endif
1577
1578#ifndef MYNEWT_VAL_NEWT_FEATURE_LOGCFG
1579#define MYNEWT_VAL_NEWT_FEATURE_LOGCFG (1)
1580#endif
1581
1582#ifndef MYNEWT_VAL_BLE_USE_ESP_TIMER
1583#ifdef CONFIG_BT_NIMBLE_USE_ESP_TIMER
1584#define MYNEWT_VAL_BLE_USE_ESP_TIMER (1)
1585#else
1586#define MYNEWT_VAL_BLE_USE_ESP_TIMER (0)
1587#endif
1588#endif
1589
1590#ifndef MYNEWT_VAL_BLE_LL_CONN_PHY_DEFAULT_PREF_MASK
1591#define MYNEWT_VAL_BLE_LL_CONN_PHY_DEFAULT_PREF_MASK (0x07)
1592#endif
1593
1594#ifndef MYNEWT_VAL_BLE_TRANSPORT_EVT_SIZE
1595#define MYNEWT_VAL_BLE_TRANSPORT_EVT_SIZE (70)
1596#endif
1597
1598/* Value copied from BLE_ROLE_BROADCASTER */
1599#ifndef MYNEWT_VAL_BLE_LL_ROLE_BROADCASTER
1600#define MYNEWT_VAL_BLE_LL_ROLE_BROADCASTER (1)
1601#endif
1602
1603/* Value copied from BLE_ROLE_CENTRAL */
1604#ifndef MYNEWT_VAL_BLE_LL_ROLE_CENTRAL
1605#define MYNEWT_VAL_BLE_LL_ROLE_CENTRAL (1)
1606#endif
1607
1608/* Value copied from BLE_ROLE_OBSERVER */
1609#ifndef MYNEWT_VAL_BLE_LL_ROLE_OBSERVER
1610#define MYNEWT_VAL_BLE_LL_ROLE_OBSERVER (1)
1611#endif
1612
1613/* Value copied from BLE_ROLE_PERIPHERAL */
1614#ifndef MYNEWT_VAL_BLE_LL_ROLE_PERIPHERAL
1615#define MYNEWT_VAL_BLE_LL_ROLE_PERIPHERAL (1)
1616#endif
1617
1618/* Value copied from BLE_TRANSPORT_ACL_COUNT */
1619#ifndef MYNEWT_VAL_BLE_TRANSPORT_ACL_FROM_HS_COUNT
1620#define MYNEWT_VAL_BLE_TRANSPORT_ACL_FROM_HS_COUNT (10)
1621#endif
1622
1623#ifndef MYNEWT_VAL_BLE_TRANSPORT_ACL_SIZE
1624#define MYNEWT_VAL_BLE_TRANSPORT_ACL_SIZE (251)
1625#endif
1626
1627#ifndef MYNEWT_VAL_BLE_LL_NUM_COMP_PKT_ITVL_MS
1628#define MYNEWT_VAL_BLE_LL_NUM_COMP_PKT_ITVL_MS (2000)
1629#endif
1630
1631/* Value copied from BLE_LL_OUR_SCA */
1632#ifndef MYNEWT_VAL_BLE_LL_SCA
1633#define MYNEWT_VAL_BLE_LL_SCA (60)
1634#endif
1635
1636#ifndef MYNEWT_VAL_BLE_MESH_UNPROV_BEACON_INT
1637#define MYNEWT_VAL_BLE_MESH_UNPROV_BEACON_INT (5)
1638#endif
1639
1640#ifndef MYNEWT_VAL_BLE_MESH_CDB
1641#define MYNEWT_VAL_BLE_MESH_CDB (0)
1642#endif
1643
1644#ifndef MYNEWT_VAL_BLE_MESH_CDB_APP_KEY_COUNT
1645#define MYNEWT_VAL_BLE_MESH_CDB_APP_KEY_COUNT (1)
1646#endif
1647
1648#ifndef MYNEWT_VAL_BLE_MESH_CDB_NODE_COUNT
1649#define MYNEWT_VAL_BLE_MESH_CDB_NODE_COUNT (8)
1650#endif
1651
1652#ifndef MYNEWT_VAL_BLE_MESH_CDB_SUBNET_COUNT
1653#define MYNEWT_VAL_BLE_MESH_CDB_SUBNET_COUNT (1)
1654#endif
1655
1656#ifndef MYNEWT_VAL_BLE_MESH_RELAY_RETRANSMIT_COUNT
1657#define MYNEWT_VAL_BLE_MESH_RELAY_RETRANSMIT_COUNT (2)
1658#endif
1659
1660#ifndef MYNEWT_VAL_BLE_MESH_RELAY_RETRANSMIT_INTERVAL
1661#define MYNEWT_VAL_BLE_MESH_RELAY_RETRANSMIT_INTERVAL (20)
1662#endif
1663
1664#ifndef MYNEWT_VAL_BLE_MESH_BEACON_ENABLED
1665#define MYNEWT_VAL_BLE_MESH_BEACON_ENABLED (1)
1666#endif
1667
1668#ifndef MYNEWT_VAL_BLE_MESH_LOOPBACK_BUFS
1669#define MYNEWT_VAL_BLE_MESH_LOOPBACK_BUFS (3)
1670#endif
1671
1672#ifndef MYNEWT_VAL_BLE_MESH_IV_UPDATE_SEQ_LIMIT
1673#define MYNEWT_VAL_BLE_MESH_IV_UPDATE_SEQ_LIMIT (0x800000)
1674#endif
1675
1676#ifndef MYNEWT_VAL_BLE_MESH_PB_ADV_RETRANS_TIMEOUT
1677#define MYNEWT_VAL_BLE_MESH_PB_ADV_RETRANS_TIMEOUT (500)
1678#endif
1679
1680#ifndef MYNEWT_VAL_BLE_MESH_RX_SEG_MAX
1681#define MYNEWT_VAL_BLE_MESH_RX_SEG_MAX (3)
1682#endif
1683
1684#ifndef MYNEWT_VAL_BLE_MESH_TX_SEG_RETRANS_TIMEOUT_UNICAST
1685#define MYNEWT_VAL_BLE_MESH_TX_SEG_RETRANS_TIMEOUT_UNICAST (400)
1686#endif
1687
1688#ifndef MYNEWT_VAL_BLE_MESH_TX_SEG_RETRANS_TIMEOUT_GROUP
1689#define MYNEWT_VAL_BLE_MESH_TX_SEG_RETRANS_TIMEOUT_GROUP (50)
1690#endif
1691
1692/* Value copied from BLE_TRANSPORT_ACL_COUNT */
1693#ifndef MYNEWT_VAL_BLE_TRANSPORT_ACL_FROM_LL_COUNT
1694#define MYNEWT_VAL_BLE_TRANSPORT_ACL_FROM_LL_COUNT (10)
1695#endif
1696
1697#ifndef MYNEWT_VAL_BLE_TRANSPORT_EVT_COUNT
1698#define MYNEWT_VAL_BLE_TRANSPORT_EVT_COUNT (4)
1699#endif
1700
1701#ifndef MYNEWT_VAL_BLE_TRANSPORT_EVT_DISCARDABLE_COUNT
1702#define MYNEWT_VAL_BLE_TRANSPORT_EVT_DISCARDABLE_COUNT (16)
1703#endif
1704
1705#ifndef MYNEWT_VAL_BLE_TRANSPORT_LL__native
1706#define MYNEWT_VAL_BLE_TRANSPORT_LL__native (0)
1707#endif
1708
1709#ifndef MYNEWT_VAL_BLE_TRANSPORT_LL
1710#define MYNEWT_VAL_BLE_TRANSPORT_LL (1)
1711#endif
1712
1713#ifndef MYNEWT_VAL_BLE_TRANSPORT_HS__native
1714#define MYNEWT_VAL_BLE_TRANSPORT_HS__native (1)
1715#endif
1716
1717#ifndef MYNEWT_VAL_BLE_TRANSPORT_HS
1718#define MYNEWT_VAL_BLE_TRANSPORT_HS (1)
1719#endif
1720
1721#endif