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.

This commit is contained in:
Dean Camera 2013-03-31 09:37:30 +00:00
parent 7251da6581
commit 85343a436d
3 changed files with 52 additions and 7 deletions

View file

@ -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.
*/