summaryrefslogtreecommitdiff
path: root/openpicc/application/ssc_picc.c
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-13 15:26:14 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-13 15:26:14 +0000
commit3fb02f719f0bea99548a6bc7fe7c37e9d25ce800 (patch)
tree3742ace743afdd9d30fe5dc1602b5b557b1e6981 /openpicc/application/ssc_picc.c
parentee1f021427f8966fb29e70eab1a3be4345af65b1 (diff)
Slight progress, still: enabling tc_fdt crashes the processor after some bits
git-svn-id: https://svn.openpcd.org:2342/trunk@326 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/ssc_picc.c')
-rw-r--r--openpicc/application/ssc_picc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openpicc/application/ssc_picc.c b/openpicc/application/ssc_picc.c
index 491cb76..4d21644 100644
--- a/openpicc/application/ssc_picc.c
+++ b/openpicc/application/ssc_picc.c
@@ -30,6 +30,7 @@
#include <AT91SAM7.h>
#include <lib_AT91SAM7.h>
+#include <FreeRTOS.h>
//#include <os/usb_handler.h>
#include "dbgu.h"
#include "led.h"
@@ -314,6 +315,7 @@ static int8_t ssc_rx_refill(void)
static void __ramfunc ssc_irq(void)
{
+ portSAVE_CONTEXT();
u_int32_t ssc_sr = ssc->SSC_SR;
// int i, *tmp, emptyframe = 0;
DEBUGP("ssc_sr=0x%08x, mode=%u: ", ssc_sr, ssc_state.mode);
@@ -451,6 +453,7 @@ static void __ramfunc ssc_irq(void)
#endif
DEBUGPCR("I");
AT91F_AIC_ClearIt(AT91C_ID_SSC);
+ portRESTORE_CONTEXT();
}
void ssc_print(void)
personal git repositories of Harald Welte. Your mileage may vary