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 288b7f258234eaec69b02d4e6fa4d61fea3b74f8..7ecafb863d7eac8259d22ea2e9ded962151e61c0 100644
(file)
--- a/
wizard/srctemplates/main.c
+++ b/
wizard/srctemplates/main.c
@@
-1,6
+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;
-}
\ No newline at end of file
+ init();
+ while (1)
+ {
+ // your code goes here
+ }
+
+ return 0;
+}
+