Merge branch 'master' of github.com:c3d2/pentabug
This commit is contained in:
commit
801a3bc52b
|
@ -3,6 +3,14 @@
|
||||||
|
|
||||||
#include <inttypes.h>
|
#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 MAX_FUNS 16
|
||||||
#define REGISTER(fun) static void init(void) __attribute__ ((naked, used, section (".init8"))); \
|
#define REGISTER(fun) static void init(void) __attribute__ ((naked, used, section (".init8"))); \
|
||||||
void init(void) { \
|
void init(void) { \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user