diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2013-03-20 19:02:29 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2013-03-20 19:02:29 +0000 |
commit | 199cf8f1830ef1a8db14d311d6bfff26b82ef623 (patch) | |
tree | 4c7066af22f99a29827b435636e4f42a2398242b /Bootloaders/MassStorage/Lib/VirtualFAT.c | |
parent | 6e8642185a8db602628ea18e6d03d3f71e8be448 (diff) | |
download | lufa-199cf8f1830ef1a8db14d311d6bfff26b82ef623.tar.gz lufa-199cf8f1830ef1a8db14d311d6bfff26b82ef623.tar.bz2 lufa-199cf8f1830ef1a8db14d311d6bfff26b82ef623.zip |
Significantly reduce the size of the Mass Storage class bootloader, by removing dependencies on large LUFA internal functions.
Diffstat (limited to 'Bootloaders/MassStorage/Lib/VirtualFAT.c')
-rw-r--r-- | Bootloaders/MassStorage/Lib/VirtualFAT.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Bootloaders/MassStorage/Lib/VirtualFAT.c b/Bootloaders/MassStorage/Lib/VirtualFAT.c index 41c661ed3..e0541f436 100644 --- a/Bootloaders/MassStorage/Lib/VirtualFAT.c +++ b/Bootloaders/MassStorage/Lib/VirtualFAT.c @@ -245,12 +245,10 @@ static void ReadVirtualBlock(const uint16_t BlockNumber) /** Writes a number of blocks to the virtual FAT file system, from the host * PC via the USB Mass Storage interface. * - * \param[in] MSInterfaceInfo Pointer to a structure containing a Mass Storage Class configuration and state * \param[in] BlockAddress Data block starting address for the write sequence * \param[in] TotalBlocks Number of blocks of data to write */ -void VirtualFAT_WriteBlocks(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo, - const uint32_t BlockAddress, +void VirtualFAT_WriteBlocks(const uint16_t BlockAddress, uint16_t TotalBlocks) { uint16_t CurrentBlock = (uint16_t)BlockAddress; @@ -264,12 +262,10 @@ void VirtualFAT_WriteBlocks(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo, /** Reads a number of blocks from the virtual FAT file system, and sends them * to the host PC via the USB Mass Storage interface. * - * \param[in] MSInterfaceInfo Pointer to a structure containing a Mass Storage Class configuration and state * \param[in] BlockAddress Data block starting address for the read sequence * \param[in] TotalBlocks Number of blocks of data to read */ -void VirtualFAT_ReadBlocks(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo, - const uint32_t BlockAddress, +void VirtualFAT_ReadBlocks(const uint16_t BlockAddress, uint16_t TotalBlocks) { uint16_t CurrentBlock = (uint16_t)BlockAddress; |