LPCOpen Platform
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 "fs.h"
#include "dosfs.h"
#include "lpc43xx_dualcore_config.h"
#include "httpd_structs.h"

Go to the source code of this file.

Data Structures

struct  file_ds
 

Functions

static int mutex_lock (int *mx)
 
static int mutex_init (void)
 
static void mutex_unlock (int *mx)
 
static int get_http_headers (const char *fName, char *buff)
 
int GetHTTP_Header (const char *fName, char *buff)
 Get HTTP header function.
 
struct fs_file * fs_open_default (void)
 Open default HTTP file function.
 
struct fs_file * fs_open (const char *name)
 Open a file from the Filesystem function.
 
void fs_close (struct fs_file *file)
 Closes/Frees a previously opened file function.
 
int fs_read (struct fs_file *file, char *buffer, int count)
 This reads the requested number of bytes from the file function.
 
int fs_bytes_left (struct fs_file *file)
 Get number of bytes yet to be read in a file function.
 
uint32_t DFS_ReadSector (uint8_t unit, uint8_t *buffer, uint32_t sector, uint32_t count)
 Function to read data from filesystem buffer.
 
uint32_t DFS_WriteSector (uint8_t unit, uint8_t *buffer, uint32_t sector, uint32_t count)
 

Variables

static const char http_index_html []
 
static int open_lock