Microchip® Advanced Software Framework

lwip_setup.c File Reference
#include <compiler.h>
#include <board.h>
#include <lwip/init.h>
#include <lwip/dhcp.h>
#include <lwip/tcp_impl.h>
#include <ipv4/lwip/ip_frag.h>
#include <netif/etharp.h>
#include <netif/wlif.h>
#include <ports/avr32/timer.h>
#include <util/trace.h>
#include "lwip_setup.h"

Functions

static void dhcp_coarse_tmr_cb (void *ctx)
 
static void dhcp_fine_tmr_cb (void *ctx)
 
static void etharp_tmr_cb (void *ctx)
 
static void ip_tmr_cb (void *ctx)
 
int start_ip_stack (struct net_cfg *cfg, struct ip_addr ipaddr, struct ip_addr netmask, struct ip_addr gw)
 
static void tcp_tmr_cb (void *ctx)
 

static void dhcp_coarse_tmr_cb ( void *  ctx)
static

Referenced by start_ip_stack().

static void dhcp_fine_tmr_cb ( void *  ctx)
static

Referenced by start_ip_stack().

static void etharp_tmr_cb ( void *  ctx)
static

Referenced by start_ip_stack().

static void ip_tmr_cb ( void *  ctx)
static

Referenced by start_ip_stack().

int start_ip_stack ( struct net_cfg cfg,
struct ip_addr  ipaddr,
struct ip_addr  netmask,
struct ip_addr  gw 
)

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).

References ASSERT, dhcp_coarse_tmr_cb(), net_cfg::dhcp_enabled, dhcp_fine_tmr_cb(), etharp_tmr_cb(), ip_tmr_cb(), net_cfg::netif, netif_add(), netif_set_default(), NULL, tcp_tmr_cb(), TIMEOUT_PERIODIC, timer_sched_timeout_cb(), and wlif_init().

Referenced by wl_init_complete_cb().

static void tcp_tmr_cb ( void *  ctx)
static

Referenced by start_ip_stack().