/* * Copyright 2020,2022 NXP * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef NX_USER_H #define NX_USER_H /* Refer to nx_user_sample.h for more information. */ /* The driver enables the checksum offload feature. Therefore * the following symbols must be defined. */ #define NX_PACKET_ALIGNMENT 32 #define NX_DISABLE_ICMPV4_RX_CHECKSUM #define NX_DISABLE_ICMPV4_TX_CHECKSUM #define NX_DISABLE_IP_RX_CHECKSUM #define NX_DISABLE_IP_TX_CHECKSUM #define NX_DISABLE_TCP_RX_CHECKSUM #define NX_DISABLE_TCP_TX_CHECKSUM #define NX_DISABLE_UDP_RX_CHECKSUM #define NX_DISABLE_UDP_TX_CHECKSUM #define NX_DISABLE_ERROR_CHECKING #define NX_TCP_ACK_EVERY_N_PACKETS 2 #define NX_DISABLE_RX_SIZE_CHECKING #define NX_DISABLE_ARP_INFO #define NX_DISABLE_IP_INFO //#define NX_DISABLE_ICMP_INFO #define NX_DISABLE_IGMPV2 #define NX_DISABLE_IGMP_INFO #define NX_DISABLE_PACKET_INFO #define NX_DISABLE_RARP_INFO #define NX_DISABLE_TCP_INFO #define NX_DISABLE_UDP_INFO #define NX_DISABLE_EXTENDED_NOTIFY_SUPPORT #define NX_DISABLE_INCLUDE_SOURCE_CODE /* config for DNS */ #define NX_DNS_CLIENT_USER_CREATE_PACKET_POOL #define NX_DNS_CLIENT_CLEAR_QUEUE /* config for MQTT */ #define NXD_MQTT_REQUIRE_TLS /* NXD for MQTT non-blocking. */ #define NX_ENABLE_EXTENDED_NOTIFY_SUPPORT /* MQTT */ #define NXD_MQTT_CLOUD_ENABLE #define NXD_MQTT_PING_TIMEOUT_DELAY 500 #define NXD_MQTT_SOCKET_TIMEOUT 0 /* Secure */ #define NX_SECURE_ENABLE #define NX_SECURE_TLS_DISABLE_TLS_1_1 #define NX_ENABLE_IP_PACKET_FILTER #endif /* NX_USER_H */