[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-d51de3d6d3f4master
parent
49ad1739e6
commit
e5f3bc7f86
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue