From beab954a35b7c6be13b8c5af58c7cd52b5888abc Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 31 Mar 2011 18:29:44 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2856 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/icu_lld.c | 1 + 1 file changed, 1 insertion(+) (limited to 'os') 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) { -- cgit v1.2.3