aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/hal/include/pwm.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/os/hal/include/pwm.h b/os/hal/include/pwm.h
index ff1ba575f..5d36e49b5 100644
--- a/os/hal/include/pwm.h
+++ b/os/hal/include/pwm.h
@@ -81,9 +81,8 @@ typedef enum {
*
* @iclass
*/
-#define pwmEnableChannelI(pwmp, channel, width) { \
- pwm_lld_set_channel(pwmp, channel, width); \
-}
+#define pwmEnableChannelI(pwmp, channel, width) \
+ pwm_lld_set_channel(pwmp, channel, width)
/**
* @brief Disables a PWM channel.
@@ -96,9 +95,8 @@ typedef enum {
*
* @iclass
*/
-#define pwmDisableChannelI(pwmp, channel) { \
- pwm_lld_set_channel(pwmp, channel, 0); \
-}
+#define pwmDisableChannelI(pwmp, channel) \
+ pwm_lld_set_channel(pwmp, channel, 0)
/*===========================================================================*/
/* External declarations. */