From 85500fe0d01b691a9bdd8c2330d26d66bc2bc177 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Fri, 18 Oct 2019 18:38:00 +0200 Subject: added spi driver --- code/fe310/eos/timer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'code/fe310/eos/timer.c') diff --git a/code/fe310/eos/timer.c b/code/fe310/eos/timer.c index 25b7e7e..6589c06 100644 --- a/code/fe310/eos/timer.c +++ b/code/fe310/eos/timer.c @@ -1,5 +1,5 @@ -#include -#include +#include +#include #include "encoding.h" #include "platform.h" @@ -88,7 +88,7 @@ void eos_timer_set(uint64_t tick, unsigned char evt, unsigned char b) { int i; uint64_t *mtimecmp = (uint64_t *) (CLINT_CTRL_ADDR + CLINT_MTIMECMP); uint64_t next = 0; - + if (evt && (evt <= EOS_TIMER_MAX_ETYPE)) { evt--; } else if (evt == 0) { -- cgit v1.2.3