aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/can_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-10-14 12:16:41 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-10-14 12:16:41 +0000
commita122640ac69ce3fb8ae5c6e83d9e3a912bb96c98 (patch)
treed7a15aacae11cc871036ed1c7c5c33982377c038 /os/hal/platforms/STM32/can_lld.c
parent4fab7c06d1b0c9e61f6106b5b2a5c2c0b5694c34 (diff)
downloadChibiOS-a122640ac69ce3fb8ae5c6e83d9e3a912bb96c98.tar.gz
ChibiOS-a122640ac69ce3fb8ae5c6e83d9e3a912bb96c98.tar.bz2
ChibiOS-a122640ac69ce3fb8ae5c6e83d9e3a912bb96c98.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2255 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/can_lld.c')
-rw-r--r--os/hal/platforms/STM32/can_lld.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/os/hal/platforms/STM32/can_lld.c b/os/hal/platforms/STM32/can_lld.c
index 526ecb98e..d8e12af9e 100644
--- a/os/hal/platforms/STM32/can_lld.c
+++ b/os/hal/platforms/STM32/can_lld.c
@@ -236,11 +236,10 @@ void can_lld_start(CANDriver *canp) {
cfp->FR1 = 0;
cfp->FR2 = 0;
}
- cfp++;
- fmask <<= 1;
/* Gives a chance for preemption since this is a rather long loop.*/
chSysUnlock();
- chThdYield();
+ cfp++;
+ fmask <<= 1;
chSysLock();
}
}