• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
3  *
4  * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
5  * You may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at:
7  *
8  *        http://www.st.com/software_license_agreement_liberty_v2
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef _LWIP_COMM_H
18 #define _LWIP_COMM_H
19 
20 #include "lan8720.h"
21 
22 #define LWIP_MAX_DHCP_TRIES		4
23 
24 typedef struct lwipDev {
25 	u8 mac[6];
26 	u8 remoteip[4];
27 	u8 ip[4];
28 	u8 netmask[4];
29 	u8 gateway[4];
30 };
31 
32 extern struct lwipDev lwipdev;
33 extern struct netif lwip_netif;
34 
35 void LwipPktHandle(void);
36 void LwipDefaultIpSet(struct lwipDev *lwipx);
37 u8 LwipInit(void);
38 
39 #endif
40