Prusa MINI Firmware overview
ethernetif.h
Go to the documentation of this file.
1 /**
2  ******************************************************************************
3  * File Name : ethernetif.h
4  * Description : This file provides initialization code for LWIP
5  * middleWare.
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 #ifndef __ETHERNETIF_H__
51  #define __ETHERNETIF_H__
52 
53  #include "lwip/err.h"
54  #include "lwip/netif.h"
55  #include "cmsis_os.h"
56 
57 /* Within 'USER CODE' section, code will be kept by default at each generation */
58 /* USER CODE BEGIN 0 */
59 
60 /* USER CODE END 0 */
61 
62 /* Exported functions ------------------------------------------------------- */
64 
65 void ethernetif_input(void const *argument);
68 
69 u32_t sys_jiffies(void);
70 u32_t sys_now(void);
71 
72 /* USER CODE BEGIN 1 */
73 
74 /* USER CODE END 1 */
75 #endif
76 
77 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
ethernetif_init
err_t ethernetif_init(struct netif *netif)
Definition: ethernetif.c:560
ethernetif_update_config
void ethernetif_update_config(struct netif *netif)
ethernetif_notify_conn_changed
void ethernetif_notify_conn_changed(struct netif *netif)
sys_jiffies
u32_t sys_jiffies(void)
Returns the current time in milliseconds when LWIP_TIMERS == 1 and NO_SYS == 1.
Definition: ethernetif.c:606
u32_t
uint32_t u32_t
Definition: arch.h:123
netif.h
err.h
sys_now
u32_t sys_now(void)
Returns the current time in milliseconds when LWIP_TIMERS == 1 and NO_SYS == 1.
Definition: ethernetif.c:616
netif
Definition: netif.h:225
err_t
s8_t err_t
Definition: err.h:57
ethernetif_input
void ethernetif_input(void const *argument)
Definition: ethernetif.c:511
cmsis_os.h
Header of cmsis_os.c A new set of APIs are added in addition to existing ones, these APIs are specifi...