summaryrefslogtreecommitdiff
path: root/firmware/src/os
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/src/os')
-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