diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-10-06 17:01:14 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-10-06 17:01:14 +0000 |
commit | 62645922467a2c748bf081b7eefb6ad775675418 (patch) | |
tree | cbae488a5774795170fe461c39b96038fbfaaadc /src | |
parent | 9229005c5d227cf42fc98c7a4e2b6f6edd513e2b (diff) | |
download | ChibiOS-62645922467a2c748bf081b7eefb6ad775675418.tar.gz ChibiOS-62645922467a2c748bf081b7eefb6ad775675418.tar.bz2 ChibiOS-62645922467a2c748bf081b7eefb6ad775675418.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@46 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/evtimer.c | 1 | ||||
-rw-r--r-- | src/lib/evtimer.h | 6 |
2 files changed, 4 insertions, 3 deletions
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.
|