aboutsummaryrefslogtreecommitdiffstats
path: root/Bootloaders/MassStorage/Lib/VirtualFAT.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-03-31 09:37:30 +0000
committerDean Camera <dean@fourwalledcubicle.com>2013-03-31 09:37:30 +0000
commit85343a436d181dfe3c7d4b0f2b35227d5c3e6c57 (patch)
tree5b6640bc3190322993bad4265ff7f8156fad363d /Bootloaders/MassStorage/Lib/VirtualFAT.h
parent7251da65811a389ecacbb09223058d850d9ce4a4 (diff)
downloadlufa-85343a436d181dfe3c7d4b0f2b35227d5c3e6c57.tar.gz
lufa-85343a436d181dfe3c7d4b0f2b35227d5c3e6c57.tar.bz2
lufa-85343a436d181dfe3c7d4b0f2b35227d5c3e6c57.zip
Add ATTR_NEVER_INLINE attribute. Add EEPROM byte read/write proxy functions to the Mass Storage bootloader to prevent link errors due to linker relaxations.
Diffstat (limited to 'Bootloaders/MassStorage/Lib/VirtualFAT.h')
-rw-r--r--Bootloaders/MassStorage/Lib/VirtualFAT.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Bootloaders/MassStorage/Lib/VirtualFAT.h b/Bootloaders/MassStorage/Lib/VirtualFAT.h
index 845530ebc..c396897ba 100644
--- a/Bootloaders/MassStorage/Lib/VirtualFAT.h
+++ b/Bootloaders/MassStorage/Lib/VirtualFAT.h
@@ -274,13 +274,18 @@
/* Function Prototypes: */
#if defined(INCLUDE_FROM_VIRTUAL_FAT_C)
+ static uint8_t ReadEEPROMByte(const uint8_t* const Address) ATTR_NEVER_INLINE;
+
+ static void WriteEEPROMByte(uint8_t* const Address,
+ const uint8_t Data) ATTR_NEVER_INLINE;
+
static void UpdateFAT12ClusterEntry(uint8_t* const FATTable,
const uint16_t Index,
const uint16_t ChainEntry) AUX_BOOT_SECTION;
static void UpdateFAT12ClusterChain(uint8_t* const FATTable,
const uint16_t StartIndex,
- const uint16_t ChainLength) AUX_BOOT_SECTION;
+ const uint8_t ChainLength) AUX_BOOT_SECTION;
static void ReadWriteFLASHFileBlock(const uint16_t BlockNumber,
uint8_t* BlockBuffer,