Added example project and workspace for IAR for AVR compiler, and fixed compiler errors and warnings after doing such a deed.

This commit is contained in:
skarg
2010-09-07 16:18:55 +00:00
parent e2314f0f5e
commit 21426e12f7
16 changed files with 2359 additions and 34 deletions
+3 -2
View File
@@ -23,6 +23,7 @@
*
*********************************************************************/
#include "hardware.h"
#include "watchdog.h"
/* me */
#include "init.h"
@@ -61,8 +62,8 @@ void init(
PORTD = 0;
/* Configure the watchdog timer - Disabled for debugging */
#ifdef NDEBUG
wdt_enable(WDTO_2S);
watchdog_init(WDTO_2S);
#else
wdt_disable();
watchdog_init(0);
#endif
}