aboutsummaryrefslogtreecommitdiffstats
path: root/demos/KINETIS/RT-TEENSY3/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/KINETIS/RT-TEENSY3/main.c')
-rw-r--r--demos/KINETIS/RT-TEENSY3/main.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/demos/KINETIS/RT-TEENSY3/main.c b/demos/KINETIS/RT-TEENSY3/main.c
index 9a541206d..591bd0ff8 100644
--- a/demos/KINETIS/RT-TEENSY3/main.c
+++ b/demos/KINETIS/RT-TEENSY3/main.c
@@ -22,16 +22,14 @@
* LED blinker thread.
*/
static THD_WORKING_AREA(waThread1, 64);
-static msg_t Thread1(void *arg) {
+static THD_FUNCTION(Thread1, arg) {
(void)arg;
chRegSetThreadName("LEDBlinker");
- while (TRUE) {
+ while (true) {
palTogglePad(IOPORT3, PORTC_TEENSY_PIN13);
chThdSleepMilliseconds(500);
}
-
- return 0;
}
/*
@@ -60,7 +58,7 @@ int main(void) {
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
TestThread(&SD1);
- while (TRUE) {
+ while (true) {
chThdSleepMilliseconds(1000);
}