1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

Merge pull request #14236 from haukepetersen/opt_nimble_hostpriowhenunsingnetif

pkg/nimble/netif: set host thread prio to 1
This commit is contained in:
Martine Lenders 2020-06-12 17:27:35 +02:00 committed by GitHub
commit d059715448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,6 +82,12 @@ endif
ifneq (,$(filter nimble_netif,$(USEMODULE)))
INCLUDES += -I$(RIOTPKG)/nimble/netif/include
# when using IP, the host should have a higher prio than the netif thread, but
# MUST always have a lower priority then the controller thread. Setting it to
# controller prio plus will guarantee the latter while also matching the first
# condition as long as the default netif prio is not changed.
CFLAGS += -DNIMBLE_HOST_PRIO="(NIMBLE_CONTROLLER_PRIO + 1)"
# configure NimBLE's internals
NIMBLE_MAX_CONN ?= 3
CFLAGS += -DMYNEWT_VAL_MSYS_1_BLOCK_SIZE=264