diff --git a/firmware/lib/apps.h b/firmware/lib/apps.h index 4f9be71..b026e15 100644 --- a/firmware/lib/apps.h +++ b/firmware/lib/apps.h @@ -3,6 +3,14 @@ #include +/* + * REGISTER makro exploits special avr-libc startup code voodo. + * This could be understood by reading + * http://www.nongnu.org/avr-libc/user-manual/mem_sections.html + * + * */ + + #define MAX_FUNS 16 #define REGISTER(fun) static void init(void) __attribute__ ((naked, used, section (".init8"))); \ void init(void) { \