diff options
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(); \
}
/**
|