Skip to content
Snippets Groups Projects
Commit 88a9e8af authored by Christian Dietrich's avatar Christian Dietrich
Browse files

patmos: synchronous clock

parent 7ea2abfb
Branches
Tags
No related merge requests found
SET(PASIM_FREQ 10 CACHE INTERNAL STRING) # -1: synchroneous interrupts with executed instructions
SET(PASIM_FREQ -1 CACHE INTERNAL STRING)
set(SRCS set(SRCS
crt0.c crt0.c
......
...@@ -46,8 +46,7 @@ void IRQ::set_timer_interval(int ms) { ...@@ -46,8 +46,7 @@ void IRQ::set_timer_interval(int ms) {
uint64_t time_cur = (((uint64_t)u) << 32) | l; uint64_t time_cur = (((uint64_t)u) << 32) | l;
// Time til next interrupt // Time til next interrupt
const int TIMER_FREQUENCY = 1000; uint64_t time_inter = 100000;
uint64_t time_inter = (ms * 1000000U) / TIMER_FREQUENCY;
uint64_t time_new = time_cur + time_inter; uint64_t time_new = time_cur + time_inter;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment