diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-04-18 12:10:30 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-04-18 12:10:30 +0000 |
commit | fc8e4837a936bb1b4bd19bdd54660878b3efe02c (patch) | |
tree | bc0cdb4c4a2e151f0aac4eb92a63f8d229bb82ff /Projects/Incomplete/StandaloneProgrammer/Lib/DataflashManager.c | |
parent | 55db57e1ede3c44a3b027cb442fa12e969b37f4b (diff) | |
download | lufa-fc8e4837a936bb1b4bd19bdd54660878b3efe02c.tar.gz lufa-fc8e4837a936bb1b4bd19bdd54660878b3efe02c.tar.bz2 lufa-fc8e4837a936bb1b4bd19bdd54660878b3efe02c.zip |
Add const keyword to the demo function parameters where possible.
Diffstat (limited to 'Projects/Incomplete/StandaloneProgrammer/Lib/DataflashManager.c')
-rw-r--r-- | Projects/Incomplete/StandaloneProgrammer/Lib/DataflashManager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Projects/Incomplete/StandaloneProgrammer/Lib/DataflashManager.c b/Projects/Incomplete/StandaloneProgrammer/Lib/DataflashManager.c index 735eca12e..976d9e98e 100644 --- a/Projects/Incomplete/StandaloneProgrammer/Lib/DataflashManager.c +++ b/Projects/Incomplete/StandaloneProgrammer/Lib/DataflashManager.c @@ -48,7 +48,7 @@ * \param[in] BlockAddress Data block starting address for the write sequence
* \param[in] TotalBlocks Number of blocks of data to write
*/
-void DataflashManager_WriteBlocks(USB_ClassInfo_MS_Device_t* MSInterfaceInfo, const uint32_t BlockAddress, uint16_t TotalBlocks)
+void DataflashManager_WriteBlocks(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo, const uint32_t BlockAddress, uint16_t TotalBlocks)
{
uint16_t CurrDFPage = ((BlockAddress * VIRTUAL_MEMORY_BLOCK_SIZE) / DATAFLASH_PAGE_SIZE);
uint16_t CurrDFPageByte = ((BlockAddress * VIRTUAL_MEMORY_BLOCK_SIZE) % DATAFLASH_PAGE_SIZE);
@@ -182,7 +182,7 @@ void DataflashManager_WriteBlocks(USB_ClassInfo_MS_Device_t* MSInterfaceInfo, co * \param[in] BlockAddress Data block starting address for the read sequence
* \param[in] TotalBlocks Number of blocks of data to read
*/
-void DataflashManager_ReadBlocks(USB_ClassInfo_MS_Device_t* MSInterfaceInfo, const uint32_t BlockAddress, uint16_t TotalBlocks)
+void DataflashManager_ReadBlocks(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo, const uint32_t BlockAddress, uint16_t TotalBlocks)
{
uint16_t CurrDFPage = ((BlockAddress * VIRTUAL_MEMORY_BLOCK_SIZE) / DATAFLASH_PAGE_SIZE);
uint16_t CurrDFPageByte = ((BlockAddress * VIRTUAL_MEMORY_BLOCK_SIZE) % DATAFLASH_PAGE_SIZE);
|