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().
Set up the USART (EDBG) communication for debug purpose.
References usart_config::baudrate, EDBG_CDC_MODULE, EDBG_CDC_SERCOM_MUX_SETTING, EDBG_CDC_SERCOM_PINMUX_PAD0, EDBG_CDC_SERCOM_PINMUX_PAD1, EDBG_CDC_SERCOM_PINMUX_PAD2, EDBG_CDC_SERCOM_PINMUX_PAD3, 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.
Referenced by setup_usart_channel().