From 17c620ccf7c883db163826c9f190f2bcfea1d1b2 Mon Sep 17 00:00:00 2001 From: john stone Date: Fri, 12 Oct 2012 11:52:49 +0200 Subject: [PATCH] url with initX section voodo added --- firmware/lib/apps.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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) { \