Atmel Software Framework

thirdparty/hd/example/http_server/main.c File Reference

HTTP Server WiFi Demo Application.

This file provides a an example application for the H&D Wireless AB WiFi driver.

  • SPB104 + EVK1104 (SDIO)
  • SPB104 + EVK1105 (SPI)
  • SPB104 + EVK1104 (SPI + irq)
  • SPB105 + EVK1105 (SPI)
  • SPB104 + EVK1100
  • SPB104 + EVK1101
#include <compiler.h>
#include "board.h"
#include "gpio.h"
#include "adc.h"
#include <stdint.h>
#include <wl_api.h>
#include <wl/wl_cm.h>
#include "lwip/init.h"
#include "lwip/dhcp.h"
#include "lwip/tcp.h"
#include "netif/etharp.h"
#include "netif/wlif.h"
#include <ports/avr32/board_init.h>
#include <util/trace.h>
#include <wl/fw_download.h>
#include <ports/avr32/timer.h>
#include <util/util.h>
#include <wl/cmd_wl.h>
#include <net/httpd.h>
#include <net/ping.h>
#include <net/ttcp.h>
#include <ports/avr32/gui.h>
#include <net/lwip_setup.h>
#include "http_server_gui.h"
#include "fsdata_app.h"

Data Structures

struct  http_server
 

Macros

#define WL_CARD_FAILURE_STR   "Could not detect wl device, aborting\n"
 
#define WL_FIRMWARE_INVALID_STR   "Invalid firmware data, aborting\n"
 
#define WL_OTHER_FAILURE_STR   "Failed to start wl initialization\n"
 

Functions

void adc_init (void)
 
static void ip_status_cb (struct netif *netif)
 
void led_init (void)
 
int main (void)
 
void poll (struct http_server *hs)
 
static void wl_cm_conn_cb (struct wl_network_t *net, void *ctx)
 
static void wl_cm_disconn_cb (void *ctx)
 
void wl_init_complete_cb (void *ctx)
 

#define WL_CARD_FAILURE_STR   "Could not detect wl device, aborting\n"

Referenced by main().

#define WL_FIRMWARE_INVALID_STR   "Invalid firmware data, aborting\n"

Referenced by main().

#define WL_OTHER_FAILURE_STR   "Failed to start wl initialization\n"

Referenced by main().

void adc_init ( void  )
static void ip_status_cb ( struct netif netif)
static
void led_init ( void  )

Referenced by wl_init_complete_cb().

static void wl_cm_conn_cb ( struct wl_network_t *  net,
void *  ctx 
)
static
static void wl_cm_disconn_cb ( void *  ctx)
static