diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-04-03 12:48:22 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-04-03 12:48:22 +0000 |
commit | 15d0007e9687428fe314e1369a9bb4eeb427cfcc (patch) | |
tree | 0ac60d4ec0245764ad601d763b0d3d5dc7c76539 /demos/KINETIS/RT-FREEDOM-K20D50M/main.c | |
parent | 67b6d6cebf167faaf544886e1b1f41aaa404cb35 (diff) | |
download | ChibiOS-15d0007e9687428fe314e1369a9bb4eeb427cfcc.tar.gz ChibiOS-15d0007e9687428fe314e1369a9bb4eeb427cfcc.tar.bz2 ChibiOS-15d0007e9687428fe314e1369a9bb4eeb427cfcc.zip |
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
Diffstat (limited to 'demos/KINETIS/RT-FREEDOM-K20D50M/main.c')
-rw-r--r-- | demos/KINETIS/RT-FREEDOM-K20D50M/main.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/demos/KINETIS/RT-FREEDOM-K20D50M/main.c b/demos/KINETIS/RT-FREEDOM-K20D50M/main.c index 4a65f5234..9a2ca0eb9 100644 --- a/demos/KINETIS/RT-FREEDOM-K20D50M/main.c +++ b/demos/KINETIS/RT-FREEDOM-K20D50M/main.c @@ -23,12 +23,10 @@ static THD_FUNCTION(Thread1, arg) { (void)arg;
chRegSetThreadName("RedBlinker");
- while (TRUE) {
+ while (true) {
palTogglePad(IOPORT3, 3);
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(IOPORT4, 4);
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(IOPORT1, 2);
chThdSleepMilliseconds(900);
}
-
- return 0;
}
/*
|