X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Favr%2Fhw%2Finit_xmega.c;h=028fe051ed18ee49bfeeff8cc5434a8ac58c3781;hb=84d7581d4e99d656db0064086ecee8d9f30aeba3;hp=d032de375b76faac2a07c04bfacdd3560c30b0ef;hpb=c3d91eab8e67048493a306b83aadeee4a56bfa74;p=bertos.git diff --git a/bertos/cpu/avr/hw/init_xmega.c b/bertos/cpu/avr/hw/init_xmega.c index d032de37..028fe051 100644 --- a/bertos/cpu/avr/hw/init_xmega.c +++ b/bertos/cpu/avr/hw/init_xmega.c @@ -32,18 +32,20 @@ * * * \author Luca Ottaviano + * \author Onno * * \brief AVR XMega initialization routine. + * notest:all */ #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; }