/** ****************************************************************************** * File Name : LWIP.h * Description : This file provides code for the configuration * of the LWIP. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ************************************************************************* */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __mx_lwip_H #define __mx_lwip_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "lwip/opt.h" #include "lwip/mem.h" #include "lwip/memp.h" #include "netif/etharp.h" #include "lwip/dhcp.h" #include "lwip/netif.h" #include "lwip/timeouts.h" #include "ethernetif.h" /* Includes for RTOS ---------------------------------------------------------*/ #if WITH_RTOS #include "lwip/tcpip.h" #endif /* WITH_RTOS */ /* USER CODE BEGIN 0 */ /* DHCP process states */ #define DHCP_OFF (uint8_t) 0 #define DHCP_START (uint8_t) 1 #define DHCP_WAIT_ADDRESS (uint8_t) 2 #define DHCP_ADDRESS_ASSIGNED (uint8_t) 3 #define DHCP_TIMEOUT (uint8_t) 4 #define DHCP_LINK_DOWN (uint8_t) 5 /*Static IP ADDRESS*/ #define IP_ADDR0 192 #define IP_ADDR1 168 #define IP_ADDR2 0 #define IP_ADDR3 10 /*NETMASK*/ #define NETMASK_ADDR0 255 #define NETMASK_ADDR1 255 #define NETMASK_ADDR2 255 #define NETMASK_ADDR3 0 /*Gateway Address*/ #define GW_ADDR0 192 #define GW_ADDR1 168 #define GW_ADDR2 0 #define GW_ADDR3 1 /* USER CODE END 0 */ /* Global Variables ----------------------------------------------------------*/ extern ETH_HandleTypeDef heth; /* LWIP init function */ void MX_LWIP_Init(void); #if !WITH_RTOS /* USER CODE BEGIN 1 */ /* Function defined in lwip.c to: * - Read a received packet from the Ethernet buffers * - Send it to the lwIP stack for handling * - Handle timeouts if NO_SYS_NO_TIMERS not set */ void MX_LWIP_Process(void); /* USER CODE END 1 */ #endif /* WITH_RTOS */ #ifdef __cplusplus } #endif #endif /*__ mx_lwip_H */ /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/