Microchip® Advanced Software Framework

raw_http_basic_example.c File Reference

lwIP Raw HTTP basic example.

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

#include "sysclk.h"
#include "ioport.h"
#include "stdio_serial.h"
#include "ethernet.h"
#include "httpd.h"

Macros

#define STRING_EOL   "\r\n"
 
#define STRING_HEADER
 

Functions

static void configure_console (void)
 Configure UART console. More...
 
int main (void)
 Main program function. More...
 

#define STRING_EOL   "\r\n"
#define STRING_HEADER
Value:
"-- Raw HTTP Basic Example --"STRING_EOL \
"-- Compiled: "__DATE__" "__TIME__" --"STRING_EOL
#define BOARD_NAME
Definition: fatfs_access_example.c:112
#define STRING_EOL
Definition: raw_http_basic_example.c:90

Referenced by main().

static void configure_console ( void  )
static

Configure UART console.

References uart_rs232_options::baudrate, NULL, stdio_serial_init(), and sysclk_enable_peripheral_clock().

Referenced by main().

int main ( void  )

Main program function.

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

References board_init(), configure_console(), ethernet_task(), httpd_init(), init_ethernet(), STRING_HEADER, and sysclk_init().