From 4e1880672f38ceb600c7dc7d3179dbb9f11f792d Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Tue, 22 Mar 2022 19:11:58 -0700 Subject: Working on time --- src/sys/core.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/sys/core.c') diff --git a/src/sys/core.c b/src/sys/core.c index ef8d4b7..d76b712 100644 --- a/src/sys/core.c +++ b/src/sys/core.c @@ -33,13 +33,13 @@ void sysinit(void) store32(1<<25, IRQ_ENABLE2); // Enable Timer //// Get the frequency - //cntfrq = read_cntfrq(); - //// Clear cntv interrupt and set next 1 second timer - //write_cntv_tval(cntfrq/100); - //// Route timer to core0 fiq - //routing_core0cntv_to_core0fiq(); - //// Enable timer - //enablecntv(); + cntfrq = read_cntfrq(); + // Clear cntv interrupt and set next 1 second timer + write_cntv_tval(cntfrq); + // Route timer to core0 fiq + routing_core0cntv_to_core0fiq(); + // Enable timer + enablecntv(); // Enable system timer store32(SYS_TIMER_SC_M0, IRQ_ENABLE1); -- cgit v1.2.1