summaryrefslogtreecommitdiff
path: root/openpicc/application/cmd.c
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-13 04:37:38 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-13 04:37:38 +0000
commitee1f021427f8966fb29e70eab1a3be4345af65b1 (patch)
treeda67b9d102daaea09e06be52cc53c186a17ed507 /openpicc/application/cmd.c
parent3d0a9bd40be2d014e0877eb623042c899d8cbe66 (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.c5
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"
personal git repositories of Harald Welte. Your mileage may vary