summaryrefslogtreecommitdiff
path: root/openpicc/application/ssc_picc.c
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-02-03 05:55:05 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-02-03 05:55:05 +0000
commit90e4bd792d38d08a63b9e0ef72bf4555731b889f (patch)
treeb3bd0e3537b6f0e9edcf6eb8a5eb362b5221a941 /openpicc/application/ssc_picc.c
parentfa61e60d06e7a50fd3d681822a5f637f14582d80 (diff)
Change order on these two because otherwise unloading while IRQs are still enabled will lead to an IRQ storm
git-svn-id: https://svn.openpcd.org:2342/trunk@403 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/ssc_picc.c')
-rw-r--r--openpicc/application/ssc_picc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpicc/application/ssc_picc.c b/openpicc/application/ssc_picc.c
index b2fd00b..dd3cb02 100644
--- a/openpicc/application/ssc_picc.c
+++ b/openpicc/application/ssc_picc.c
@@ -656,8 +656,8 @@ void ssc_rx_stop(void)
/* Disable reception */
AT91F_SSC_DisableRx(AT91C_BASE_SSC);
AT91F_PDC_DisableRx(rx_pdc);
- __ssc_tx_unload_all(NULL, NULL);
AT91F_SSC_DisableIt(ssc, SSC_RX_IRQ_MASK);
+ __ssc_tx_unload_all(NULL, NULL);
}
void ssc_tx_init(void)
personal git repositories of Harald Welte. Your mileage may vary