diff options
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/ports/KINETIS/KL2x/pal_lld.c | 2 | ||||
-rw-r--r-- | os/hal/ports/KINETIS/KL2x/pal_lld.h | 17 |
2 files changed, 18 insertions, 1 deletions
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
|