From c397738010966f85c7ae841e21d74790ac49611c Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 31 Dec 2011 10:07:43 +0000 Subject: Changes to palSetGroupMode(), various adjustments to the PAL driver. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3695 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/LPC214x/pal_lld.h | 39 ++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) (limited to 'os/hal/platforms/LPC214x/pal_lld.h') diff --git a/os/hal/platforms/LPC214x/pal_lld.h b/os/hal/platforms/LPC214x/pal_lld.h index 688e687cc..78d688ae7 100644 --- a/os/hal/platforms/LPC214x/pal_lld.h +++ b/os/hal/platforms/LPC214x/pal_lld.h @@ -121,6 +121,8 @@ typedef FIO * ioportid_t; /** * @brief FIO subsystem initialization. * @details Enables the access through the fast registers. + * + * @notapi */ #define pal_lld_init(config) _pal_lld_init(config) @@ -129,7 +131,7 @@ typedef FIO * ioportid_t; * @details This function is implemented by reading the FIO PIN register, the * implementation has no side effects. * - * @param[in] port the port identifier + * @param[in] port port identifier * @return The port bits. * * @notapi @@ -141,7 +143,7 @@ typedef FIO * ioportid_t; * @details This function is implemented by reading the FIO SET register, the * implementation has no side effects. * - * @param[in] port the port identifier + * @param[in] port port identifier * @return The latched logical states. * * @notapi @@ -153,8 +155,8 @@ typedef FIO * ioportid_t; * @details This function is implemented by writing the FIO PIN register, the * implementation has no side effects. * - * @param[in] port the port identifier - * @param[in] bits the bits to be written on the specified port + * @param[in] port port identifier + * @param[in] bits bits to be written on the specified port * * @notapi */ @@ -165,8 +167,8 @@ typedef FIO * ioportid_t; * @details This function is implemented by writing the FIO SET register, the * implementation has no side effects. * - * @param[in] port the port identifier - * @param[in] bits the bits to be ORed on the specified port + * @param[in] port port identifier + * @param[in] bits bits to be ORed on the specified port * * @notapi */ @@ -177,8 +179,8 @@ typedef FIO * ioportid_t; * @details This function is implemented by writing the FIO CLR register, the * implementation has no side effects. * - * @param[in] port the port identifier - * @param[in] bits the bits to be cleared on the specified port + * @param[in] port port identifier + * @param[in] bits bits to be cleared on the specified port * * @notapi */ @@ -190,11 +192,11 @@ typedef FIO * ioportid_t; * registers, the implementation is not atomic because the multiple * accesses. * - * @param[in] port the port identifier - * @param[in] mask the group mask, a logical AND is performed on the + * @param[in] port port identifier + * @param[in] mask group mask, a logical AND is performed on the * output data * @param[in] offset the group bit offset within the port - * @param[in] bits the bits to be written. Values exceeding the group + * @param[in] bits bits to be written. Values exceeding the group * width are masked. * * @notapi @@ -213,20 +215,21 @@ typedef FIO * ioportid_t; * @note This function does not alter the @p PINSELx registers. Alternate * functions setup must be handled by device-specific code. * - * @param[in] port the port identifier - * @param[in] mask the group mask - * @param[in] mode the mode + * @param[in] port port identifier + * @param[in] mask group mask + * @param[in] offset group bit offset within the port + * @param[in] mode group mode * * @notapi */ -#define pal_lld_setgroupmode(port, mask, mode) \ - _pal_lld_setgroupmode(port, mask, mode) +#define pal_lld_setgroupmode(port, mask, offset, mode) \ + _pal_lld_setgroupmode(port, mask << offset, mode) /** * @brief Writes a logical state on an output pad. * - * @param[in] port the port identifier - * @param[in] pad the pad number within the port + * @param[in] port port identifier + * @param[in] pad pad number within the port * @param[in] bit logical value, the value must be @p PAL_LOW or * @p PAL_HIGH * -- cgit v1.2.3