Implementing a RAM Driver
Implementing a RAM driver for the file system is simple. There is no physical driver associated with the RAM driver.
- Include the ramdrv_s.c and ramdrv_s.h files in your file system build. This ensures that it can be mounted.
- Call f_init() as shown in the example below.
- Call f_mountdrive() with a pointer to the memory area and the size of the area to be used for the driver. The example below shows this.
- The RAM drive may now be used as a standard drive.
The following example shows the implementation.