aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-12-12 15:24:17 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-12-12 15:24:17 +0000
commitd7b170b525754e5fc502c32d796dfa594775fd0e (patch)
tree7b6b6050ab0e290134cc45944908395ec36e49de /os
parentb96bb4ea7382eb5aeb8a05a7494a580efebd3952 (diff)
downloadChibiOS-d7b170b525754e5fc502c32d796dfa594775fd0e.tar.gz
ChibiOS-d7b170b525754e5fc502c32d796dfa594775fd0e.tar.bz2
ChibiOS-d7b170b525754e5fc502c32d796dfa594775fd0e.zip
Fixed bug #681.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8586 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-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 |