source: arduino-1-6-7/trunk/fuentes/arduino-ide-amd64/hardware/arduino/avr/firmwares/wifishield/wifiHD/src/lwip_setup.h @ 46

Last change on this file since 46 was 46, checked in by jrpelegrina, 4 years ago

First release to Xenial

File size: 765 bytes
Line 
1#ifndef _LWIP_SETUP_H
2#define _LWIP_SETUP_H
3
4#define INIT_IP_CONFIG          0xff
5#define STATIC_IP_CONFIG        0
6#define DYNAMIC_IP_CONFIG       1
7
8struct net_cfg {
9        struct netif *netif; /* lwip network interface */
10        uint8_t dhcp_enabled;
11        uint8_t dhcp_running;
12};
13
14struct ctx_server {
15        struct net_cfg net_cfg;
16        uint8_t wl_init_complete;
17};
18
19/*! Start the IP stack.
20 * If cfg->netif must have been allocated and lwip_init()
21 * must have been called before this function is called
22 * (since the IP stack may have to be polled before this
23 * function can be called).
24 */
25int start_ip_stack(struct net_cfg *cfg,
26                   struct ip_addr ipaddr, 
27                   struct ip_addr netmask,
28                   struct ip_addr gw);
29
30#endif /* _LWIP_SETUP_H */
Note: See TracBrowser for help on using the repository browser.