aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM8S
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-04-03 11:29:27 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-04-03 11:29:27 +0000
commitc4fec713d238a4396ee5693c986e3d25a74082e5 (patch)
tree7f228bfc51fd8746443940cef8576c21b7e55d1f /os/hal/platforms/STM8S
parent8d2e166f09025f1cdb36f4ac09260dc66f29e598 (diff)
downloadChibiOS-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/STM8S')
-rw-r--r--os/hal/platforms/STM8S/pal_lld.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/os/hal/platforms/STM8S/pal_lld.h b/os/hal/platforms/STM8S/pal_lld.h
index 8bb1caae8..ef69d1379 100644
--- a/os/hal/platforms/STM8S/pal_lld.h
+++ b/os/hal/platforms/STM8S/pal_lld.h
@@ -160,7 +160,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.
@@ -200,7 +200,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
@@ -216,7 +215,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;