aboutsummaryrefslogtreecommitdiffstats
path: root/ports
diff options
context:
space:
mode:
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