aboutsummaryrefslogtreecommitdiff
path: root/Demos/Device/ClassDriver/MassStorage/MassStorage.h
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2010-11-26 04:16:47 +0000
committerDean Camera <[email protected]>2010-11-26 04:16:47 +0000
commit9f7883fa2b78fd7907162987fc65b71d3c6b19fa (patch)
treeee3e4fc2497bce62e965054fe6957a7b239839ac /Demos/Device/ClassDriver/MassStorage/MassStorage.h
parentb634ec50a0646a1575d89add8ac851f7d8a66332 (diff)
downloadqmk_firmware-9f7883fa2b78fd7907162987fc65b71d3c6b19fa.tar.gz
qmk_firmware-9f7883fa2b78fd7907162987fc65b71d3c6b19fa.zip
Added ability to write protect Mass Storage disk write operations from the host OS.
Diffstat (limited to 'Demos/Device/ClassDriver/MassStorage/MassStorage.h')
-rw-r--r--Demos/Device/ClassDriver/MassStorage/MassStorage.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Demos/Device/ClassDriver/MassStorage/MassStorage.h b/Demos/Device/ClassDriver/MassStorage/MassStorage.h
index f7ac3636f6..63a864288f 100644
--- a/Demos/Device/ClassDriver/MassStorage/MassStorage.h
+++ b/Demos/Device/ClassDriver/MassStorage/MassStorage.h
@@ -73,6 +73,9 @@
/** Blocks in each LUN, calculated from the total capacity divided by the total number of Logical Units in the device. */
#define LUN_MEDIA_BLOCKS (VIRTUAL_MEMORY_BLOCKS / TOTAL_LUNS)
+
+ /** Indicates if the disk is write protected or not. */
+ #define DISK_READ_ONLY false
/* Function Prototypes: */
void SetupHardware(void);