diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-04-09 11:45:33 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-04-09 11:45:33 +0000 |
commit | fcbef84093ce68954e36765dc769f4dd92ef0fbe (patch) | |
tree | ef3459668ae45027512f3392227fac1346adc78d | |
parent | 53c164a93bc23f84d0a31ce4ddd850b5408c1a93 (diff) | |
download | ChibiOS-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
-rw-r--r-- | os/hal/platforms/STM32/pwm_lld.h | 4 |
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. */
|