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/tc_cdiv.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'openpicc/application/tc_cdiv.c') diff --git a/openpicc/application/tc_cdiv.c b/openpicc/application/tc_cdiv.c index 6f06ba5..638586d 100644 --- a/openpicc/application/tc_cdiv.c +++ b/openpicc/application/tc_cdiv.c @@ -23,12 +23,12 @@ #include #include -#include +#include "dbgu.h" -#include "../openpcd.h" -#include +#include "openpicc.h" +#include "tc_cdiv.h" -static AT91PS_TCB tcb = AT91C_BASE_TCB; +AT91PS_TCB tcb = AT91C_BASE_TCB; /* set carrier divider to a specific */ void tc_cdiv_set_divider(u_int16_t div) @@ -56,10 +56,10 @@ void tc_cdiv_init(void) { /* Cfg PA28(TCLK1), PA0(TIOA0), PA1(TIOB0), PA20(TCLK2) as Periph B */ AT91F_PIO_CfgPeriph(AT91C_BASE_PIOA, 0, - OPENPCD_PIO_CARRIER_IN | - OPENPCD_PIO_CARRIER_DIV_OUT | - OPENPCD_PIO_CDIV_HELP_OUT | - OPENPCD_PIO_CDIV_HELP_IN); + OPENPICC_PIO_CARRIER_IN | + OPENPICC_PIO_CARRIER_DIV_OUT | + OPENPICC_PIO_CDIV_HELP_OUT | + OPENPICC_PIO_CDIV_HELP_IN); AT91F_PMC_EnablePeriphClock(AT91C_BASE_PMC, ((unsigned int) 1 << AT91C_ID_TC0)); -- cgit v1.2.3