aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/pwm_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-04-09 11:45:33 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-04-09 11:45:33 +0000
commitfcbef84093ce68954e36765dc769f4dd92ef0fbe (patch)
treeef3459668ae45027512f3392227fac1346adc78d /os/hal/platforms/STM32/pwm_lld.h
parent53c164a93bc23f84d0a31ce4ddd850b5408c1a93 (diff)
downloadChibiOS-fcbef84093ce68954e36765dc769f4dd92ef0fbe.tar.gz
ChibiOS-fcbef84093ce68954e36765dc769f4dd92ef0fbe.tar.bz2
ChibiOS-fcbef84093ce68954e36765dc769f4dd92ef0fbe.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5577 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/pwm_lld.h')
-rw-r--r--os/hal/platforms/STM32/pwm_lld.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32/pwm_lld.h b/os/hal/platforms/STM32/pwm_lld.h
index b6a614fe1..57fc17c29 100644
--- a/os/hal/platforms/STM32/pwm_lld.h
+++ b/os/hal/platforms/STM32/pwm_lld.h
@@ -416,8 +416,8 @@ struct PWMDriver {
* @notapi
*/
#define pwm_lld_is_channel_enabled(pwmp, channel) \
- ((pwmp->tim->CCR[channel] != 0) || \
- ((pwmp->tim->DIER & (2 << channel)) != 0))
+ (((pwmp)->tim->CCR[channel] != 0) || \
+ (((pwmp)->tim->DIER & (2 << channel)) != 0))
/*===========================================================================*/
/* External declarations. */