Prusa MINI Firmware overview
lwip.h
Go to the documentation of this file.
1 /**
2  ******************************************************************************
3  * File Name : LWIP.h
4  * Description : This file provides code for the configuration
5  * of the LWIP.
6  ******************************************************************************
7  * This notice applies to any and all portions of this file
8  * that are not between comment pairs USER CODE BEGIN and
9  * USER CODE END. Other portions of this file, whether
10  * inserted by the user or by software development tools
11  * are owned by their respective copyright owners.
12  *
13  * Copyright (c) 2019 STMicroelectronics International N.V.
14  * All rights reserved.
15  *
16  * Redistribution and use in source and binary forms, with or without
17  * modification, are permitted, provided that the following conditions are met:
18  *
19  * 1. Redistribution of source code must retain the above copyright notice,
20  * this list of conditions and the following disclaimer.
21  * 2. Redistributions in binary form must reproduce the above copyright notice,
22  * this list of conditions and the following disclaimer in the documentation
23  * and/or other materials provided with the distribution.
24  * 3. Neither the name of STMicroelectronics nor the names of other
25  * contributors to this software may be used to endorse or promote products
26  * derived from this software without specific written permission.
27  * 4. This software, including modifications and/or derivative works of this
28  * software, must execute solely and exclusively on microcontroller or
29  * microprocessor devices manufactured by or for STMicroelectronics.
30  * 5. Redistribution and use of this software other than as permitted under
31  * this license is void and will automatically terminate your rights under
32  * this license.
33  *
34  * THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS"
35  * AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT
36  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
37  * PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY
38  * RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT
39  * SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
40  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
41  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
42  * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
43  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
44  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
45  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
46  *
47  *************************************************************************
48 
49  */
50 /* Define to prevent recursive inclusion -------------------------------------*/
51 #ifndef __mx_lwip_H
52  #define __mx_lwip_H
53  #ifdef __cplusplus
54 extern "C" {
55  #endif
56 
57  /* Includes ------------------------------------------------------------------*/
58  #include "lwip/opt.h"
59  #include "lwip/mem.h"
60  #include "lwip/memp.h"
61  #include "netif/etharp.h"
62  #include "lwip/dhcp.h"
63  #include "lwip/netif.h"
64  #include "lwip/timeouts.h"
65  #include "ethernetif.h"
66 
67  /* Includes for RTOS ---------------------------------------------------------*/
68  #if WITH_RTOS
69  #include "lwip/tcpip.h"
70  #endif /* WITH_RTOS */
71 
72  /* USER CODE BEGIN 0 */
73  #include "stm32f4xx_hal.h"
74 
75 extern struct netif eth0;
76 /* USER CODE END 0 */
77 
78 /* Global Variables ----------------------------------------------------------*/
79 extern ETH_HandleTypeDef heth;
80 
81 /* LWIP init function */
82 void MX_LWIP_Init(void);
83 
84  #if !WITH_RTOS
85 /* USER CODE BEGIN 1 */
86 /* Function defined in lwip.c to:
87  * - Read a received packet from the Ethernet buffers
88  * - Send it to the lwIP stack for handling
89  * - Handle timeouts if NO_SYS_NO_TIMERS not set
90  */
91 void MX_LWIP_Process(void);
92 
93  /* USER CODE END 1 */
94  #endif /* WITH_RTOS */
95 
96  #ifdef __cplusplus
97 }
98  #endif
99 #endif /*__ mx_lwip_H */
100 
101 /**
102  * @}
103  */
104 
105 /**
106  * @}
107  */
108 
109 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
opt.h
tcpip.h
heth
ETH_HandleTypeDef heth
Definition: ethernetif.c:108
netif.h
etharp.h
MX_LWIP_Process
void MX_LWIP_Process(void)
netif
Definition: netif.h:225
dhcp.h
MX_LWIP_Init
void MX_LWIP_Init(void)
Definition: lwip.c:95
ethernetif.h
stm32f4xx_hal.h
This file contains all the functions prototypes for the HAL module driver.
memp.h
eth0
struct netif eth0
Definition: lwip.c:72
mem.h
timeouts.h