aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-LPC214x-GCC/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/ARM7-LPC214x-GCC/main.c')
-rw-r--r--demos/ARM7-LPC214x-GCC/main.c10
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;
}