X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2Fsrctemplates%2Fmain.c;h=7ecafb863d7eac8259d22ea2e9ded962151e61c0;hb=9062cffced27bd5e3b4742547d9ed50b2481fdae;hp=288b7f258234eaec69b02d4e6fa4d61fea3b74f8;hpb=94ebf3c1d809aed8b2548b50bed915efc0c8e2c5;p=bertos.git diff --git a/wizard/srctemplates/main.c b/wizard/srctemplates/main.c index 288b7f25..7ecafb86 100644 --- a/wizard/srctemplates/main.c +++ b/wizard/srctemplates/main.c @@ -1,6 +1,20 @@ // Emtpy main.c file generated by the wizard +#include + +static void init(void) +{ + IRQ_ENABLE; + // insert initialization calls here +} int main(void) { - return 0; -} \ No newline at end of file + init(); + while (1) + { + // your code goes here + } + + return 0; +} +