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/main.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'openpicc/application/main.c') 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); -- cgit v1.2.3