diff options
| author | Dean Camera <dean@fourwalledcubicle.com> | 2010-07-21 16:19:32 +0000 | 
|---|---|---|
| committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-07-21 16:19:32 +0000 | 
| commit | 6bda628718f67c04ed43e8328f55bdce5319c504 (patch) | |
| tree | efd08eefa90cef94440f880a70902f5803fb12a7 /Projects/TempDataLogger/Lib/DataflashManager.c | |
| parent | 83e293a6ec98c7faad1b76dd312b31b86cbeecc1 (diff) | |
| download | lufa-6bda628718f67c04ed43e8328f55bdce5319c504.tar.gz lufa-6bda628718f67c04ed43e8328f55bdce5319c504.tar.bz2 lufa-6bda628718f67c04ed43e8328f55bdce5319c504.zip | |
Update all demos, projects and bootloaders to indent all function parameters, one per line, for better readability.
Add missing const qualifiers to the demos.
Diffstat (limited to 'Projects/TempDataLogger/Lib/DataflashManager.c')
| -rw-r--r-- | Projects/TempDataLogger/Lib/DataflashManager.c | 16 | 
1 files changed, 12 insertions, 4 deletions
| diff --git a/Projects/TempDataLogger/Lib/DataflashManager.c b/Projects/TempDataLogger/Lib/DataflashManager.c index 48c4fa7e6..1750e15b3 100644 --- a/Projects/TempDataLogger/Lib/DataflashManager.c +++ b/Projects/TempDataLogger/Lib/DataflashManager.c @@ -47,7 +47,9 @@   *  \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* const 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); @@ -181,7 +183,9 @@ void DataflashManager_WriteBlocks(USB_ClassInfo_MS_Device_t* const MSInterfaceIn   *  \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* const 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); @@ -289,7 +293,9 @@ void DataflashManager_ReadBlocks(USB_ClassInfo_MS_Device_t* const MSInterfaceInf   *  \param[in] TotalBlocks   Number of blocks of data to write   *  \param[in] BufferPtr     Pointer to the data source RAM buffer   */ -void DataflashManager_WriteBlocks_RAM(const uint32_t BlockAddress, uint16_t TotalBlocks, const uint8_t* BufferPtr) +void DataflashManager_WriteBlocks_RAM(const uint32_t BlockAddress, +                                      uint16_t TotalBlocks, +                                      const uint8_t* BufferPtr)  {  	uint16_t CurrDFPage          = ((BlockAddress * VIRTUAL_MEMORY_BLOCK_SIZE) / DATAFLASH_PAGE_SIZE);  	uint16_t CurrDFPageByte      = ((BlockAddress * VIRTUAL_MEMORY_BLOCK_SIZE) % DATAFLASH_PAGE_SIZE); @@ -388,7 +394,9 @@ void DataflashManager_WriteBlocks_RAM(const uint32_t BlockAddress, uint16_t Tota   *  \param[in] TotalBlocks   Number of blocks of data to read   *  \param[out] BufferPtr    Pointer to the data destination RAM buffer   */ -void DataflashManager_ReadBlocks_RAM(const uint32_t BlockAddress, uint16_t TotalBlocks, uint8_t* BufferPtr) +void DataflashManager_ReadBlocks_RAM(const uint32_t BlockAddress, +                                     uint16_t TotalBlocks, +                                     uint8_t* BufferPtr)  {  	uint16_t CurrDFPage          = ((BlockAddress * VIRTUAL_MEMORY_BLOCK_SIZE) / DATAFLASH_PAGE_SIZE);  	uint16_t CurrDFPageByte      = ((BlockAddress * VIRTUAL_MEMORY_BLOCK_SIZE) % DATAFLASH_PAGE_SIZE); | 
