Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

url with initX section voodo added

  • Loading branch information...
commit 17c620ccf7c883db163826c9f190f2bcfea1d1b2 1 parent a1bebfd
@tuxcodejohn tuxcodejohn authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 firmware/lib/apps.h
View
8 firmware/lib/apps.h
@@ -3,6 +3,14 @@
#include <inttypes.h>
+/*
+ * 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) { \

0 comments on commit 17c620c

Please sign in to comment.
Something went wrong with that request. Please try again.