aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/pwm_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-28 12:21:49 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-28 12:21:49 +0000
commit718f2d0cd19fa854b859fc5390930c2c5c3c5216 (patch)
tree54bb5a25ff9de04b34383dfa0bfdb6ce8da9c252 /os/hal/platforms/STM32/pwm_lld.c
parent72903490631212c4aff9c7641c8095e71cab2a79 (diff)
downloadChibiOS-718f2d0cd19fa854b859fc5390930c2c5c3c5216.tar.gz
ChibiOS-718f2d0cd19fa854b859fc5390930c2c5c3c5216.tar.bz2
ChibiOS-718f2d0cd19fa854b859fc5390930c2c5c3c5216.zip
Fixed bug 3121246.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2447 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/pwm_lld.c')
-rw-r--r--os/hal/platforms/STM32/pwm_lld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32/pwm_lld.c b/os/hal/platforms/STM32/pwm_lld.c
index 56273b5a6..8c8f56920 100644
--- a/os/hal/platforms/STM32/pwm_lld.c
+++ b/os/hal/platforms/STM32/pwm_lld.c
@@ -535,7 +535,7 @@ void pwm_lld_enable_channel(PWMDriver *pwmp,
void pwm_lld_disable_channel(PWMDriver *pwmp, pwmchannel_t channel) {
*(&pwmp->pd_tim->CCR1 + (channel * 2)) = 0;
- pwmp->pd_tim->DIER = ~(2 << channel);
+ pwmp->pd_tim->DIER &= ~(2 << channel);
pwmp->pd_enabled_channels &= ~(1 << channel);
}