Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
