summaryrefslogtreecommitdiff
path: root/openpicc/application/ssc.c
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-03-14 18:29:28 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-03-14 18:29:28 +0000
commitf7a420f2387b0bb660df08954d4bf35a66937203 (patch)
tree43d7ca7aef351e23bde9081bf7f41433b71ed3b3 /openpicc/application/ssc.c
parentb7a11d3b34aebfc77addfcd2ef7803c38d4e1dcc (diff)
Faked anticollision working now. During stress test (OpenPCD reqa firmware in anticol mode performing one cycle every 70ms) there were 52 late frames in 15992.
git-svn-id: https://svn.openpcd.org:2342/trunk@454 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/ssc.c')
-rw-r--r--openpicc/application/ssc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openpicc/application/ssc.c b/openpicc/application/ssc.c
index 9f30400..78f2960 100644
--- a/openpicc/application/ssc.c
+++ b/openpicc/application/ssc.c
@@ -234,7 +234,9 @@ static int __ramfunc _ssc_tx_irq(u_int32_t sr, portBASE_TYPE task_woken)
/* Also set SSC mode to continous
* FIXME BUG: This will somehow drop some samples or something on the SSC*/
+ vLedSetGreen(0);
sh->ssc->SSC_TCMR = (sh->ssc->SSC_TCMR & ~AT91C_SSC_START) | AT91C_SSC_START_CONTINOUS;
+ vLedSetGreen(1);
if(sh->callback)
sh->callback(SSC_CALLBACK_TX_FRAME_BEGIN, NULL);
personal git repositories of Harald Welte. Your mileage may vary