From d7b170b525754e5fc502c32d796dfa594775fd0e Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 12 Dec 2015 15:24:17 +0000 Subject: Fixed bug #681. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8586 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/TIMv1/icu_lld.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os') diff --git a/os/hal/ports/STM32/LLD/TIMv1/icu_lld.c b/os/hal/ports/STM32/LLD/TIMv1/icu_lld.c index 5959cbda1..4a89f0e03 100644 --- a/os/hal/ports/STM32/LLD/TIMv1/icu_lld.c +++ b/os/hal/ports/STM32/LLD/TIMv1/icu_lld.c @@ -108,7 +108,7 @@ static bool icu_lld_wait_edge(ICUDriver *icup) { /* Polled mode so re-enabling the interrupts while the operation is performed.*/ - chSysUnlock(); + osalSysUnlock(); /* Polling the right bit depending on the input channel.*/ if (icup->config->channel == ICU_CHANNEL_1) { @@ -128,7 +128,7 @@ static bool icu_lld_wait_edge(ICUDriver *icup) { result = (sr & STM32_TIM_SR_UIF) != 0 ? true : false; /* Done, disabling interrupts again.*/ - chSysLock(); + osalSysLock(); /* Resetting all flags.*/ icup->tim->SR &= ~(STM32_TIM_SR_CC1IF | -- cgit v1.2.3