From 2b55faec5a6e3a4d2130ad341f01cd55116b64c3 Mon Sep 17 00:00:00 2001 From: laforge Date: Sun, 1 Oct 2006 21:44:32 +0000 Subject: synchronize bit clock based on software trigger (needed for cdiv_sync) git-svn-id: https://svn.openpcd.org:2342/trunk@251 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- firmware/src/os/tc_cdiv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/src/os/tc_cdiv.c b/firmware/src/os/tc_cdiv.c index 2b269fe..99a0975 100644 --- a/firmware/src/os/tc_cdiv.c +++ b/firmware/src/os/tc_cdiv.c @@ -79,7 +79,8 @@ void tc_cdiv_init(void) AT91C_TC_WAVESEL_UP_AUTO | AT91C_TC_ACPA_SET | AT91C_TC_ACPC_CLEAR | AT91C_TC_BEEVT_SET | AT91C_TC_BCPB_CLEAR | - AT91C_TC_EEVT_XC2 | AT91C_TC_ETRGEDG_RISING; + AT91C_TC_EEVT_XC2 | AT91C_TC_ETRGEDG_RISING | + AT91C_TC_BSWTRG_CLEAR; /* clear on swtrg */ tc_cdiv_set_divider(128); -- cgit v1.2.3