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
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() { sdram_init(); FILE *fp = fopen("/ram/myfile.txt", "w"); fprintf(fp, "Hello World!\n"); fclose(fp); }
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.
- Parameters:
-
addr Start of memory to use for file system size Number of bytes to use for file system name The name used to access the virtual filesystem
Definition at line 26 of file RAMFileSystem.cpp.
Generated on Tue Jul 12 2022 14:18:31 by 1.7.2