2017-09-28 22:25:47 +02:00
|
|
|
include ../Makefile.tests_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
|
2016-03-22 16:41:51 +01:00
|
|
|
USEMODULE += gnrc_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
|
|
|
|
|
|
|
USEPKG += microcoap
|
|
|
|
|
|
|
|
# include this for printing IP addresses
|
|
|
|
USEMODULE += shell_commands
|
|
|
|
|
|
|
|
# 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
|
|
|
|
# lower pktbuf buffer size
|
2020-05-11 15:44:40 +02:00
|
|
|
CFLAGS += -DCONFIG_GNRC_PKTBUF_SIZE=1000
|
2017-09-22 14:52:38 +02:00
|
|
|
USEMODULE += prng_minstd
|
2015-11-16 22:45:08 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
include $(RIOTBASE)/Makefile.include
|