projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix xmega initialization procedure.
[bertos.git]
/
bertos
/
cpu
/
avr
/
hw
/
init_xmega.c
diff --git
a/bertos/cpu/avr/hw/init_xmega.c
b/bertos/cpu/avr/hw/init_xmega.c
index cabde0f36844e5fe758912b9661d78f10b79f4a0..028fe051ed18ee49bfeeff8cc5434a8ac58c3781 100644
(file)
--- a/
bertos/cpu/avr/hw/init_xmega.c
+++ b/
bertos/cpu/avr/hw/init_xmega.c
@@
-32,6
+32,7
@@
*
*
* \author Luca Ottaviano <lottaviano@develer.com>
*
*
* \author Luca Ottaviano <lottaviano@develer.com>
+ * \author Onno <developer@gorgoz.org>
*
* \brief AVR XMega initialization routine.
* notest:all
*
* \brief AVR XMega initialization routine.
* notest:all
@@
-39,12
+40,12
@@
#include <cfg/macros.h>
#include <avr/io.h>
#include <cfg/macros.h>
#include <avr/io.h>
-void
__init(void) NAKED __attribute__ ((section (".init3")
));
+void
init_xmega(void) NAKED __attribute__ ((constructor
));
/*
* Initialize all interrupt priorities present in AVR XMega CPU.
*/
/*
* 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;
}
{
PMIC.CTRL |= PMIC_LOLVLEX_bm | PMIC_MEDLVLEX_bm | PMIC_HILVLEX_bm;
}