X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2Fsrctemplates%2Fmain.c;h=4cdee7082c873d37cf87e0a34ce6c141cb208e09;hb=1ebcf9b89595826a5c158ae6a68d4c2407b1dd52;hp=0a2fa1ab521d1fa3b78727f5ef1cfa9c5276522b;hpb=e423e63cade618baf616a79b99aaab5de74ec76e;p=bertos.git diff --git a/wizard/srctemplates/main.c b/wizard/srctemplates/main.c index 0a2fa1ab..4cdee708 100644 --- a/wizard/srctemplates/main.c +++ b/wizard/srctemplates/main.c @@ -1,7 +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; + init(); + while (1) + { + // your code goes here + } + + return 0; }