aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-02-14 07:21:45 +0800
committerTat-Chee Wan (USM)2011-02-14 07:21:45 +0800
commit414653369733b86f7bb5aa5d7b49f4e2157caba0 (patch)
tree33969ab71cd271a1491c536d860823fbd95544ac
parentce2436796136900553a308bf7b043cf3d4f2d170 (diff)
made debugger conditional
-rw-r--r--.project11
-rw-r--r--AT91SAM7S256/SAM7S256/Include/sam7s256.c5
2 files changed, 16 insertions, 0 deletions
diff --git a/.project b/.project
new file mode 100644
index 0000000..bbc963e
--- /dev/null
+++ b/.project
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>nxt-firmware-tcwan</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
diff --git a/AT91SAM7S256/SAM7S256/Include/sam7s256.c b/AT91SAM7S256/SAM7S256/Include/sam7s256.c
index f8fe51c..2247c28 100644
--- a/AT91SAM7S256/SAM7S256/Include/sam7s256.c
+++ b/AT91SAM7S256/SAM7S256/Include/sam7s256.c
@@ -11,7 +11,9 @@
//
// Platform C
//
+#ifdef __ARMDEBUG__
#include "debug_stub.h"
+#endif
void main(void)
{
@@ -21,6 +23,9 @@ void main(void)
dbg__bkpt_init();
dbg_breakpoint_thumb();
mSchedInit();
+#ifdef __ARMDEBUG__
+ dbg__bkpt_init();
+#endif
while(TRUE == mSchedCtrl())
{
OSWatchdogWrite;