A board support package for the LPC4088 Display Module.

Dependencies:   DM_HttpServer DM_USBHost

Dependents:   lpc4088_displaymodule_emwin lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI ... more

Fork of DMSupport by EmbeddedArtists AB

Embed: (wiki syntax)

« Back to documentation index

<title>RAMFileSystem Class Reference</title>

RAMFileSystem Class Reference

Creates a FAT file system in SDRAM. More...

#include <RAMFileSystem.h>

Public Member Functions

 RAMFileSystem (uint32_t addr, uint32_t size, const char *name)
 Create the File System in RAM.

Detailed Description

Creates a FAT file system in SDRAM.

 #include "mbed.h"
 #include "RAMFileSystem.h"

 RAMFileSystem ramfs(0xA0000000, 4*1024*1024, "ram"); // 4MB of ram starting at 0xA...
 int main() {

     FILE *fp = fopen("/ram/myfile.txt", "w");
     fprintf(fp, "Hello World!\n");

Definition at line 42 of file RAMFileSystem.h.

Constructor & Destructor Documentation

RAMFileSystem ( uint32_t  addr,
uint32_t  size,
const char *  name 

Create the File System in RAM.

addrStart of memory to use for file system
sizeNumber of bytes to use for file system
nameThe name used to access the virtual filesystem

Definition at line 26 of file RAMFileSystem.cpp.