From 4fc627f08b942df8312ad02f24a361b18c4b790b Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 18 Nov 2007 09:45:45 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@95 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/ARM7-LPC214x-GCC/main.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'demos/ARM7-LPC214x-GCC/main.c') diff --git a/demos/ARM7-LPC214x-GCC/main.c b/demos/ARM7-LPC214x-GCC/main.c index 14e03170d..1829e6eb6 100644 --- a/demos/ARM7-LPC214x-GCC/main.c +++ b/demos/ARM7-LPC214x-GCC/main.c @@ -25,18 +25,6 @@ #include "buzzer.h" #include "evtimer.h" -/* - * System Idle Thread, this thread only runs when on other threads in the - * system require the CPU. - * The role of this thread is to minimize the power consumption when idling - * and serve the interrupts. - */ -static BYTE8 waIdleThread[UserStackSize(16)]; -static t_msg IdleThread(void *arg) { - - chSysPause(); -} - /* * Red LEDs blinker thread, times are in milliseconds. */ @@ -138,15 +126,6 @@ int main(int argc, char **argv) { */ chSysInit(); - /* - * This thread has the lowest priority in the system, its role is just to - * execute the chSysPause() and serve interrupts in its context. - * In ChibiOS/RT at least one thread in the system *must* execute - * chThdPause(), it can be done in a dedicated thread or in the main() - * function (that would never exit the call). - */ - chThdCreate(IDLEPRIO, 0, waIdleThread, sizeof(waIdleThread), IdleThread, NULL); - /* * If a button is pressed during the reset then the blinking leds threads * are not started in order to make accurate benchmarks. @@ -163,7 +142,7 @@ int main(int argc, char **argv) { chThdSetPriority(NORMALPRIO); /* - * Normal main() activity, in this demo it server events incoming from + * Normal main() activity, in this demo it serves events generated by * various sources. */ evtInit(&evt, 500); /* Initializes an event timer object. */ -- cgit v1.2.3