#pragma once #define FREERTOS_IP_CONFIG_H extern void vLoggingPrintf(const char *pcFormatString, ...); #define ipconfigHAS_DEBUG_PRINTF 0 #if (ipconfigHAS_DEBUG_PRINTF == 1) #define FreeRTOS_debug_printf(X) vLoggingPrintf X #endif #define ipconfigHAS_PRINTF 0 #if (ipconfigHAS_PRINTF == 1) #define FreeRTOS_printf(X) vLoggingPrintf X #endif #define ipconfigBYTE_ORDER pdFREERTOS_LITTLE_ENDIAN #define ipconfigDRIVER_INCLUDED_RX_IP_CHECKSUM 1 #define ipconfigSOCK_DEFAULT_RECEIVE_BLOCK_TIME (2000) #define ipconfigSOCK_DEFAULT_SEND_BLOCK_TIME (5000) #define ipconfigUSE_LLMNR (0) #define ipconfigUSE_NBNS (0) #define ipconfigUSE_DNS_CACHE (0) #define ipconfigDNS_CACHE_NAME_LENGTH (32) #define ipconfigDNS_CACHE_ENTRIES (4) #define ipconfigDNS_REQUEST_ATTEMPTS (2) #define ipconfigIP_TASK_PRIORITY (configMAX_PRIORITIES - 2) #define ipconfigIP_TASK_STACK_SIZE_WORDS (configMINIMAL_STACK_SIZE * 5) extern UBaseType_t uxRand(); #define ipconfigRAND32() uxRand() #define ipconfigUSE_NETWORK_EVENT_HOOK 1 #define ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS (5000 / portTICK_PERIOD_MS) #define ipconfigUSE_DHCP 0 #define ipconfigMAXIMUM_DISCOVER_TX_PERIOD (120000 / portTICK_PERIOD_MS) #define ipconfigARP_CACHE_ENTRIES 6 #define ipconfigMAX_ARP_RETRANSMISSIONS (5) #define ipconfigMAX_ARP_AGE 150 #define ipconfigINCLUDE_FULL_INET_ADDR 0 #define ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS 10 #define ipconfigEVENT_QUEUE_LENGTH (ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS + 5) #define ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND 1 #define ipconfigUDP_TIME_TO_LIVE 128 #define ipconfigTCP_TIME_TO_LIVE 128 #define ipconfigUSE_TCP (1) #define ipconfigSOCKET_HAS_USER_WAKE_CALLBACK_WITH_CONTEXT (1) #define ipconfigUSE_TCP_WIN (1) #define ipconfigNETWORK_MTU 1200 #define ipconfigUSE_DNS 0 #define ipconfigREPLY_TO_INCOMING_PINGS 0 #define ipconfigSUPPORT_OUTGOING_PINGS 0 #define ipconfigSUPPORT_SELECT_FUNCTION 1 #define ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES 1 #define ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES 1 #define configWINDOWS_MAC_INTERRUPT_SIMULATOR_DELAY (20 / portTICK_PERIOD_MS) #define ipconfigPACKET_FILLER_SIZE 2 #define ipconfigTCP_WIN_SEG_COUNT 240 #define ipconfigTCP_RX_BUFFER_LENGTH (1000) #define ipconfigTCP_TX_BUFFER_LENGTH (1000) #define ipconfigIS_VALID_PROG_ADDRESS(x) ((x) != NULL) #define ipconfigTCP_HANG_PROTECTION (0) #define ipconfigTCP_HANG_PROTECTION_TIME (30) #define ipconfigTCP_KEEP_ALIVE (0) #define ipconfigTCP_KEEP_ALIVE_INTERVAL (20) /* in seconds */ #define portINLINE __inline