]> rtime.felk.cvut.cz Git - fpga/virtex2/msp_motion.git/commitdiff
Support of msp-gcc 4.5.2
authorVladimir Burian <buriavl2@fel.cvut.cz>
Sun, 29 May 2011 19:33:20 +0000 (21:33 +0200)
committerVladimir Burian <buriavl2@fel.cvut.cz>
Sun, 29 May 2011 19:33:20 +0000 (21:33 +0200)
In msp-gcc 4.5.2 watchdog is running by default.

software/msp430-virtex2-motion/app/motion.c

index 8d7ccbfb608d2ba5633503fcb72e3022f3eadccc..5a6885753758712e6d498d52e0ff75b42f38a7aa 100644 (file)
@@ -2,6 +2,7 @@
 #include <cmd_proc.h>
 #include <pxmc_cmds.h>
 #include <signal.h>
+#include "msp430.h"
 #include "pxmc_virtex2.h"
 
 #define MOTOR_VECTOR      0
@@ -40,6 +41,9 @@ extern cmd_io_t cmd_io_std_line;
 
 int main()
 {
+  WDTCTL = WDTPW | WDTHOLD;
+  puts("PXMC motion control running...\n");
+
   pxmc_initialize();
 
   eint();