aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/icu_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-08-10 14:01:13 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-08-10 14:01:13 +0000
commit733166973d4dc88521555e14d4bb118f62989bbc (patch)
tree7397938649c7ec0a621a05d7526e59c4a29aab7c /os/hal/platforms/STM32/icu_lld.c
parentd768fddeebe413f488a3c177cbc0145e08600a34 (diff)
downloadChibiOS-733166973d4dc88521555e14d4bb118f62989bbc.tar.gz
ChibiOS-733166973d4dc88521555e14d4bb118f62989bbc.tar.bz2
ChibiOS-733166973d4dc88521555e14d4bb118f62989bbc.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4551 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/icu_lld.c')
-rw-r--r--os/hal/platforms/STM32/icu_lld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32/icu_lld.c b/os/hal/platforms/STM32/icu_lld.c
index 8e546d80d..82fb39769 100644
--- a/os/hal/platforms/STM32/icu_lld.c
+++ b/os/hal/platforms/STM32/icu_lld.c
@@ -104,7 +104,7 @@ static void icu_lld_serve_interrupt(ICUDriver *icup) {
uint16_t sr;
sr = icup->tim->SR & icup->tim->DIER;
- icup->tim->SR = 0;
+ icup->tim->SR = ~sr;
if (icup->config->channel == ICU_CHANNEL_1) {
if ((sr & TIM_SR_CC1IF) != 0)
_icu_isr_invoke_period_cb(icup);