From 6549d8861a943b7c341a03901127d84f1fa41131 Mon Sep 17 00:00:00 2001 From: henryk Date: Mon, 26 Nov 2007 21:28:19 +0000 Subject: 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 --- openpicc/application/tc_fdt.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openpicc/application/tc_fdt.c') 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(""); -- cgit v1.2.3