projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Coding style fixes.
[bertos.git]
/
wizard
/
srctemplates
/
main.c
diff --git
a/wizard/srctemplates/main.c
b/wizard/srctemplates/main.c
index 0a2fa1ab521d1fa3b78727f5ef1cfa9c5276522b..7ecafb863d7eac8259d22ea2e9ded962151e61c0 100644
(file)
--- a/
wizard/srctemplates/main.c
+++ b/
wizard/srctemplates/main.c
@@
-1,7
+1,20
@@
// Emtpy main.c file generated by the wizard
// Emtpy main.c file generated by the wizard
+#include <cpu/irq.h>
+
+static void init(void)
+{
+ IRQ_ENABLE;
+ // insert initialization calls here
+}
int main(void)
{
int main(void)
{
- return 0;
+ init();
+ while (1)
+ {
+ // your code goes here
+ }
+
+ return 0;
}
}