X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Favr%2Fhw%2Finit_xmega.c;fp=bertos%2Fcpu%2Favr%2Fhw%2Finit_xmega.c;h=028fe051ed18ee49bfeeff8cc5434a8ac58c3781;hb=350223735c1c49b541d69f283fb71782ce374eea;hp=cabde0f36844e5fe758912b9661d78f10b79f4a0;hpb=d4f59ea32c3c2cfee85cc35e2b0c9523dcb0b8de;p=bertos.git diff --git a/bertos/cpu/avr/hw/init_xmega.c b/bertos/cpu/avr/hw/init_xmega.c index cabde0f3..028fe051 100644 --- a/bertos/cpu/avr/hw/init_xmega.c +++ b/bertos/cpu/avr/hw/init_xmega.c @@ -32,6 +32,7 @@ * * * \author Luca Ottaviano + * \author Onno * * \brief AVR XMega initialization routine. * notest:all @@ -39,12 +40,12 @@ #include #include -void __init(void) NAKED __attribute__ ((section (".init3"))); +void init_xmega(void) NAKED __attribute__ ((constructor)); /* * Initialize all interrupt priorities present in AVR XMega CPU. */ -void __init(void) +void init_xmega(void) { PMIC.CTRL |= PMIC_LOLVLEX_bm | PMIC_MEDLVLEX_bm | PMIC_HILVLEX_bm; }