mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +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
|
||||
|
||||
# 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
|
||||
# Set GNRC_PKTBUF_SIZE via CFLAGS if not being set via Kconfig.
|
||||
ifndef CONFIG_GNRC_PKTBUF_SIZE
|
||||
CFLAGS += -DCONFIG_GNRC_PKTBUF_SIZE=2000
|
||||
endif
|
||||
endif
|
||||
|
||||
.PHONY: host-tools
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user