aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/MSP430
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-09-08 08:58:54 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-09-08 08:58:54 +0000
commit4faf6433bb01a222e21ead6727b0d43b24600552 (patch)
tree6783aa8224c9901e3d846b0085061651b6513e98 /os/hal/platforms/MSP430
parent18b825ef0cd7ad3eed9e76310d94178eb27307d5 (diff)
downloadChibiOS-4faf6433bb01a222e21ead6727b0d43b24600552.tar.gz
ChibiOS-4faf6433bb01a222e21ead6727b0d43b24600552.tar.bz2
ChibiOS-4faf6433bb01a222e21ead6727b0d43b24600552.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2168 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/MSP430')
-rw-r--r--os/hal/platforms/MSP430/pal_lld.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/os/hal/platforms/MSP430/pal_lld.h b/os/hal/platforms/MSP430/pal_lld.h
index 24c48d320..b1a12c924 100644
--- a/os/hal/platforms/MSP430/pal_lld.h
+++ b/os/hal/platforms/MSP430/pal_lld.h
@@ -47,7 +47,7 @@
* @details This structure represents the common part of all the MSP430 I/O
* ports.
*/
-struct port_common_t {
+struct msp430_port_common {
ioregister_t in;
ioregister_t out;
ioregister_t dir;
@@ -56,11 +56,11 @@ struct port_common_t {
/**
* @brief Generic MSP430 I/O port.
*/
-union __ioport {
- struct port_common_t iop_common;
- struct port_simple_t iop_simple;
- struct port_full_t iop_full;
-};
+typedef union {
+ struct msp430_port_common iop_common;
+ struct port_simple_t iop_simple;
+ struct port_full_t iop_full;
+} msp430_ioport_t;
/**
* @brief Setup registers common to all the MSP430 ports.
@@ -138,7 +138,7 @@ typedef uint8_t ioportmask_t;
* any assumption about it, use the provided macros when populating
* variables of this type.
*/
-typedef union __ioport * ioportid_t;
+typedef union msp430_ioport_t *ioportid_t;
/*===========================================================================*/
/* I/O Ports Identifiers. */