2019-08-05 14:39:45 +02:00
|
|
|
# For nRF51-based targets, we need to reduce buffer sizes to make this test fit
|
|
|
|
# into RAM
|
|
|
|
# Note: as the CPU variable is not set at this point, we manually 'whitelist'
|
|
|
|
# all supported nrf51-boards here
|
|
|
|
BOARDS_NRF51 := airfy-beacon calliope-mini microbit nrf51dk nrf51dongle \
|
|
|
|
nrf6310 yunjia-nrf51822
|
|
|
|
ifneq (,$(filter $(BOARDS_NRF51),$(BOARD)))
|
|
|
|
APP_MTU ?= 250
|
|
|
|
MSYS_CNT ?= 6
|
|
|
|
endif
|
|
|
|
|
2019-03-21 18:28:26 +01:00
|
|
|
# Set the tests default configuration
|
|
|
|
APP_MTU ?= 5000
|
|
|
|
APP_BUF_CHUNKSIZE ?= 250 # must be full divider of APP_MTU
|
|
|
|
APP_BUF_NUM ?= 3
|
|
|
|
APP_NODENAME ?= \"nimble_l2cap_test_server\"
|
|
|
|
APP_CID ?= 0x0235
|
|
|
|
|
|
|
|
# Apply configuration values
|
|
|
|
CFLAGS += -DAPP_MTU=$(APP_MTU)
|
|
|
|
CFLAGS += -DAPP_BUF_CHUNKSIZE=$(APP_BUF_CHUNKSIZE)
|
|
|
|
CFLAGS += -DAPP_BUF_NUM=$(APP_BUF_NUM)
|
|
|
|
CFLAGS += -DAPP_NODENAME=$(APP_NODENAME)
|
|
|
|
CFLAGS += -DAPP_CID=$(APP_CID)
|
|
|
|
|
|
|
|
# configure NimBLE
|
|
|
|
USEPKG += nimble
|
2020-07-07 13:09:42 +02:00
|
|
|
MSYS_CNT ?= 40
|
2019-03-21 18:28:26 +01:00
|
|
|
CFLAGS += -DMYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM=1
|
2019-04-29 16:15:55 +02:00
|
|
|
CFLAGS += -DMYNEWT_VAL_BLE_L2CAP_COC_MPS=250
|
2019-03-21 18:28:26 +01:00
|
|
|
CFLAGS += -DMYNEWT_VAL_BLE_MAX_CONNECTIONS=1
|
2019-08-05 14:39:45 +02:00
|
|
|
CFLAGS += -DMYNEWT_VAL_MSYS_1_BLOCK_COUNT=$(MSYS_CNT)
|
2019-08-01 14:59:06 +02:00
|
|
|
CFLAGS += -DMYNEWT_VAL_MSYS_1_BLOCK_SIZE=298
|
|
|
|
CFLAGS += -DMYNEWT_VAL_BLE_LL_CFG_FEAT_DATA_LEN_EXT=1
|
2019-03-21 18:28:26 +01:00
|
|
|
|
|
|
|
INCLUDES += -I$(RIOTBASE)/tests/nimble_l2cap_server/include
|