From ee1f021427f8966fb29e70eab1a3be4345af65b1 Mon Sep 17 00:00:00 2001 From: henryk Date: Tue, 13 Nov 2007 04:37:38 +0000 Subject: Get tc_cdiv working (presumably, need to check on the oscilloscope) Add adc code to read the field strength git-svn-id: https://svn.openpcd.org:2342/trunk@325 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/cmd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openpicc/application/cmd.c') diff --git a/openpicc/application/cmd.c b/openpicc/application/cmd.c index d7ce784..e6b8947 100644 --- a/openpicc/application/cmd.c +++ b/openpicc/application/cmd.c @@ -11,6 +11,8 @@ #include "openpicc.h" #include "led.h" #include "da.h" +#include "adc.h" +#include "tc_cdiv.h" #include "tc_cdiv_sync.h" #include "pio_irq.h" @@ -230,6 +232,9 @@ void prvExecCommand(u_int32_t cmd, portCHAR *args) { i = pio_irq_get_count() & (~(unsigned int)0); DumpUIntToUSB(i); DumpStringToUSB("\n\r"); + DumpStringToUSB(" * current field strength: "); + DumpUIntToUSB(adc_get_field_strength()); + DumpStringToUSB("\n\r"); DumpStringToUSB( " *\n\r" " *****************************************************\n\r" -- cgit v1.2.3