aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/KINETIS
diff options
context:
space:
mode:
authorspacecoaster <spacecoaster@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-09-08 19:59:35 +0000
committerspacecoaster <spacecoaster@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-09-08 19:59:35 +0000
commite5f3bc7f8640f4f145dfcacae49d6089d4c82a34 (patch)
tree5366ddc2000586d86006cde8876a3a8e608704f2 /os/hal/ports/KINETIS
parent49ad1739e60d42adb37a6137b1ad9fdafe364e19 (diff)
downloadChibiOS-e5f3bc7f8640f4f145dfcacae49d6089d4c82a34.tar.gz
ChibiOS-e5f3bc7f8640f4f145dfcacae49d6089d4c82a34.tar.bz2
ChibiOS-e5f3bc7f8640f4f145dfcacae49d6089d4c82a34.zip
[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
Diffstat (limited to 'os/hal/ports/KINETIS')
-rw-r--r--os/hal/ports/KINETIS/KL2x/pal_lld.c2
-rw-r--r--os/hal/ports/KINETIS/KL2x/pal_lld.h17
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