From 441509bc2c585151a5d5974337d6fd2e156eab2a Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 11 Oct 2010 18:55:06 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2247 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/include/spi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'os/hal/include') 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(); \ } /** -- cgit v1.2.3