![](/media/cache/profiles/3ec0e2c7f4536e7ce9e9ce183b1de9e8.jpg.50x50_q85.jpg)
RAMDisk example for the USBFileSystem
Dependencies: mbed USBFileSystem
Fork of USBFileSystem_RAMDISK_HelloWorld by
RAM_DISK/USBMSD_Ram.cpp@2:1c8a3c4ba703, 2013-08-04 (annotated)
- Committer:
- Sissors
- Date:
- Sun Aug 04 19:59:07 2013 +0000
- Revision:
- 2:1c8a3c4ba703
- Parent:
- 1:e1b0157ce547
- Child:
- 4:69b7cece8e72
v1.0
;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Sissors | 1:e1b0157ce547 | 1 | /* mbed USBMSD_Ram Library, for providing file access to SD cards |
Sissors | 1:e1b0157ce547 | 2 | * Copyright (c) 2008-2010, sford |
Sissors | 1:e1b0157ce547 | 3 | * |
Sissors | 1:e1b0157ce547 | 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
Sissors | 1:e1b0157ce547 | 5 | * of this software and associated documentation files (the "Software"), to deal |
Sissors | 1:e1b0157ce547 | 6 | * in the Software without restriction, including without limitation the rights |
Sissors | 1:e1b0157ce547 | 7 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
Sissors | 1:e1b0157ce547 | 8 | * copies of the Software, and to permit persons to whom the Software is |
Sissors | 1:e1b0157ce547 | 9 | * furnished to do so, subject to the following conditions: |
Sissors | 1:e1b0157ce547 | 10 | * |
Sissors | 1:e1b0157ce547 | 11 | * The above copyright notice and this permission notice shall be included in |
Sissors | 1:e1b0157ce547 | 12 | * all copies or substantial portions of the Software. |
Sissors | 1:e1b0157ce547 | 13 | * |
Sissors | 1:e1b0157ce547 | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
Sissors | 1:e1b0157ce547 | 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
Sissors | 1:e1b0157ce547 | 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
Sissors | 1:e1b0157ce547 | 17 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
Sissors | 1:e1b0157ce547 | 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
Sissors | 1:e1b0157ce547 | 19 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
Sissors | 1:e1b0157ce547 | 20 | * THE SOFTWARE. |
Sissors | 1:e1b0157ce547 | 21 | */ |
Sissors | 1:e1b0157ce547 | 22 | |
Sissors | 1:e1b0157ce547 | 23 | #include "USBMSD_Ram.h" |
Sissors | 1:e1b0157ce547 | 24 | |
Sissors | 1:e1b0157ce547 | 25 | |
Sissors | 2:1c8a3c4ba703 | 26 | const unsigned char disk[512*6] = { |
Sissors | 2:1c8a3c4ba703 | 27 | |
Sissors | 1:e1b0157ce547 | 28 | //sector 0: boot sector |
Sissors | 2:1c8a3c4ba703 | 29 | 0xEB,0x3C,0x90,0x4D,0x53,0x44,0x4F,0x53,0x35,0x2E,0x30, 0x00,0x02,/*bytes per sector: 512*/ 0x01, /*sectors per cluster*/ 0x01,0x00,/*number of reserved sector*/ |
Sissors | 2:1c8a3c4ba703 | 30 | 0x01, /* number of FATs*/ 0x10,0x00, /*Maximum number of root directory entries: 16*/ 0x10,0x00, /*Total sector count: 16*/ 0xF0, 0x02,0x00,/*sectors per FAT: 2*/ 0x01,0x00,/*Sectors per track*/ 0x01,0x00, /*Number of heads*/ 0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 31 | 0x00,0x01,0x00,0x00,0x00,0x00, 0x29, /*boot signature*/ 0x74,0x19,0x02,0x27, /*volume ID*/ 'M','b','e','d',' ', |
Sissors | 1:e1b0157ce547 | 32 | 'U','S','B',' ',' ',' ', /*volume label: Mbed USB*/ 0x46,0x41,0x54,0x31,0x32,0x20,0x20,0x20,0x33,0xC9, |
Sissors | 1:e1b0157ce547 | 33 | 0x8E,0xD1,0xBC,0xF0,0x7B,0x8E,0xD9,0xB8,0x00,0x20,0x8E,0xC0,0xFC,0xBD,0x00,0x7C, |
Sissors | 1:e1b0157ce547 | 34 | 0x38,0x4E,0x24,0x7D,0x24,0x8B,0xC1,0x99,0xE8,0x3C,0x01,0x72,0x1C,0x83,0xEB,0x3A, |
Sissors | 1:e1b0157ce547 | 35 | 0x66,0xA1,0x1C,0x7C,0x26,0x66,0x3B,0x07,0x26,0x8A,0x57,0xFC,0x75,0x06,0x80,0xCA, |
Sissors | 1:e1b0157ce547 | 36 | 0x02,0x88,0x56,0x02,0x80,0xC3,0x10,0x73,0xEB,0x33,0xC9,0x8A,0x46,0x10,0x98,0xF7, |
Sissors | 1:e1b0157ce547 | 37 | 0x66,0x16,0x03,0x46,0x1C,0x13,0x56,0x1E,0x03,0x46,0x0E,0x13,0xD1,0x8B,0x76,0x11, |
Sissors | 1:e1b0157ce547 | 38 | 0x60,0x89,0x46,0xFC,0x89,0x56,0xFE,0xB8,0x20,0x00,0xF7,0xE6,0x8B,0x5E,0x0B,0x03, |
Sissors | 1:e1b0157ce547 | 39 | 0xC3,0x48,0xF7,0xF3,0x01,0x46,0xFC,0x11,0x4E,0xFE,0x61,0xBF,0x00,0x00,0xE8,0xE6, |
Sissors | 1:e1b0157ce547 | 40 | 0x00,0x72,0x39,0x26,0x38,0x2D,0x74,0x17,0x60,0xB1,0x0B,0xBE,0xA1,0x7D,0xF3,0xA6, |
Sissors | 1:e1b0157ce547 | 41 | 0x61,0x74,0x32,0x4E,0x74,0x09,0x83,0xC7,0x20,0x3B,0xFB,0x72,0xE6,0xEB,0xDC,0xA0, |
Sissors | 1:e1b0157ce547 | 42 | 0xFB,0x7D,0xB4,0x7D,0x8B,0xF0,0xAC,0x98,0x40,0x74,0x0C,0x48,0x74,0x13,0xB4,0x0E, |
Sissors | 1:e1b0157ce547 | 43 | 0xBB,0x07,0x00,0xCD,0x10,0xEB,0xEF,0xA0,0xFD,0x7D,0xEB,0xE6,0xA0,0xFC,0x7D,0xEB, |
Sissors | 1:e1b0157ce547 | 44 | 0xE1,0xCD,0x16,0xCD,0x19,0x26,0x8B,0x55,0x1A,0x52,0xB0,0x01,0xBB,0x00,0x00,0xE8, |
Sissors | 1:e1b0157ce547 | 45 | 0x3B,0x00,0x72,0xE8,0x5B,0x8A,0x56,0x24,0xBE,0x0B,0x7C,0x8B,0xFC,0xC7,0x46,0xF0, |
Sissors | 1:e1b0157ce547 | 46 | 0x3D,0x7D,0xC7,0x46,0xF4,0x29,0x7D,0x8C,0xD9,0x89,0x4E,0xF2,0x89,0x4E,0xF6,0xC6, |
Sissors | 1:e1b0157ce547 | 47 | 0x06,0x96,0x7D,0xCB,0xEA,0x03,0x00,0x00,0x20,0x0F,0xB6,0xC8,0x66,0x8B,0x46,0xF8, |
Sissors | 1:e1b0157ce547 | 48 | 0x66,0x03,0x46,0x1C,0x66,0x8B,0xD0,0x66,0xC1,0xEA,0x10,0xEB,0x5E,0x0F,0xB6,0xC8, |
Sissors | 1:e1b0157ce547 | 49 | 0x4A,0x4A,0x8A,0x46,0x0D,0x32,0xE4,0xF7,0xE2,0x03,0x46,0xFC,0x13,0x56,0xFE,0xEB, |
Sissors | 1:e1b0157ce547 | 50 | 0x4A,0x52,0x50,0x06,0x53,0x6A,0x01,0x6A,0x10,0x91,0x8B,0x46,0x18,0x96,0x92,0x33, |
Sissors | 1:e1b0157ce547 | 51 | 0xD2,0xF7,0xF6,0x91,0xF7,0xF6,0x42,0x87,0xCA,0xF7,0x76,0x1A,0x8A,0xF2,0x8A,0xE8, |
Sissors | 1:e1b0157ce547 | 52 | 0xC0,0xCC,0x02,0x0A,0xCC,0xB8,0x01,0x02,0x80,0x7E,0x02,0x0E,0x75,0x04,0xB4,0x42, |
Sissors | 1:e1b0157ce547 | 53 | 0x8B,0xF4,0x8A,0x56,0x24,0xCD,0x13,0x61,0x61,0x72,0x0B,0x40,0x75,0x01,0x42,0x03, |
Sissors | 1:e1b0157ce547 | 54 | 0x5E,0x0B,0x49,0x75,0x06,0xF8,0xC3,0x41,0xBB,0x00,0x00,0x60,0x66,0x6A,0x00,0xEB, |
Sissors | 1:e1b0157ce547 | 55 | 0xB0,0x4E,0x54,0x4C,0x44,0x52,0x20,0x20,0x20,0x20,0x20,0x20,0x0D,0x0A,0x52,0x65, |
Sissors | 1:e1b0157ce547 | 56 | 0x6D,0x6F,0x76,0x65,0x20,0x64,0x69,0x73,0x6B,0x73,0x20,0x6F,0x72,0x20,0x6F,0x74, |
Sissors | 1:e1b0157ce547 | 57 | 0x68,0x65,0x72,0x20,0x6D,0x65,0x64,0x69,0x61,0x2E,0xFF,0x0D,0x0A,0x44,0x69,0x73, |
Sissors | 1:e1b0157ce547 | 58 | 0x6B,0x20,0x65,0x72,0x72,0x6F,0x72,0xFF,0x0D,0x0A,0x50,0x72,0x65,0x73,0x73,0x20, |
Sissors | 1:e1b0157ce547 | 59 | 0x61,0x6E,0x79,0x20,0x6B,0x65,0x79,0x20,0x74,0x6F,0x20,0x72,0x65,0x73,0x74,0x61, |
Sissors | 1:e1b0157ce547 | 60 | 0x72,0x74,0x0D,0x0A,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xAC,0xCB,0xD8,0x55,0xAA, |
Sissors | 1:e1b0157ce547 | 61 | |
Sissors | 1:e1b0157ce547 | 62 | //sector 1: FAT 1 |
Sissors | 1:e1b0157ce547 | 63 | 0xF8,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x0F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 64 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 65 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 66 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 67 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 68 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 69 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 70 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 71 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 72 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 73 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 74 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 75 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 76 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 77 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 78 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 79 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 80 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 81 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 82 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 83 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 84 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 85 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 86 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 87 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 88 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 89 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 90 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 91 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 92 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 93 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 94 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 95 | |
Sissors | 1:e1b0157ce547 | 96 | //sector 2: FAT1: two sectors per FAT |
Sissors | 1:e1b0157ce547 | 97 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 98 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 99 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 100 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 101 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 102 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 103 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 104 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 105 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 106 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 107 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 108 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 109 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 110 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 111 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 112 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 113 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 114 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 115 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 116 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 117 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 118 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 119 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 120 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 121 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 122 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 123 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 124 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 125 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 126 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 127 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 128 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 129 | |
Sissors | 1:e1b0157ce547 | 130 | //sector 3: root directory |
Sissors | 1:e1b0157ce547 | 131 | //entry 1 |
Sissors | 2:1c8a3c4ba703 | 132 | 'M','b','e','d',' ','U','S','B',' ',' ',' ', 0x28,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 133 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 134 | //entry 2 |
Sissors | 2:1c8a3c4ba703 | 135 | 0x49,0x4E,0x20,0x20,0x20,0x20,0x20,0x20,0x54,0x58,0x54, /*IN.txt*/ 0x20,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 136 | 0x21,0x00,0xBB,0x32,0x00,0x00, 0xDC,0x83,/*hour/min/doublesec*/ 0x6A,0x3F,/*year/month/day*/ 0x02,0x00, /*starting cluster*/ 0x1e,0x00,0x00,0x00, /*size*/ |
Sissors | 1:e1b0157ce547 | 137 | |
Sissors | 2:1c8a3c4ba703 | 138 | //entry 3 |
Sissors | 2:1c8a3c4ba703 | 139 | 0x4f,0x55,0x54,0x20,0x20,0x20,0x20,0x20,0x54,0x58,0x54, /*OUT.txt*/ 0x20,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 140 | 0x21,0x00,0xBB,0x32,0x00,0x00, 0xDC,0x83,/*hour/min/doublesec*/ 0x6A,0x3F,/*year/month/day*/ 0x03,0x00, /*starting cluster*/ 0x1e,0x00,0x00,0x00, /*size*/ |
Sissors | 2:1c8a3c4ba703 | 141 | |
Sissors | 2:1c8a3c4ba703 | 142 | |
Sissors | 2:1c8a3c4ba703 | 143 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 144 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 145 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 146 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 147 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 148 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 149 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 150 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 151 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 152 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 153 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 154 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 155 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 156 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 157 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 158 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 159 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 160 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 161 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 162 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 163 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 164 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 165 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 166 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 167 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 168 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 169 | |
Sissors | 2:1c8a3c4ba703 | 170 | //sector 4: data |
Sissors | 2:1c8a3c4ba703 | 171 | 'T','y','p','e',' ','y','o','u','r',' ','t','e','x','t',' ','h', |
Sissors | 2:1c8a3c4ba703 | 172 | 'e','r','e','!',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',0x00,0x00, |
Sissors | 1:e1b0157ce547 | 173 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 174 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 175 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 176 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 177 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 178 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 179 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 180 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 181 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 182 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 183 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 184 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 185 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 186 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 187 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 188 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 189 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 190 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 191 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 192 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 193 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 194 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 195 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 196 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 197 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 198 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 199 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 200 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 201 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 202 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 2:1c8a3c4ba703 | 203 | |
Sissors | 2:1c8a3c4ba703 | 204 | //sector 5: data |
Sissors | 2:1c8a3c4ba703 | 205 | 'W','r','i','t','e',' ','i','n',' ','y','o','u','r',' ','s','e', |
Sissors | 2:1c8a3c4ba703 | 206 | 'r','i','a','l',' ','t','e','r','m','i','n','a','l','!',0x00,0x00, |
Sissors | 1:e1b0157ce547 | 207 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 208 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 209 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 210 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 211 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 212 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 213 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 214 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 215 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 216 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 217 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 218 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 219 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 220 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 221 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 222 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 223 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 224 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 225 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 226 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 227 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 228 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 229 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 230 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 231 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 232 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 233 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 234 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 235 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 236 | 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, |
Sissors | 1:e1b0157ce547 | 237 | }; |
Sissors | 2:1c8a3c4ba703 | 238 | |
Sissors | 2:1c8a3c4ba703 | 239 | |
Sissors | 2:1c8a3c4ba703 | 240 | |
Sissors | 2:1c8a3c4ba703 | 241 | USBMSD_Ram::USBMSD_Ram() : USBFileSystem("USB") { |
Sissors | 1:e1b0157ce547 | 242 | //no init |
Sissors | 1:e1b0157ce547 | 243 | _status = 0x01; |
Sissors | 2:1c8a3c4ba703 | 244 | memcpy(disk_image, disk, 512*6); |
Sissors | 1:e1b0157ce547 | 245 | } |
Sissors | 1:e1b0157ce547 | 246 | |
Sissors | 2:1c8a3c4ba703 | 247 | |
Sissors | 1:e1b0157ce547 | 248 | int USBMSD_Ram::disk_initialize() { |
Sissors | 1:e1b0157ce547 | 249 | // OK |
Sissors | 1:e1b0157ce547 | 250 | _status = 0x00; |
Sissors | 1:e1b0157ce547 | 251 | return 0; |
Sissors | 1:e1b0157ce547 | 252 | } |
Sissors | 1:e1b0157ce547 | 253 | |
Sissors | 2:1c8a3c4ba703 | 254 | int USBMSD_Ram::_disk_write(const uint8_t * buffer, uint64_t block_number) { |
Sissors | 1:e1b0157ce547 | 255 | memcpy((void *)&disk_image[block_number*512], buffer, 512); |
Sissors | 1:e1b0157ce547 | 256 | return 0; |
Sissors | 1:e1b0157ce547 | 257 | } |
Sissors | 1:e1b0157ce547 | 258 | |
Sissors | 1:e1b0157ce547 | 259 | int USBMSD_Ram::disk_read(uint8_t * buffer, uint64_t block_number) { |
Sissors | 1:e1b0157ce547 | 260 | memcpy(buffer, &disk_image[block_number*512], 512); |
Sissors | 1:e1b0157ce547 | 261 | return 0; |
Sissors | 1:e1b0157ce547 | 262 | } |
Sissors | 1:e1b0157ce547 | 263 | |
Sissors | 2:1c8a3c4ba703 | 264 | int USBMSD_Ram::_disk_status() { return _status; } |
Sissors | 1:e1b0157ce547 | 265 | int USBMSD_Ram::disk_sync() { return 0; } |
Sissors | 2:1c8a3c4ba703 | 266 | uint64_t USBMSD_Ram::disk_sectors() { return 16; } |