aboutsummaryrefslogtreecommitdiffstats
path: root/ports
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-06-21 09:35:39 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-06-21 09:35:39 +0000
commit8183016f1cb574d923c83eab468ca37617051d78 (patch)
tree41308cf6e02ac0bc848c2a6f5733e81f576495cd /ports
parent1c7e52eb35c244e5855ea7978ab02d9540829e00 (diff)
downloadChibiOS-8183016f1cb574d923c83eab468ca37617051d78.tar.gz
ChibiOS-8183016f1cb574d923c83eab468ca37617051d78.tar.bz2
ChibiOS-8183016f1cb574d923c83eab468ca37617051d78.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1043 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'ports')
-rw-r--r--ports/MSP430/pal_lld.c6
-rw-r--r--ports/MSP430/pal_lld.h9
2 files changed, 9 insertions, 6 deletions
diff --git a/ports/MSP430/pal_lld.c b/ports/MSP430/pal_lld.c
index a81b152c8..9b8652263 100644
--- a/ports/MSP430/pal_lld.c
+++ b/ports/MSP430/pal_lld.c
@@ -85,7 +85,7 @@ void _pal_lld_init(const MSP430DIOConfig *config) {
*
* @param[in] port the port identifier
* @param[in] mask the group mask
- * @param[in] mode the setup mode
+ * @param[in] mode the mode
*
* @note This function is not meant to be invoked directly by the application
* code.
@@ -95,7 +95,9 @@ void _pal_lld_init(const MSP430DIOConfig *config) {
* @note This function does not alter the @p PxSEL registers. Alternate
* functions setup must be handled by device-specific code.
*/
-void _pal_lld_setmode(ioportid_t port, ioportmask_t mask, uint_fast8_t mode) {
+void _pal_lld_setgroupmode(ioportid_t port,
+ ioportmask_t mask,
+ uint_fast8_t mode) {
switch (mode) {
case PAL_MODE_RESET:
diff --git a/ports/MSP430/pal_lld.h b/ports/MSP430/pal_lld.h
index 940d3f7bd..cb47b4259 100644
--- a/ports/MSP430/pal_lld.h
+++ b/ports/MSP430/pal_lld.h
@@ -258,13 +258,13 @@ typedef union __ioport * ioportid_t;
}
/**
- * @brief Pads mode setup.
+ * @brief Pads group mode setup.
* @details This function programs a pads group belonging to the same port
* with the specified mode.
*
* @param[in] port the port identifier
* @param[in] mask the group mask
- * @param[in] mode the setup mode
+ * @param[in] mode the mode
*
* @note This function is not meant to be invoked directly by the application
* code.
@@ -273,13 +273,14 @@ typedef union __ioport * ioportid_t;
* @note This function does not alter the @p PxSEL registers. Alternate
* functions setup must be handled by device-specific code.
*/
-#define pal_lld_setmode(port, mask, mode) _pal_lld_setmode(port, mask, mode)
+#define pal_lld_setgroupmode(port, mask, mode) \
+ _pal_lld_setgroupmode(port, mask, mode)
#ifdef __cplusplus
extern "C" {
#endif
void _pal_lld_init(const MSP430DIOConfig *config);
- void _pal_lld_setmode(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