2023-05-05 10:09:15 +02:00
|
|
|
include ../Makefile.pkg_common
|
2015-11-16 22:45:08 +01:00
|
|
|
|
|
|
|
# Include packages that pull up and auto-init the link layer.
|
|
|
|
# NOTE: 6LoWPAN will be included if IEEE802.15.4 devices are present
|
2021-08-31 10:54:48 +02:00
|
|
|
USEMODULE += netdev_default
|
2015-11-16 22:45:08 +01:00
|
|
|
USEMODULE += auto_init_gnrc_netif
|
2020-08-31 15:20:08 +02:00
|
|
|
# Specify the mandatory networking modules for IPv6
|
2016-10-27 13:03:12 +02:00
|
|
|
USEMODULE += gnrc_ipv6_default
|
2015-11-16 22:45:08 +01:00
|
|
|
# Additional networking modules that can be dropped if not needed
|
|
|
|
USEMODULE += gnrc_icmpv6_echo
|
|
|
|
|
2020-08-31 15:20:08 +02:00
|
|
|
USEMODULE += sock_udp
|
2015-11-16 22:45:08 +01:00
|
|
|
|
2021-12-13 22:31:08 +01:00
|
|
|
USEMODULE += xtimer
|
|
|
|
|
2015-11-16 22:45:08 +01:00
|
|
|
USEPKG += microcoap
|
|
|
|
|
|
|
|
# Use different settings when compiling for one of the following (low-memory)
|
|
|
|
# boards
|
2018-02-27 14:31:53 +01:00
|
|
|
LOW_MEMORY_BOARDS := nucleo-f334r8
|
2015-11-16 22:45:08 +01:00
|
|
|
|
|
|
|
ifneq (,$(filter $(BOARD),$(LOW_MEMORY_BOARDS)))
|
2017-09-22 14:52:38 +02:00
|
|
|
$(info Using low-memory configuration for microcoap_server.)
|
|
|
|
## low-memory tuning values
|
|
|
|
USEMODULE += prng_minstd
|
2015-11-16 22:45:08 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|
2020-10-16 10:37:52 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter $(BOARD),$(LOW_MEMORY_BOARDS)))
|
|
|
|
# lower pktbuf buffer size
|
|
|
|
# Set GNRC_PKTBUF_SIZE via CFLAGS if not being set via Kconfig.
|
|
|
|
ifndef CONFIG_GNRC_PKTBUF_SIZE
|
|
|
|
CFLAGS += -DCONFIG_GNRC_PKTBUF_SIZE=1000
|
|
|
|
endif
|
|
|
|
endif
|