diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-12-31 10:07:43 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-12-31 10:07:43 +0000 |
commit | c397738010966f85c7ae841e21d74790ac49611c (patch) | |
tree | 71fc62ea0e2f86481586f51dbe55ffe691b4b363 /os/hal/platforms/Posix/pal_lld.h | |
parent | 72266f8b591c6e7857f4578ba753eeea7222ac6b (diff) | |
download | ChibiOS-c397738010966f85c7ae841e21d74790ac49611c.tar.gz ChibiOS-c397738010966f85c7ae841e21d74790ac49611c.tar.bz2 ChibiOS-c397738010966f85c7ae841e21d74790ac49611c.zip |
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
Diffstat (limited to 'os/hal/platforms/Posix/pal_lld.h')
-rw-r--r-- | os/hal/platforms/Posix/pal_lld.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/os/hal/platforms/Posix/pal_lld.h b/os/hal/platforms/Posix/pal_lld.h index f8e2a8702..da57d8481 100644 --- a/os/hal/platforms/Posix/pal_lld.h +++ b/os/hal/platforms/Posix/pal_lld.h @@ -133,6 +133,8 @@ typedef sim_vio_port_t *ioportid_t; * @brief Low level PAL subsystem initialization.
*
* @param[in] config architecture-dependent ports configuration
+ *
+ * @notapi
*/
#define pal_lld_init(config) \
(vio_port_1 = (config)->VP1Data, \
@@ -143,6 +145,8 @@ typedef sim_vio_port_t *ioportid_t; *
* @param[in] port port identifier
* @return The port bits.
+ *
+ * @notapi
*/
#define pal_lld_readport(port) ((port)->pin)
@@ -153,6 +157,8 @@ typedef sim_vio_port_t *ioportid_t; *
* @param[in] port port identifier
* @return The latched logical states.
+ *
+ * @notapi
*/
#define pal_lld_readlatch(port) ((port)->latch)
@@ -161,6 +167,8 @@ typedef sim_vio_port_t *ioportid_t; *
* @param[in] port port identifier
* @param[in] bits bits to be written on the specified port
+ *
+ * @notapi
*/
#define pal_lld_writeport(port, bits) ((port)->latch = (bits))
@@ -168,14 +176,16 @@ typedef sim_vio_port_t *ioportid_t; * @brief Pads group mode setup.
* @details This function programs a pads group belonging to the same port
* with the specified mode.
- * @note Programming an unknown or unsupported mode is silently ignored.
*
* @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)
#if !defined(__DOXYGEN__)
extern sim_vio_port_t vio_port_1;
|