diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-07-23 10:38:16 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-07-23 10:38:16 +0000 |
commit | 077d372e2ffc959be1f13d23ee14d00a53589b4a (patch) | |
tree | ed13caefb991ae693201440cb75856e93699a40a /demos/ARM7-LPC214x-GCC/mmcsd.c | |
parent | 65961139301315ba0507a07c607e961b1c40a5ae (diff) | |
download | ChibiOS-077d372e2ffc959be1f13d23ee14d00a53589b4a.tar.gz ChibiOS-077d372e2ffc959be1f13d23ee14d00a53589b4a.tar.bz2 ChibiOS-077d372e2ffc959be1f13d23ee14d00a53589b4a.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@349 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-LPC214x-GCC/mmcsd.c')
-rw-r--r-- | demos/ARM7-LPC214x-GCC/mmcsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/ARM7-LPC214x-GCC/mmcsd.c b/demos/ARM7-LPC214x-GCC/mmcsd.c index 98d377406..bd1997fce 100644 --- a/demos/ARM7-LPC214x-GCC/mmcsd.c +++ b/demos/ARM7-LPC214x-GCC/mmcsd.c @@ -44,7 +44,7 @@ void tmrfunc(void *par) { if (cnt) {
if (!(IO1PIN & (1 << 25))) {
if (!--cnt)
- chEvtSendI(&MMCInsertEventSource);
+ chEvtBroadcastI(&MMCInsertEventSource);
}
else
cnt = POLLING_INTERVAL;
@@ -52,7 +52,7 @@ void tmrfunc(void *par) { else {
if (IO1PIN & (1 << 25)) {
cnt = POLLING_INTERVAL;
- chEvtSendI(&MMCRemoveEventSource);
+ chEvtBroadcastI(&MMCRemoveEventSource);
}
}
chVTSetI(&vt, 10, tmrfunc, NULL);
|