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/tc_cdiv.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/tc_cdiv.c')
-rw-r--r-- | openpicc/application/tc_cdiv.c | 16 |
1 files changed, 8 insertions, 8 deletions
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 <lib_AT91SAM7.h> #include <AT91SAM7.h> -#include <os/dbgu.h> +#include "dbgu.h" -#include "../openpcd.h" -#include <os/tc_cdiv.h> +#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)); |