Merge pull request #5229 from OlegHahm/pktbuf_minimal_check

netdev ethernet: deal with too small packet buffer
pr/spi.typo
Martine Lenders 7 years ago
commit c24e91d4df

@ -55,6 +55,11 @@ extern "C" {
*/
#define NATIVE_ETH_PROTO 0x1234
#if (defined(GNRC_PKTBUF_SIZE)) && (GNRC_PKTBUF_SIZE < 2048)
# undef GNRC_PKTBUF_SIZE
# define GNRC_PKTBUF_SIZE (2048)
#endif
#ifdef __cplusplus
}
#endif

@ -21,15 +21,7 @@ USEMODULE += gnrc_icmpv6_echo
# Use minimal standard PRNG
USEMODULE += prng_minstd
CFLAGS += -DGNRC_IPV6_NETIF_ADDR_NUMOF=4
# Reduce sizes for GNRC's packet buffer and neighbor cache
# (for native we need a bigger buffer, because the tap driver temporarily
# allocates ~1500 bytes)
ifneq (,$(filter native,$(BOARD)))
CFLAGS += -DGNRC_PKTBUF_SIZE=2048 -DGNRC_IPV6_NC_SIZE=1
else
CFLAGS += -DGNRC_PKTBUF_SIZE=512 -DGNRC_IPV6_NC_SIZE=0
endif
CFLAGS += -DGNRC_PKTBUF_SIZE=512 -DGNRC_IPV6_NETIF_ADDR_NUMOF=4 -DGNRC_IPV6_NC_SIZE=1
# Change this to 0 show compiler invocation lines by default:
QUIET ?= 1

Loading…
Cancel
Save