MCUXpresso_MIMXRT1052xxxxB/middleware/lwip/port/kinetis_configchecks.h
Yilin Sun 6baf4427ce
Updated to v2.15.000
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-03-18 23:15:10 +08:00

29 lines
1.1 KiB
C

/*
* Copyright 2022-2023 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "lwip/opt.h"
#if !(CHECKSUM_GEN_IP == CHECKSUM_GEN_UDP && CHECKSUM_GEN_UDP == CHECKSUM_GEN_TCP && \
CHECKSUM_GEN_TCP == CHECKSUM_GEN_ICMP && CHECKSUM_GEN_ICMP == CHECKSUM_CHECK_IP && \
CHECKSUM_CHECK_IP == CHECKSUM_CHECK_UDP && CHECKSUM_CHECK_UDP == CHECKSUM_CHECK_TCP && \
CHECKSUM_CHECK_TCP == CHECKSUM_CHECK_ICMP)
#error \
"All CHECKSUM_*_* preprocessor symbols (except for ICMPv6) must be set to the same value (all hardware-assisted checksum features either turned on or off)."
#endif
#if ((CHECKSUM_GEN_ICMP6 != 1) || (CHECKSUM_CHECK_ICMP6 != 1))
#error \
"CHECKSUM_GEN_ICMP6 and CHECKSUM_CHECK_ICMP6 must be set to 1 because ENET peripheral HW does not generate or validate this type of checksum."
#endif
#ifdef IP_REASSEMBLY
#if IP_REASSEMBLY == 1 && IP_REASS_MAX_PBUFS >= (ENET_RXBUFF_NUM - ENET_RXBD_NUM)
#error \
"IP_REASS_MAX_PBUFS is equal to or higher than (ENET_RXBUFF_NUM - ENET_RXBD_NUM). This can cause congestion when dealing with fragmented packets."
#endif
#endif