summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-10-01 21:44:32 +0000
committerlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-10-01 21:44:32 +0000
commit2b55faec5a6e3a4d2130ad341f01cd55116b64c3 (patch)
tree18dc179f7e6f07ba21d228e4be0363c09947b36f
parentf1cae2aa9e420242134fb0df3ff06f6605bdffab (diff)
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
-rw-r--r--firmware/src/os/tc_cdiv.c3
1 files changed, 2 insertions, 1 deletions
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);
personal git repositories of Harald Welte. Your mileage may vary