From 39aad36f29af3f7b995eeac0346d63f0265a2874 Mon Sep 17 00:00:00 2001 From: Vladimir Burian Date: Sun, 29 May 2011 21:33:20 +0200 Subject: [PATCH] Support of msp-gcc 4.5.2 In msp-gcc 4.5.2 watchdog is running by default. --- software/msp430-virtex2-motion/app/motion.c | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.39.2