From 15d0007e9687428fe314e1369a9bb4eeb427cfcc Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 3 Apr 2015 12:48:22 +0000 Subject: Mass change, all thread functions now return void. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7849 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/KINETIS/RT-FREEDOM-KL25Z/main.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'demos/KINETIS/RT-FREEDOM-KL25Z') diff --git a/demos/KINETIS/RT-FREEDOM-KL25Z/main.c b/demos/KINETIS/RT-FREEDOM-KL25Z/main.c index f4cf28678..d565ca041 100644 --- a/demos/KINETIS/RT-FREEDOM-KL25Z/main.c +++ b/demos/KINETIS/RT-FREEDOM-KL25Z/main.c @@ -23,12 +23,10 @@ static THD_FUNCTION(Thread1, arg) { (void)arg; chRegSetThreadName("RedBlinker"); - while (TRUE) { + while (true) { palTogglePad(IOPORT2, 18); chThdSleepMilliseconds(300); } - - return 0; } static THD_WORKING_AREA(waThread2, 64); @@ -36,12 +34,10 @@ static THD_FUNCTION(Thread2, arg) { (void)arg; chRegSetThreadName("GreenBlinker"); - while (TRUE) { + while (true) { palTogglePad(IOPORT2, 19); chThdSleepMilliseconds(600); } - - return 0; } static THD_WORKING_AREA(waThread3, 64); @@ -49,12 +45,10 @@ static THD_FUNCTION(Thread3, arg) { (void)arg; chRegSetThreadName("BlueBlinker"); - while (TRUE) { + while (true) { palTogglePad(IOPORT4, 1); chThdSleepMilliseconds(900); } - - return 0; } /* -- cgit v1.2.3