From e5f3bc7f8640f4f145dfcacae49d6089d4c82a34 Mon Sep 17 00:00:00 2001 From: spacecoaster Date: Mon, 8 Sep 2014 19:59:35 +0000 Subject: [KINETIS] Add missing define for pal_lld_setpadmode() git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7253 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/KINETIS/KL2x/pal_lld.c | 2 +- os/hal/ports/KINETIS/KL2x/pal_lld.h | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'os/hal/ports/KINETIS') diff --git a/os/hal/ports/KINETIS/KL2x/pal_lld.c b/os/hal/ports/KINETIS/KL2x/pal_lld.c index 46d7e48e0..24445efa3 100644 --- a/os/hal/ports/KINETIS/KL2x/pal_lld.c +++ b/os/hal/ports/KINETIS/KL2x/pal_lld.c @@ -156,7 +156,7 @@ void pal_lld_writepad(ioportid_t port, uint8_t pad, uint8_t bit) * * @notapi */ -void pal_lld_setpadmode(ioportid_t port, uint8_t pad, iomode_t mode) +void _pal_lld_setpadmode(ioportid_t port, uint8_t pad, iomode_t mode) { PORT_TypeDef *portcfg = NULL; diff --git a/os/hal/ports/KINETIS/KL2x/pal_lld.h b/os/hal/ports/KINETIS/KL2x/pal_lld.h index 7d2025787..663320152 100644 --- a/os/hal/ports/KINETIS/KL2x/pal_lld.h +++ b/os/hal/ports/KINETIS/KL2x/pal_lld.h @@ -284,6 +284,23 @@ typedef struct */ #define pal_lld_togglepad(port, pad) (port)->PTOR |= ((uint32_t) 1 << (pad)) +/** + * @brief Pad mode setup. + * @details This function programs a pad with the specified mode. + * @note The @ref PAL provides a default software implementation of this + * functionality, implement this function if can optimize it by using + * special hardware functionalities or special coding. + * @note Programming an unknown or unsupported mode is silently ignored. + * + * @param[in] port port identifier + * @param[in] pad pad number within the port + * @param[in] mode pad mode + * + * @notapi + */ +#define pal_lld_setpadmode(port, pad, mode) \ + _pal_lld_setpadmode(port, pad, mode) + #if !defined(__DOXYGEN__) extern const PALConfig pal_default_config; #endif -- cgit v1.2.3