diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-06-21 14:41:38 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-06-21 14:41:38 +0000 |
commit | 8b088b38f2e11fc44308f698deb9207e83ff5a04 (patch) | |
tree | 142e4684c748a7b2ab96acf048ea8cea865a782d /ports | |
parent | 1f4a79c4d35bef3f8cdad64c3ca1efa703fe929f (diff) | |
download | ChibiOS-8b088b38f2e11fc44308f698deb9207e83ff5a04.tar.gz ChibiOS-8b088b38f2e11fc44308f698deb9207e83ff5a04.tar.bz2 ChibiOS-8b088b38f2e11fc44308f698deb9207e83ff5a04.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1046 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'ports')
-rw-r--r-- | ports/MSP430/pal_lld.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/ports/MSP430/pal_lld.h b/ports/MSP430/pal_lld.h index 9f977c8c2..c82b9a80f 100644 --- a/ports/MSP430/pal_lld.h +++ b/ports/MSP430/pal_lld.h @@ -64,10 +64,10 @@ union __ioport { /**
* @brief Setup registers common to all the MSP430 ports. */
-struct port_setup_t {
+typedef struct {
ioregister_t out;
ioregister_t dir;
-};
+} msp430_dio_setup_t;
/**
* @brief MSP430 I/O ports static initializer.
@@ -81,37 +81,37 @@ typedef struct { defined(__MSP430_HAS_PORT1_R__) || \
defined(__DOXYGEN__)
/** @brief Port 1 setup data.*/
- struct port_setup_t P1Data;
+ msp430_dio_setup_t P1Data;
#endif
#if defined(__MSP430_HAS_PORT2__) || \
defined(__MSP430_HAS_PORT2_R__) || \
defined(__DOXYGEN__)
/** @brief Port 2 setup data.*/
- struct port_setup_t P2Data;
+ msp430_dio_setup_t P2Data;
#endif
#if defined(__MSP430_HAS_PORT3__) || \
defined(__MSP430_HAS_PORT3_R__) || \
defined(__DOXYGEN__)
/** @brief Port 3 setup data.*/
- struct port_setup_t P3Data;
+ msp430_dio_setup_t P3Data;
#endif
#if defined(__MSP430_HAS_PORT4__) || \
defined(__MSP430_HAS_PORT4_R__) || \
defined(__DOXYGEN__)
/** @brief Port 4 setup data.*/
- struct port_setup_t P4Data;
+ msp430_dio_setup_t P4Data;
#endif
#if defined(__MSP430_HAS_PORT5__) || \
defined(__MSP430_HAS_PORT5_R__) || \
defined(__DOXYGEN__)
/** @brief Port 5 setup data.*/
- struct port_setup_t P5Data;
+ msp430_dio_setup_t P5Data;
#endif
#if defined(__MSP430_HAS_PORT6__) || \
defined(__MSP430_HAS_PORT6_R__) || \
defined(__DOXYGEN__)
/** @brief Port 6 setup data.*/
- struct port_setup_t P6Data;
+ msp430_dio_setup_t P6Data;
#endif
} MSP430DIOConfig;
@@ -280,7 +280,9 @@ typedef union __ioport * ioportid_t; extern "C" {
#endif
void _pal_lld_init(const MSP430DIOConfig *config);
- void _pal_lld_setgroupmode(ioportid_t port, ioportmask_t mask, uint_fast8_t mode);
+ void _pal_lld_setgroupmode(ioportid_t port,
+ ioportmask_t mask,
+ uint_fast8_t mode);
#ifdef __cplusplus
}
#endif
|