From: batt Date: Thu, 27 Aug 2009 13:10:51 +0000 (+0000) Subject: Improve main.c template for wizard. X-Git-Tag: 2.2.0~172 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=46337b97c0f886e79daf76c0f249c43e38a5c1ec;p=bertos.git Improve main.c template for wizard. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2796 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/srctemplates/main.c b/wizard/srctemplates/main.c index 0a2fa1ab..7ecafb86 100644 --- a/wizard/srctemplates/main.c +++ b/wizard/srctemplates/main.c @@ -1,7 +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; + init(); + while (1) + { + // your code goes here + } + + return 0; }