diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2012-05-13 21:01:23 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2012-05-13 21:01:23 +0000 |
| commit | de64d3b8b2b1ca8f524aa7760b5ab807135dd21d (patch) | |
| tree | 5daf1ada1335d2781e144548b55d8253adff0c05 /Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib | |
| parent | a3c6569569b450647b60fd7dfa720ffb1a1e823e (diff) | |
AppConfigHeaders: Move out the last of the demo/app configurations into new AppConfig.h header files.
git-svn-id: http://lufa-lib.googlecode.com/svn/branches/AppConfigHeaders@2217 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib')
| -rw-r--r-- | Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/DataflashManager.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/DataflashManager.h b/Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/DataflashManager.h index 1d123865..4b26c245 100644 --- a/Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/DataflashManager.h +++ b/Demos/Device/ClassDriver/VirtualSerialMassStorage/Lib/DataflashManager.h @@ -65,6 +65,9 @@ */ #define VIRTUAL_MEMORY_BLOCKS (VIRTUAL_MEMORY_BYTES / VIRTUAL_MEMORY_BLOCK_SIZE) + /** 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) + /* Function Prototypes: */ void DataflashManager_WriteBlocks(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo, const uint32_t BlockAddress, |
