From 5cc0ed498f99d3b23c6f1b87a9a2fdcbb05dd1a9 Mon Sep 17 00:00:00 2001 From: henryk Date: Wed, 21 Nov 2007 00:30:19 +0000 Subject: Checking in status quo: Can currently receive and print frames in ssc continuous mode (with new short and incomplete ssc irq handler: FIXME, either switch back to original handler (maybe fixing it if necessary) or handle the missing cases in the new handler). Lots of debug statements still in there git-svn-id: https://svn.openpcd.org:2342/trunk@335 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/cmd.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'openpicc/application/cmd.c') diff --git a/openpicc/application/cmd.c b/openpicc/application/cmd.c index 4ba149f..1e7b552 100644 --- a/openpicc/application/cmd.c +++ b/openpicc/application/cmd.c @@ -193,6 +193,13 @@ void prvExecCommand(u_int32_t cmd, portCHAR *args) { DumpStringToUSB("cdiv_sync enabled \n\r"); } break; + case 'D': + i=atoiEx(args, &args); + tc_cdiv_set_divider(i); + DumpStringToUSB("tc_cdiv set to "); + DumpUIntToUSB(i); + DumpStringToUSB("\n\r"); + break; case 'P': print_pio(); break; @@ -236,6 +243,15 @@ void prvExecCommand(u_int32_t cmd, portCHAR *args) { DumpStringToUSB(" * current field strength: "); DumpUIntToUSB(adc_get_field_strength()); DumpStringToUSB("\n\r"); + DumpStringToUSB(" * SSC RX overflows: "); + DumpUIntToUSB(ssc_get_overflows()); + DumpStringToUSB("\n\r"); + DumpStringToUSB(" * SSC free buffers: "); + DumpUIntToUSB(ssc_count_free()); + DumpStringToUSB("\n\r"); + DumpStringToUSB(" * SSC status: "); + DumpUIntToUSB(AT91C_BASE_SSC->SSC_SR); + DumpStringToUSB("\n\r"); DumpStringToUSB( " *\n\r" " *****************************************************\n\r" @@ -296,6 +312,7 @@ void prvExecCommand(u_int32_t cmd, portCHAR *args) { " * z 0/1- enable or disable tc_cdiv_sync\n\r" " * ! - reset tc_cdiv_sync\n\r" " * q - start rx\n\r" + " * d div- set tc_cdiv divider value 16, 32, 64, ...\n\r" " * 9 - reset CPU\n\r" " * ?,h - display this help screen\n\r" " *\n\r" -- cgit v1.2.3