From d1eefba4536055fa99bc872bd2a64c9076407398 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 31 Mar 2019 13:48:50 -0400 Subject: [PATCH] pru: The TMR_CNT is cleared by writing all ones Signed-off-by: Kevin O'Connor --- src/pru/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pru/main.c b/src/pru/main.c index e91477e1..2528a223 100644 --- a/src/pru/main.c +++ b/src/pru/main.c @@ -105,7 +105,7 @@ timer_init(void) { CT_IEP.TMR_CMP_CFG = 0x01 << 1; CT_IEP.TMR_GLB_CFG = 0x11; - CT_IEP.TMR_CNT = 0; + CT_IEP.TMR_CNT = 0xffffffff; timer_kick(); } DECL_INIT(timer_init);