Skip to content

Commit e694841

Browse files
committed
clean up
1 parent 3348aa5 commit e694841

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

examples/msc_ramdisk/msc_ramdisk.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
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

2832
Adafruit_USBD_MSC usb_msc;

examples/msc_ramdisk/ramdisk.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@
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-
3731
uint8_t msc_disk[DISK_BLOCK_NUM][DISK_BLOCK_SIZE] =
3832
{
3933
//------------- Block0: Boot Sector -------------//

examples/msc_ramdisk_dual/msc_ramdisk_dual.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
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

2832
Adafruit_USBD_MSC usb_msc;

examples/msc_ramdisk_dual/ramdisk.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@
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
//--------------------------------------------------------------------+

0 commit comments

Comments
 (0)