From: Vladimir Burian Date: Sun, 29 May 2011 19:33:20 +0000 (+0200) Subject: Support of msp-gcc 4.5.2 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/fpga/virtex2/msp_motion.git/commitdiff_plain/39aad36f29af3f7b995eeac0346d63f0265a2874?hp=c541572d4c10e8d0ef9e3b683e479d4227771808 Support of msp-gcc 4.5.2 In msp-gcc 4.5.2 watchdog is running by default. --- diff --git a/software/msp430-virtex2-motion/app/motion.c b/software/msp430-virtex2-motion/app/motion.c index 8d7ccbf..5a68857 100644 --- a/software/msp430-virtex2-motion/app/motion.c +++ b/software/msp430-virtex2-motion/app/motion.c @@ -2,6 +2,7 @@ #include #include #include +#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();