Implement etimer callback

This commit is contained in:
Ralf Schlatterbeck 2016-05-05 16:18:21 +02:00
parent c043a00bb4
commit 0232e6c9dc
8 changed files with 47 additions and 11 deletions

View file

@ -4,7 +4,9 @@ icosoc.mk
icosoc.pcf
icosoc.v
icosoc.ys
icosoc.rpt
wallclock.co
wallclock.pico-rv32-icoboard
icosoc.c
icosoc.h
testbench.v

View file

@ -73,10 +73,7 @@ PROCESS (wallclock, "Wallclock Example Server");
AUTOSTART_PROCESSES(&wallclock);
//#define LOOP_INTERVAL (30 * CLOCK_SECOND)
//#define LOOP_INTERVAL (3 * CLOCK_SECOND)
// one more than this will currently hang, probably due to
// non-implemented etimer callback.
#define LOOP_INTERVAL (25461)
#define LOOP_INTERVAL (5 * CLOCK_SECOND)
/*
* Set led to on or off, we abuse the given pointer to simply carry the