From 0548136a4c886830414fb575d9d0daa7f1a7d170 Mon Sep 17 00:00:00 2001 From: fishsoupisgood Date: Wed, 8 May 2019 23:17:01 +0100 Subject: sysclk back to 168MHz, 10Mhz -> TIM2 --- app/max7219.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/max7219.c') diff --git a/app/max7219.c b/app/max7219.c index fbba10d..bebfa50 100644 --- a/app/max7219.c +++ b/app/max7219.c @@ -103,7 +103,7 @@ void max7219_write (int d, int h, int m, int s) void max7219_dispatch (void) { - uint32_t now = SCS_DWT_CYCCNT; + uint32_t now = HW_CLOCK_REG; uint64_t abs = abs_extend (now); EPOCH e = pll_decompose (abs); UTC u = time_epoch_to_utc (e); -- cgit v1.2.3