aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/gpt_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-03-31 10:21:52 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-03-31 10:21:52 +0000
commita58a524d4c7e58d03a0fa3698f09fb17985a70bc (patch)
tree561b345be6af1915bff26496f4dab45fdf666c2c /os/hal/platforms/STM32/gpt_lld.c
parent8cdc7bd8f3987116d89c0a9d1a624127f8652ac0 (diff)
downloadChibiOS-a58a524d4c7e58d03a0fa3698f09fb17985a70bc.tar.gz
ChibiOS-a58a524d4c7e58d03a0fa3698f09fb17985a70bc.tar.bz2
ChibiOS-a58a524d4c7e58d03a0fa3698f09fb17985a70bc.zip
Improvements to the PWM driver.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2853 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/gpt_lld.c')
-rw-r--r--os/hal/platforms/STM32/gpt_lld.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32/gpt_lld.c b/os/hal/platforms/STM32/gpt_lld.c
index ffbfe475c..8419cad68 100644
--- a/os/hal/platforms/STM32/gpt_lld.c
+++ b/os/hal/platforms/STM32/gpt_lld.c
@@ -325,6 +325,7 @@ void gpt_lld_stop(GPTDriver *gptp) {
if (gptp->state == GPT_READY) {
gptp->tim->CR1 = 0; /* Timer disabled. */
gptp->tim->DIER = 0; /* All IRQs disabled. */
+ gptp->tim->SR = 0; /* Clear eventual pending IRQs. */
#if STM32_GPT_USE_TIM1
if (&GPTD1 == gptp) {