1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/nimble: optimize HCI config to save RAM

This commit is contained in:
Hauke Petersen 2022-06-07 09:24:00 +02:00
parent 3c72239dc4
commit 930a880896

View File

@ -94,6 +94,8 @@ ifneq (,$(filter nimble_autoconn,$(USEMODULE)))
endif
ifneq (,$(filter nimble_adv_ext,$(USEMODULE)))
# extended advertising HCI events can be up to 257 bytes
CFLAGS += -DMYNEWT_VAL_BLE_TRANSPORT_EVT_SIZE=257
CFLAGS += -DMYNEWT_VAL_BLE_EXT_ADV=1
CFLAGS += -DMYNEWT_VAL_BLE_LL_EXT_ADV_AUX_PTR_CNT=2
CFLAGS += -DMYNEWT_VAL_BLE_LL_SCAN_AUX_SEGMENT_CNT=1
@ -110,6 +112,10 @@ ifneq (,$(filter nimble_adv_ext,$(USEMODULE)))
ifneq (-1,$(BLE_MULTI_ADV_INSTANCES))
CFLAGS += -DMYNEWT_VAL_BLE_MULTI_ADV_INSTANCES=$(BLE_MULTI_ADV_INSTANCES)
endif
else
# when only using non-extended advertisements the maximum HCI event size is
# 45 bytes
CFLAGS += -DMYNEWT_VAL_BLE_TRANSPORT_EVT_SIZE=45
endif
ifneq (,$(filter nimble_netif,$(USEMODULE)))