From 62645922467a2c748bf081b7eefb6ad775675418 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 6 Oct 2007 17:01:14 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@46 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/lib/evtimer.c | 1 + src/lib/evtimer.h | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/lib') diff --git a/src/lib/evtimer.c b/src/lib/evtimer.c index 212c8f124..1ab384086 100644 --- a/src/lib/evtimer.c +++ b/src/lib/evtimer.c @@ -32,6 +32,7 @@ static void tmrcb(void *p) { EvTimer *etp = p; + chEvtSendI(&etp->et_es); chVTSetI(&etp->et_vt, etp->et_interval, tmrcb, etp); } diff --git a/src/lib/evtimer.h b/src/lib/evtimer.h index 43b0374ee..dfe09f0be 100644 --- a/src/lib/evtimer.h +++ b/src/lib/evtimer.h @@ -46,9 +46,9 @@ extern "C" { /** * Initializes an \p EvTimer structure. */ -#define evtInit(et, i) (chEvtInit(&(etp)->et_es), \ - (etp)->et_vt.vt_func = NULL, \ - (etp)->et_interval = (i)) +#define evtInit(etp, i) (chEvtInit(&(etp)->et_es), \ + (etp)->et_vt.vt_func = NULL, \ + (etp)->et_interval = (i)) /** * Registers the invoking thread as listener on the timer event. -- cgit v1.2.3