summaryrefslogtreecommitdiff
path: root/openpicc/application/main.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/main.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/main.c')
-rw-r--r--openpicc/application/main.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/openpicc/application/main.c b/openpicc/application/main.c
index 8f950ab..8d0070d 100644
--- a/openpicc/application/main.c
+++ b/openpicc/application/main.c
@@ -39,9 +39,11 @@
#include "env.h"
#include "cmd.h"
#include "da.h"
+#include "adc.h"
#include "pll.h"
#include "pio_irq.h"
#include "ssc_picc.h"
+#include "tc_cdiv.h"
#include "tc_cdiv_sync.h"
/**********************************************************************/
@@ -85,16 +87,18 @@ int main (void)
pio_irq_init();
- tc_cdiv_sync_init();
- ssc_tx_init();
- //ssc_rx_init();
-
vLedInit();
da_init();
+ adc_init();
pll_init();
+ tc_cdiv_init();
+ tc_cdiv_sync_init();
+ ssc_tx_init();
+ //ssc_rx_init();
+
xTaskCreate (vUSBCDCTask, (signed portCHAR *) "USB", TASK_USB_STACK,
NULL, TASK_USB_PRIORITY, NULL);
personal git repositories of Harald Welte. Your mileage may vary