Very small RAMdisk acting as an USB mass storage device

Dependencies:   RAM_DISK USBDevice mbed

Fork of USBMSB_Ramdisk_kl25z by Richard Green

Committer:
icserny
Date:
Thu May 26 13:53:47 2016 +0000
Revision:
1:64231bdc8023
Parent:
0:fc0ff7c1656b
First version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
icserny 1:64231bdc8023 1 /* USBMSB_Ramdisk
icserny 1:64231bdc8023 2 *
icserny 1:64231bdc8023 3 * This is a fork of the USBMSB_Ramdisk_kl25z program of Richard Green
icserny 1:64231bdc8023 4 * Link: https://developer.mbed.org/users/ragmondo/code/USBMSB_Ramdisk_kl25z/
icserny 1:64231bdc8023 5 *
icserny 1:64231bdc8023 6 * The program implements a very small (about 12kbyte) filesystem in RAM
icserny 1:64231bdc8023 7 * and offers it by USBMSD protocol as an USB mass storag device.
icserny 1:64231bdc8023 8 *
icserny 1:64231bdc8023 9 * Hardware requirements:
icserny 1:64231bdc8023 10 * - FRDM-KL25Z board
icserny 1:64231bdc8023 11 * - The USB FRDM socket should be connected to a PC (or to other USB host)
icserny 1:64231bdc8023 12 */
icserny 1:64231bdc8023 13
ragmondo 0:fc0ff7c1656b 14 #include "mbed.h"
ragmondo 0:fc0ff7c1656b 15 #include "USBMSD_Ram.h"
ragmondo 0:fc0ff7c1656b 16
ragmondo 0:fc0ff7c1656b 17 USBMSD_Ram sd;
ragmondo 0:fc0ff7c1656b 18
ragmondo 0:fc0ff7c1656b 19 int main() {
ragmondo 0:fc0ff7c1656b 20 while(1);
ragmondo 0:fc0ff7c1656b 21 }