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 --- testhal/STM32/STM32F1xx/I2C/main.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'testhal/STM32/STM32F1xx/I2C/main.c') diff --git a/testhal/STM32/STM32F1xx/I2C/main.c b/testhal/STM32/STM32F1xx/I2C/main.c index 67a5c0aab..36fb15ac5 100644 --- a/testhal/STM32/STM32F1xx/I2C/main.c +++ b/testhal/STM32/STM32F1xx/I2C/main.c @@ -42,14 +42,14 @@ static float acc[3]; */ static THD_WORKING_AREA(PollAccelThreadWA, 256); static THD_FUNCTION(PollAccelThread, arg) { - chRegSetThreadName("PollAccel"); + (void)arg; - while (TRUE) { + chRegSetThreadName("PollAccel"); + while (true) { osalThreadSleepMilliseconds(32); lis3GetAcc(acc); } - return 0; } /* @@ -57,14 +57,14 @@ static THD_FUNCTION(PollAccelThread, arg) { */ static THD_WORKING_AREA(PollFakeThreadWA, 256); static THD_FUNCTION(PollFakeThread, arg) { - chRegSetThreadName("PollFake"); + (void)arg; - while (TRUE) { + chRegSetThreadName("PollFake"); + while (true) { osalThreadSleepMilliseconds(16); request_fake(); } - return 0; } /* @@ -103,7 +103,7 @@ int main(void) { NULL); /* main loop handles LED */ - while (TRUE) { + while (true) { if (sqrtf(acc[0]*acc[0] + acc[1]*acc[1]) > 0.5) palClearPad(IOPORT3, GPIOC_LED); /* on */ else -- cgit v1.2.3