diff options
author | laforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-10-01 21:44:32 +0000 |
---|---|---|
committer | laforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-10-01 21:44:32 +0000 |
commit | 2b55faec5a6e3a4d2130ad341f01cd55116b64c3 (patch) | |
tree | 18dc179f7e6f07ba21d228e4be0363c09947b36f /firmware/src/os | |
parent | f1cae2aa9e420242134fb0df3ff06f6605bdffab (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
Diffstat (limited to 'firmware/src/os')
-rw-r--r-- | firmware/src/os/tc_cdiv.c | 3 |
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); |