aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Common
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 /LUFA/Common
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 'LUFA/Common')
-rw-r--r--LUFA/Common/Attributes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/LUFA/Common/Attributes.h b/LUFA/Common/Attributes.h
index 95570ad86..201d6b927 100644
--- a/LUFA/Common/Attributes.h
+++ b/LUFA/Common/Attributes.h
@@ -90,6 +90,11 @@
*/
#define ATTR_NO_INLINE __attribute__ ((noinline))
+ /** Forces the compiler to never inline the specified function. When applied, the given function will be
+ * always be called explicitly under all circumstances.
+ */
+ #define ATTR_NEVER_INLINE __attribute__ ((noinline))
+
/** Forces the compiler to inline the specified function. When applied, the given function will be
* in-lined under all circumstances.
*/