diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-10-11 18:55:06 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-10-11 18:55:06 +0000 |
commit | 441509bc2c585151a5d5974337d6fd2e156eab2a (patch) | |
tree | da3717d5decdd19548c46c8438340d9704140854 /os/hal/include | |
parent | 7c2a8e13d969029fb675e67c57349c1deaa09284 (diff) | |
download | ChibiOS-441509bc2c585151a5d5974337d6fd2e156eab2a.tar.gz ChibiOS-441509bc2c585151a5d5974337d6fd2e156eab2a.tar.bz2 ChibiOS-441509bc2c585151a5d5974337d6fd2e156eab2a.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2247 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
-rw-r--r-- | os/hal/include/spi.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/os/hal/include/spi.h b/os/hal/include/spi.h index fee5742d1..cb13fa605 100644 --- a/os/hal/include/spi.h +++ b/os/hal/include/spi.h @@ -221,12 +221,13 @@ typedef enum { * @notapi
*/
#define _spi_wakeup(spip) { \
+ chSysLockFromIsr(); \
if ((spip)->spd_thread != NULL) { \
Thread *tp = (spip)->spd_thread; \
(spip)->spd_thread = NULL; \
- tp->p_u.rdymsg = RDY_RESET; \
chSchReadyI(tp); \
} \
+ chSysUnlockFromIsr(); \
}
/**
|