diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-05-13 21:01:23 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-05-13 21:01:23 +0000 |
commit | e9e6730d4999bea6e0eaefc2fce062ef090388b8 (patch) | |
tree | 5daf1ada1335d2781e144548b55d8253adff0c05 /Demos/Device/ClassDriver/MassStorageKeyboard/Lib/DataflashManager.h | |
parent | ae6a51492948d621907d3e62c03c2854e6fcc19c (diff) | |
download | lufa-e9e6730d4999bea6e0eaefc2fce062ef090388b8.tar.gz lufa-e9e6730d4999bea6e0eaefc2fce062ef090388b8.tar.bz2 lufa-e9e6730d4999bea6e0eaefc2fce062ef090388b8.zip |
AppConfigHeaders: Move out the last of the demo/app configurations into new AppConfig.h header files.
Diffstat (limited to 'Demos/Device/ClassDriver/MassStorageKeyboard/Lib/DataflashManager.h')
-rw-r--r-- | Demos/Device/ClassDriver/MassStorageKeyboard/Lib/DataflashManager.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Demos/Device/ClassDriver/MassStorageKeyboard/Lib/DataflashManager.h b/Demos/Device/ClassDriver/MassStorageKeyboard/Lib/DataflashManager.h index f7552dc4a..e5d25e0a9 100644 --- a/Demos/Device/ClassDriver/MassStorageKeyboard/Lib/DataflashManager.h +++ b/Demos/Device/ClassDriver/MassStorageKeyboard/Lib/DataflashManager.h @@ -63,6 +63,9 @@ /** Total number of blocks of the virtual memory for reporting to the host as the device's total capacity. */ #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, |