From 46337b97c0f886e79daf76c0f249c43e38a5c1ec Mon Sep 17 00:00:00 2001 From: batt Date: Thu, 27 Aug 2009 13:10:51 +0000 Subject: [PATCH] Improve main.c template for wizard. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2796 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/srctemplates/main.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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; } -- 2.25.1