weatherstation/firmware/libraries/WiFi/extras/wifiHD/src/lwip_setup.h
Aaron Fischer f24858d162 Move all dependencies to the repository
This step seems bold, but is saves us so much hassle. Even better, we have a
reliable codebase, with all the dependencies (and their versions) we
need in order to build the project. If a library got an update, we can
replace it inplace if the code is still compatible.
2019-02-03 16:15:00 +01:00

31 lines
765 B
C

#ifndef _LWIP_SETUP_H
#define _LWIP_SETUP_H
#define INIT_IP_CONFIG 0xff
#define STATIC_IP_CONFIG 0
#define DYNAMIC_IP_CONFIG 1
struct net_cfg {
struct netif *netif; /* lwip network interface */
uint8_t dhcp_enabled;
uint8_t dhcp_running;
};
struct ctx_server {
struct net_cfg net_cfg;
uint8_t wl_init_complete;
};
/*! Start the IP stack.
* If cfg->netif must have been allocated and lwip_init()
* must have been called before this function is called
* (since the IP stack may have to be polled before this
* function can be called).
*/
int start_ip_stack(struct net_cfg *cfg,
struct ip_addr ipaddr,
struct ip_addr netmask,
struct ip_addr gw);
#endif /* _LWIP_SETUP_H */