aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/TIMv1/icu_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/STM32/LLD/TIMv1/icu_lld.c')
-rw-r--r--os/hal/ports/STM32/LLD/TIMv1/icu_lld.c4
1 files changed, 2 insertions, 2 deletions
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 |