CVS: msp430-libc/include/msp430 wdt_a.h,1.3,1.4

"Sergey A. Borshch" <[email protected]> Wed, 7 Jan 2009 09:28:59 +0000
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/msp430-libc/include/msp430
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv25580

Modified Files:
	wdt_a.h 
Log Message:
WDTCTL address fixed. Thanks Spencer.


Index: wdt_a.h
===================================================================
RCS file: /cvsroot/mspgcc/msp430-libc/include/msp430/wdt_a.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- wdt_a.h	6 Jan 2009 09:18:14 -0000	1.3
+++ wdt_a.h	7 Jan 2009 09:28:57 -0000	1.4
@@ -19,7 +19,7 @@
 
 */
 
-#define WDTCTL_             __MSP430_WDT_A_BASE__ + 0x00  /* Watchdog timer control register */
+#define WDTCTL_             __MSP430_WDT_A_BASE__ + 0x0C  /* Watchdog timer control register */
 sfrw(WDTCTL, WDTCTL_);
 
 /* WDTCTL */
@@ -95,10 +95,7 @@
 #define __xstr(x)     __str(x)
 #define __str(x)      #x
 
-#ifdef __cplusplus
-extern "C"
-#endif //__cplusplus
-volatile unsigned int WDTCTL asm(__xstr(__MSP430_WDT_A_BASE__));  /* Watchdog timer control register */
+volatile unsigned int WDTCTL asm(__xstr(__MSP430_WDT_A_BASE__ + 0x0C));  /* Watchdog timer control register */
 
 #endif  /* __ASSEMBLER__ */
 


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB