LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lwip_fs.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "board.h"
#include "ff.h"
#include "fs_mem.h"
#include "lwip_fs.h"
#include "lpc43xx_dualcore_config.h"
#include "httpd_structs.h"

Go to the source code of this file.

Data Structures

struct  file_ds
 

Function Documentation

static int get_http_headers ( const char *  fName,
char *  buff 
)
static

Generate the relevant HTTP headers for the given filename and write them into the supplied buffer.

Definition at line 169 of file lwip_fs.c.

static int mutex_init ( void  )
static

Definition at line 152 of file lwip_fs.c.

static int mutex_lock ( int *  mx)
static

Definition at line 146 of file lwip_fs.c.

static void mutex_unlock ( int *  mx)
static

Definition at line 159 of file lwip_fs.c.

Variable Documentation

FATFS Fatfs
static

Definition at line 60 of file lwip_fs.c.

const char http_index_html[]
static
Initial value:
=
"<html><head><title>Congrats!</title></head>"
"<body><h1>Welcome to our lwIP HTTP server!</h1>"
"<p>This is a small test page, served by httpd of "
"lwip.</p></body></html>"

Definition at line 54 of file lwip_fs.c.

int open_lock
static

Definition at line 144 of file lwip_fs.c.