diff options
author | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2007-11-13 04:37:38 +0000 |
---|---|---|
committer | henryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2007-11-13 04:37:38 +0000 |
commit | ee1f021427f8966fb29e70eab1a3be4345af65b1 (patch) | |
tree | da67b9d102daaea09e06be52cc53c186a17ed507 /openpicc/application/cmd.c | |
parent | 3d0a9bd40be2d014e0877eb623042c899d8cbe66 (diff) |
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
Diffstat (limited to 'openpicc/application/cmd.c')
-rw-r--r-- | openpicc/application/cmd.c | 5 |
1 files changed, 5 insertions, 0 deletions
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" |