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/STM8L | |
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/STM8L')
-rw-r--r-- | os/hal/platforms/STM8L/pal_lld.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/os/hal/platforms/STM8L/pal_lld.h b/os/hal/platforms/STM8L/pal_lld.h index da698ea7a..f42973218 100644 --- a/os/hal/platforms/STM8L/pal_lld.h +++ b/os/hal/platforms/STM8L/pal_lld.h @@ -175,7 +175,7 @@ typedef GPIO_TypeDef *ioportid_t; *
* @notapi
*/
-#define pal_lld_init(config) *IOPORTS = *(config)
+#define pal_lld_init(config) (*IOPORTS = *(config))
/**
* @brief Reads the physical I/O port states.
@@ -215,7 +215,6 @@ typedef GPIO_TypeDef *ioportid_t; */
#define pal_lld_writeport(port, bits) ((port)->ODR = (bits))
-
/**
* @brief Pads group mode setup.
* @details This function programs a pads group belonging to the same port
@@ -231,7 +230,7 @@ typedef GPIO_TypeDef *ioportid_t; * @notapi
*/
#define pal_lld_setgroupmode(port, mask, mode) \
- _pal_lld_setgroupmode(port, mask, mode)
+ _pal_lld_setgroupmode(port, mask, mode)
extern ROMCONST PALConfig pal_default_config;
|