Microchip® Advanced Software Framework

thirdparty/lwip/raw_http_basic_example_ajax/main.c File Reference

lwIP Raw HTTP basic example.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include "board.h"
#include "system.h"
#include "usart.h"
#include "stdio_serial.h"
#include "delay.h"
#include "ethernet.h"
#include "httpd.h"
#include <asf.h>

Macros

#define STRING_EOL   "\r"
 
#define STRING_HEADER
 

Functions

int main (void)
 Main program function. More...
 
static void setup_usart_channel (void)
 Set up the USART (EDBG) communication for debug purpose. More...
 

Variables

static struct usart_module usart_instance
 Software instance of the USART upon which to transmit the results. More...
 

#define STRING_EOL   "\r"
#define STRING_HEADER
Value:
"-- Raw HTTP Basic Example --\r\n" \
"-- "BOARD_NAME" --\r\n" \
"-- Compiled: "__DATE__" "__TIME__" --"STRING_EOL
#define BOARD_NAME
Definition: app_init.h:140
#define STRING_EOL
Definition: thirdparty/lwip/raw_http_basic_example_ajax/main.c:94

Referenced by main().

int main ( void  )

Main program function.

Configure the hardware, initialize lwIP TCP/IP stack, and start HTTP service.

References delay_init(), ethernet_task(), httpd_init(), init_ethernet(), setup_usart_channel(), STRING_HEADER, and system_init().

static void setup_usart_channel ( void  )
static

struct usart_module usart_instance
static

Software instance of the USART upon which to transmit the results.