Microchip® Advanced Software Framework

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
Name string macro.
Definition: samd21_xplained_pro.h:65
#define STRING_EOL
Definition: 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().

struct usart_module usart_instance
static

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

Referenced by setup_usart_channel().