CVS: msp430-libc/include/msp430 iostructures.h,1.8,1.9

Steve Underwood <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/msp430-libc/include/msp430
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7690/msp430-libc/include/msp430

Modified Files:
	iostructures.h 
Log Message:
Added some support for the new ports with pull up/down resistors. Full
support is hard, as the resistors are not amongst the main group of registers
for most of the ports.


Index: iostructures.h
===================================================================
RCS file: /cvsroot/mspgcc/msp430-libc/include/msp430/iostructures.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -w -d -r1.8 -r1.9
--- iostructures.h	17 Aug 2005 14:28:46 -0000	1.8
+++ iostructures.h	12 Nov 2005 05:55:20 -0000	1.9
@@ -102,7 +102,8 @@
 #endif
 
 /****************************************************************/
-#if defined(__MSP430_HAS_PORT1__) || defined(__MSP430_HAS_PORT2__)
+#if defined(__MSP430_HAS_PORT1__) || defined(__MSP430_HAS_PORT2__) \
+ || defined(__MSP430_HAS_PORT1_R__) || defined(__MSP430_HAS_PORT2_R__)
 struct port_full_t {
   ioregister_t	in;	/* Input */
   ioregister_t	out;	/* Output */
@@ -111,11 +112,16 @@
   ioregister_t	ies;	/* Interrupt Edge Select */
   ioregister_t	ie;	/* Interrupt Enable */
   ioregister_t	sel;	/* Selection */
+#if defined(__MSP430_HAS_PORT1_R__) || defined(__MSP430_HAS_PORT2_R__)
+  ioregister_t ren;     /* Pull up or down resistor enable */
+#endif
 };
 #endif
 
 #if defined(__MSP430_HAS_PORT3__) || defined(__MSP430_HAS_PORT4__) \
- || defined(__MSP430_HAS_PORT5__) || defined(__MSP430_HAS_PORT6__)
+ || defined(__MSP430_HAS_PORT5__) || defined(__MSP430_HAS_PORT6__) \
+ || defined(__MSP430_HAS_PORT3_R__) || defined(__MSP430_HAS_PORT4_R__) \
+ || defined(__MSP430_HAS_PORT5_R__) || defined(__MSP430_HAS_PORT6_R__)
 struct port_simple_t {
   ioregister_t	in;	/* Input */
   ioregister_t	out;	/* Output */



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.