diff options
Diffstat (limited to 'demos/KINETIS/RT-FREEDOM-KL25Z')
-rw-r--r-- | demos/KINETIS/RT-FREEDOM-KL25Z/main.c | 12 |
1 files changed, 3 insertions, 9 deletions
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;
}
/*
|