diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-03-31 18:29:44 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-03-31 18:29:44 +0000 |
commit | beab954a35b7c6be13b8c5af58c7cd52b5888abc (patch) | |
tree | 99eb55c7aeffd4ce8c44581dcd120ee53bd39e31 /os/hal/platforms/STM32 | |
parent | a0baaface35fec7ecab6f78e66de35c6e1187857 (diff) | |
download | ChibiOS-beab954a35b7c6be13b8c5af58c7cd52b5888abc.tar.gz ChibiOS-beab954a35b7c6be13b8c5af58c7cd52b5888abc.tar.bz2 ChibiOS-beab954a35b7c6be13b8c5af58c7cd52b5888abc.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2856 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32')
-rw-r--r-- | os/hal/platforms/STM32/icu_lld.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32/icu_lld.c b/os/hal/platforms/STM32/icu_lld.c index d59027e4f..5d3bb284d 100644 --- a/os/hal/platforms/STM32/icu_lld.c +++ b/os/hal/platforms/STM32/icu_lld.c @@ -354,6 +354,7 @@ void icu_lld_stop(ICUDriver *icup) { /* Clock deactivation.*/
icup->tim->CR1 = 0; /* Timer disabled. */
icup->tim->DIER = 0; /* All IRQs disabled. */
+ icup->tim->SR = 0; /* Clear eventual pending IRQs. */
#if STM32_ICU_USE_TIM1
if (&ICUD1 == icup) {
|