X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2Fsrctemplates%2Fmain.c;h=4cdee7082c873d37cf87e0a34ce6c141cb208e09;hb=ebdbfdbe3b8f87d715531c571b836e7a9beeec8a;hp=288b7f258234eaec69b02d4e6fa4d61fea3b74f8;hpb=94ebf3c1d809aed8b2548b50bed915efc0c8e2c5;p=bertos.git diff --git a/wizard/srctemplates/main.c b/wizard/srctemplates/main.c index 288b7f25..4cdee708 100644 --- a/wizard/srctemplates/main.c +++ b/wizard/srctemplates/main.c @@ -1,6 +1,20 @@ -// Emtpy main.c file generated by the wizard +// Empty 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; +} +