USB MSD using the AHBSRAM banks 0 and 1 to create a 32k RAM disk. After FAT format 12kb is writable
Dependencies: USBDevice USBMSD_RAM mbed
Fork of USB-MSD_SD_HelloWorld_Mbed-RAMVersion by
Revision 21:bbe291251dde, committed 2011-12-11
- Comitter:
- samux
- Date:
- Sun Dec 11 18:06:03 2011 +0000
- Parent:
- 20:50bf1cd2e2fe
- Child:
- 22:1e79532affdd
- Commit message:
- warning: return address of a local variable -> doesn\'t work very well :)
Changed in this revision
USBDevice/USBMSD/USBMSD.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/USBDevice/USBMSD/USBMSD.cpp Sun Dec 11 15:56:08 2011 +0000 +++ b/USBDevice/USBMSD/USBMSD.cpp Sun Dec 11 18:06:03 2011 +0000 @@ -73,7 +73,7 @@ bool success = false; CONTROL_TRANSFER * transfer = getTransferPtr(); - uint8_t maxLUN[1] = {0}; + static uint8_t maxLUN[1] = {0}; if (transfer->setup.bmRequestType.Type == CLASS_TYPE) { switch (transfer->setup.bRequest) {