diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-04-03 11:29:27 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-04-03 11:29:27 +0000 |
commit | c4fec713d238a4396ee5693c986e3d25a74082e5 (patch) | |
tree | 7f228bfc51fd8746443940cef8576c21b7e55d1f /os/hal/platforms/LPC214x/pal_lld.h | |
parent | 8d2e166f09025f1cdb36f4ac09260dc66f29e598 (diff) | |
download | ChibiOS-c4fec713d238a4396ee5693c986e3d25a74082e5.tar.gz ChibiOS-c4fec713d238a4396ee5693c986e3d25a74082e5.tar.bz2 ChibiOS-c4fec713d238a4396ee5693c986e3d25a74082e5.zip |
Improvements to the PAL drivers.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2867 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/LPC214x/pal_lld.h')
-rw-r--r-- | os/hal/platforms/LPC214x/pal_lld.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/os/hal/platforms/LPC214x/pal_lld.h b/os/hal/platforms/LPC214x/pal_lld.h index 424cb73f1..1a45cd6a9 100644 --- a/os/hal/platforms/LPC214x/pal_lld.h +++ b/os/hal/platforms/LPC214x/pal_lld.h @@ -194,11 +194,10 @@ typedef FIO * ioportid_t; *
* @notapi
*/
-#define pal_lld_writegroup(port, mask, offset, bits) { \
- (port)->FIO_MASK = ~((mask) << (offset)); \
- (port)->FIO_PIN = (bits) << (offset); \
- (port)->FIO_MASK = 0; \
-}
+#define pal_lld_writegroup(port, mask, offset, bits) \
+ ((port)->FIO_MASK = ~((mask) << (offset)), \
+ (port)->FIO_PIN = (bits) << (offset), \
+ (port)->FIO_MASK = 0)
/**
* @brief Pads group mode setup.
@@ -236,9 +235,7 @@ typedef FIO * ioportid_t; *
* @notapi
*/
-#define pal_lld_lpc214x_set_direction(port, dir) { \
- (port)->FIO_DIR = (dir); \
-}
+#define pal_lld_lpc214x_set_direction(port, dir) ((port)->FIO_DIR = (dir))
extern const PALConfig pal_default_config;
|