mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
examples/suit_update: allow the use of large MTUs
Transfer time is reduced significantly if we can use fewer frames with large MTUs.
This commit is contained in:
parent
44fa20dcc0
commit
737578a7bf
@ -98,11 +98,17 @@ TEST_ON_CI_BLACKLIST = all
|
|||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|
||||||
|
# allow to use large blocks to utilize large MTUs (802.15.4g, Ethernet, WiFi)
|
||||||
|
LARGE_BLOCKS ?= 0
|
||||||
|
ifeq (1, $(LARGE_BLOCKS))
|
||||||
|
CFLAGS += -DCONFIG_SUIT_COAP_BLOCKSIZE=COAP_BLOCKSIZE_1024
|
||||||
|
else
|
||||||
# lower pktbuf size to something sufficient for this application
|
# lower pktbuf size to something sufficient for this application
|
||||||
# Set GNRC_PKTBUF_SIZE via CFLAGS if not being set via Kconfig.
|
# Set GNRC_PKTBUF_SIZE via CFLAGS if not being set via Kconfig.
|
||||||
ifndef CONFIG_GNRC_PKTBUF_SIZE
|
ifndef CONFIG_GNRC_PKTBUF_SIZE
|
||||||
CFLAGS += -DCONFIG_GNRC_PKTBUF_SIZE=2000
|
CFLAGS += -DCONFIG_GNRC_PKTBUF_SIZE=2000
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
.PHONY: host-tools
|
.PHONY: host-tools
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user