diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-06-30 09:43:34 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-06-30 09:43:34 +0000 |
commit | e01bc962c70d4bd88af3a8605736601ef7af68f9 (patch) | |
tree | fc082d14b6888fb870b8a59eb61f3095145bb47b /os/hal/include/spi.h | |
parent | 6514f4422c0cd12d882fc8a7d778a69fd35593ca (diff) | |
download | ChibiOS-e01bc962c70d4bd88af3a8605736601ef7af68f9.tar.gz ChibiOS-e01bc962c70d4bd88af3a8605736601ef7af68f9.tar.bz2 ChibiOS-e01bc962c70d4bd88af3a8605736601ef7af68f9.zip |
DAC merge and rework, part 1.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5911 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include/spi.h')
-rw-r--r-- | os/hal/include/spi.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/os/hal/include/spi.h b/os/hal/include/spi.h index f9988631b..5e0fa9e53 100644 --- a/os/hal/include/spi.h +++ b/os/hal/include/spi.h @@ -244,13 +244,14 @@ typedef enum { * @notapi
*/
#define _spi_wakeup_isr(spip) { \
+ chSysLockFromIsr(); \
if ((spip)->thread != NULL) { \
Thread *tp = (spip)->thread; \
(spip)->thread = NULL; \
- chSysLockFromIsr(); \
+ tp->p_u.rdymsg = RDY_OK; \
chSchReadyI(tp); \
- chSysUnlockFromIsr(); \
} \
+ chSysUnlockFromIsr(); \
}
#else /* !SPI_USE_WAIT */
#define _spi_wait_s(spip)
|