diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-09-26 15:31:12 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-09-26 15:31:12 +0000 |
commit | a8f264a8188aa0a3995f762ce0742bfd3521f574 (patch) | |
tree | b6e69208fd7c053d0b8ffebdae82a0fca48cc036 /os/hal/include | |
parent | 12af66627696ae5f8191a7d07f4e9e991aeda4ac (diff) | |
download | ChibiOS-a8f264a8188aa0a3995f762ce0742bfd3521f574.tar.gz ChibiOS-a8f264a8188aa0a3995f762ce0742bfd3521f574.tar.bz2 ChibiOS-a8f264a8188aa0a3995f762ce0742bfd3521f574.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4713 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
-rw-r--r-- | os/hal/include/pal.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/os/hal/include/pal.h b/os/hal/include/pal.h index da4c5fe51..62bf8270e 100644 --- a/os/hal/include/pal.h +++ b/os/hal/include/pal.h @@ -94,12 +94,12 @@ /**
* @brief Logical low state.
*/
-#define PAL_LOW 0
+#define PAL_LOW 0
/**
* @brief Logical high state.
*/
-#define PAL_HIGH 1
+#define PAL_HIGH 1
/** @} */
/*===========================================================================*/
@@ -151,7 +151,9 @@ typedef struct { * @param[in] n bit position within the port
* @return The bit mask.
*/
+#if !defined(PAL_PORT_BIT) || defined(__DOXYGEN__)
#define PAL_PORT_BIT(n) ((ioportmask_t)(1 << (n)))
+#endif
/**
* @brief Bits group mask helper.
@@ -160,7 +162,9 @@ typedef struct { * @param[in] width group width
* @return The group mask.
*/
+#if !defined(PAL_GROUP_MASK) || defined(__DOXYGEN__)
#define PAL_GROUP_MASK(width) ((ioportmask_t)(1 << (width)) - 1)
+#endif
/**
* @brief Data part of a static I/O bus initializer.
|