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 |
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 |
Set up the USART (EDBG) communication for debug purpose.
References usart_config::baudrate, usart_config::mux_setting, usart_config::pinmux_pad0, usart_config::pinmux_pad1, usart_config::pinmux_pad2, usart_config::pinmux_pad3, usart_enable(), usart_get_config_defaults(), and usart_instance.
Referenced by main().
|
static |
Software instance of the USART upon which to transmit the results.