diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-11-23 13:53:53 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2007-11-23 13:53:53 +0000 |
commit | f2ced068fb80aa38326e1ef75eafdd5834e9017a (patch) | |
tree | 20d9ae80ab056ee26917d836c0c5c7f3371f66b8 /demos | |
parent | f851339621a3179ded94f8a27b30c9345896ccc5 (diff) | |
download | ChibiOS-f2ced068fb80aa38326e1ef75eafdd5834e9017a.tar.gz ChibiOS-f2ced068fb80aa38326e1ef75eafdd5834e9017a.tar.bz2 ChibiOS-f2ced068fb80aa38326e1ef75eafdd5834e9017a.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@107 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rw-r--r-- | demos/ARM7-LPC214x-GCC/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/demos/ARM7-LPC214x-GCC/main.c b/demos/ARM7-LPC214x-GCC/main.c index 71fba60a8..b98747d20 100644 --- a/demos/ARM7-LPC214x-GCC/main.c +++ b/demos/ARM7-LPC214x-GCC/main.c @@ -139,13 +139,13 @@ int main(int argc, char **argv) { * Normal main() activity, in this demo it serves events generated by
* various sources.
*/
- evtInit(&evt, 500); /* Initializes an event timer object. */
- evtRegister(&evt, &el0, 0); /* Registers on the timer event source. */
- evtStart(&evt); /* Starts the event timer. */
- mmcStartPolling(); /* Starts the MMC connector polling. */
+ evtInit(&evt, 500); /* Initializes an event timer object. */
+ evtStart(&evt); /* Starts the event timer. */
+ chEvtRegister(&evt.et_es, &el0, 0); /* Registers on the timer event source. */
+ mmcStartPolling(); /* Starts the MMC connector polling. */
chEvtRegister(&MMCInsertEventSource, &el1, 1);
chEvtRegister(&MMCRemoveEventSource, &el2, 2);
- while (TRUE) /* Just serve events. */
+ while (TRUE) /* Just serve events. */
chEvtWait(ALL_EVENTS, evhndl);
return 0;
}
|