summaryrefslogtreecommitdiff
path: root/openpicc/application/tc_fdt.c
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-26 21:28:19 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-26 21:28:19 +0000
commit6549d8861a943b7c341a03901127d84f1fa41131 (patch)
tree0530145674d4a93948aa849c91de76fb29bf3b63 /openpicc/application/tc_fdt.c
parent7e89cafc042bef23c2c08ac50790b48364b94013 (diff)
Restructure irq handling for setting tc_fdt (works now) and to get most iso specific stuff out of ssc_picc
Add ssc tx code (doesn't work yet) git-svn-id: https://svn.openpcd.org:2342/trunk@355 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/tc_fdt.c')
-rw-r--r--openpicc/application/tc_fdt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openpicc/application/tc_fdt.c b/openpicc/application/tc_fdt.c
index d8dbfd5..57036e5 100644
--- a/openpicc/application/tc_fdt.c
+++ b/openpicc/application/tc_fdt.c
@@ -39,6 +39,7 @@
#include "led.h"
#include "tc_cdiv.h"
#include "tc_fdt.h"
+#include "usb_print.h"
static AT91PS_TC tcfdt = AT91C_BASE_TC2;
@@ -65,21 +66,25 @@ static void tc_fdt_irq(void)
sr, tcfdt->TC_CV);
if (sr & AT91C_TC_ETRGS) {
+ usb_print_string_f("tc_etrgs ", 0);
DEBUGP("Ext_trigger ");
}
if (sr & AT91C_TC_CPAS) {
+ usb_print_string_f("tc_cpas ", 0);
DEBUGP("FDT_expired ");
/* FIXME: if we are in anticol / sync mode,
* we could do software triggering of SSC TX,
* but IIRC the hardware does this by TF */
}
if (sr & AT91C_TC_CPBS) {
+ usb_print_string_f("tc_cpbs ", 0);
DEBUGP("Frame_end ");
/* FIXME: stop ssc (in continuous mode),
* take care of preparing synchronous response if
* we operate in anticol mode.*/
}
if (sr & AT91C_TC_CPCS) {
+ usb_print_string_f("tc_cpcs ", 0);
DEBUGP("Compare_C ");
}
DEBUGPCR("");
personal git repositories of Harald Welte. Your mileage may vary