File tree Expand file tree Collapse file tree 4 files changed +8
-12
lines changed
Expand file tree Collapse file tree 4 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 2323 */
2424
2525#include " Adafruit_TinyUSB.h"
26+
27+ // 8KB is the smallest size that windows allow to mount
28+ #define DISK_BLOCK_NUM 16
29+ #define DISK_BLOCK_SIZE 512
2630#include " ramdisk.h"
2731
2832Adafruit_USBD_MSC usb_msc;
Original file line number Diff line number Diff line change 2828#define README_CONTENTS \
2929"This is Adafruit TinyUSB MassStorage device demo on RAM disk."
3030
31- enum
32- {
33- DISK_BLOCK_NUM = 16 , // 8KB is the smallest size that windows allow to mount
34- DISK_BLOCK_SIZE = 512
35- };
36-
3731uint8_t msc_disk [DISK_BLOCK_NUM ][DISK_BLOCK_SIZE ] =
3832{
3933 //------------- Block0: Boot Sector -------------//
Original file line number Diff line number Diff line change 2323 */
2424
2525#include " Adafruit_TinyUSB.h"
26+
27+ // 8KB is the smallest size that windows allow to mount
28+ #define DISK_BLOCK_NUM 16
29+ #define DISK_BLOCK_SIZE 512
2630#include " ramdisk.h"
2731
2832Adafruit_USBD_MSC usb_msc;
Original file line number Diff line number Diff line change 2525#ifndef RAMDISK_H_
2626#define RAMDISK_H_
2727
28- enum
29- {
30- DISK_BLOCK_NUM = 16 , // 8KB is the smallest size that windows allow to mount
31- DISK_BLOCK_SIZE = 512
32- };
33-
3428//--------------------------------------------------------------------+
3529// LUN 0
3630//--------------------------------------------------------------------+
You can’t perform that action at this time.
0 commit comments