aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demos/AVR/RT-ARDUINO-LEONARDO/main.c2
-rw-r--r--demos/AVR/RT-ARDUINO-MEGA/main.c2
-rw-r--r--demos/AVR/RT-ARDUINO-MINI/main.c3
-rw-r--r--demos/AVR/RT-ARDUINO-NANO/main.c3
-rw-r--r--demos/AVR/RT-ARDUINO-UNO/main.c2
-rw-r--r--demos/AVR/RT-DIGISPARK-ATTINY-167/main.c2
-rw-r--r--demos/AVR/RT-MT-DB-X4/main.c2
-rw-r--r--demos/AVR/RT-PRO-MICRO/main.c2
-rw-r--r--demos/AVR/RT-TEENSY2-USB/main.c1
-rw-r--r--demos/AVR/TEST-SUITE-OSLIB/main.c2
-rw-r--r--demos/AVR/TEST-SUITE-RT/main.c2
11 files changed, 13 insertions, 10 deletions
diff --git a/demos/AVR/RT-ARDUINO-LEONARDO/main.c b/demos/AVR/RT-ARDUINO-LEONARDO/main.c
index 7f770d392..0217830ba 100644
--- a/demos/AVR/RT-ARDUINO-LEONARDO/main.c
+++ b/demos/AVR/RT-ARDUINO-LEONARDO/main.c
@@ -70,7 +70,7 @@ int main(void) {
*/
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
- while (TRUE) {
+ while (true) {
if (SDU1.config->usbp->state == USB_ACTIVE) {
chnWrite(&SDU1, (const uint8_t *)"Hello from Arduino Leonardo!\r\n", 30);
}
diff --git a/demos/AVR/RT-ARDUINO-MEGA/main.c b/demos/AVR/RT-ARDUINO-MEGA/main.c
index 259b56750..3c67355fd 100644
--- a/demos/AVR/RT-ARDUINO-MEGA/main.c
+++ b/demos/AVR/RT-ARDUINO-MEGA/main.c
@@ -58,7 +58,7 @@ int main(void) {
*/
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
- while(TRUE) {
+ while (true) {
chThdSleepMilliseconds(1000);
}
}
diff --git a/demos/AVR/RT-ARDUINO-MINI/main.c b/demos/AVR/RT-ARDUINO-MINI/main.c
index 14a77d891..6ff7a525e 100644
--- a/demos/AVR/RT-ARDUINO-MINI/main.c
+++ b/demos/AVR/RT-ARDUINO-MINI/main.c
@@ -57,7 +57,8 @@ int main(void) {
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
chnWrite(&SD1, (const uint8_t *)"Hello World!\r\n", 14);
- while(TRUE) {
+
+ while (true) {
chThdSleepMilliseconds(1000);
}
}
diff --git a/demos/AVR/RT-ARDUINO-NANO/main.c b/demos/AVR/RT-ARDUINO-NANO/main.c
index 72137021c..38b1f12ef 100644
--- a/demos/AVR/RT-ARDUINO-NANO/main.c
+++ b/demos/AVR/RT-ARDUINO-NANO/main.c
@@ -57,7 +57,8 @@ int main(void) {
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
chnWrite(&SD1, (const uint8_t *)"Hello World!\r\n", 14);
- while(TRUE) {
+
+ while (true) {
chThdSleepMilliseconds(1000);
}
}
diff --git a/demos/AVR/RT-ARDUINO-UNO/main.c b/demos/AVR/RT-ARDUINO-UNO/main.c
index d5696e3e3..30edcd16e 100644
--- a/demos/AVR/RT-ARDUINO-UNO/main.c
+++ b/demos/AVR/RT-ARDUINO-UNO/main.c
@@ -58,7 +58,7 @@ int main(void) {
chnWrite(&SD1, (const uint8_t *)"Hello World!\r\n", 14);
- while (TRUE) {
+ while (true) {
chThdSleepMilliseconds(1000);
}
}
diff --git a/demos/AVR/RT-DIGISPARK-ATTINY-167/main.c b/demos/AVR/RT-DIGISPARK-ATTINY-167/main.c
index 5c1332643..c29f4f373 100644
--- a/demos/AVR/RT-DIGISPARK-ATTINY-167/main.c
+++ b/demos/AVR/RT-DIGISPARK-ATTINY-167/main.c
@@ -79,7 +79,7 @@ int main(void) {
*/
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
- while (TRUE) {
+ while (true) {
chThdSleepMilliseconds(1000);
}
}
diff --git a/demos/AVR/RT-MT-DB-X4/main.c b/demos/AVR/RT-MT-DB-X4/main.c
index cf97486db..36780bcb7 100644
--- a/demos/AVR/RT-MT-DB-X4/main.c
+++ b/demos/AVR/RT-MT-DB-X4/main.c
@@ -53,7 +53,7 @@ int main(void) {
*/
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
- while (TRUE) {
+ while (true) {
chThdSleepMilliseconds(100);
}
}
diff --git a/demos/AVR/RT-PRO-MICRO/main.c b/demos/AVR/RT-PRO-MICRO/main.c
index 38447aa97..ef94b9a8c 100644
--- a/demos/AVR/RT-PRO-MICRO/main.c
+++ b/demos/AVR/RT-PRO-MICRO/main.c
@@ -73,7 +73,7 @@ int main(void) {
*/
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
- while (TRUE) {
+ while (true) {
if (SDU1.config->usbp->state == USB_ACTIVE) {
chnWrite(&SDU1, (const uint8_t *)"Hello World!\r\n", 14);
}
diff --git a/demos/AVR/RT-TEENSY2-USB/main.c b/demos/AVR/RT-TEENSY2-USB/main.c
index 7944581c1..6ac4a2ff7 100644
--- a/demos/AVR/RT-TEENSY2-USB/main.c
+++ b/demos/AVR/RT-TEENSY2-USB/main.c
@@ -24,6 +24,7 @@
*/
static THD_WORKING_AREA(waThread1, 128);
static THD_FUNCTION(Thread1, arg) {
+
(void)arg;
chRegSetThreadName("blinker");
while (true) {
diff --git a/demos/AVR/TEST-SUITE-OSLIB/main.c b/demos/AVR/TEST-SUITE-OSLIB/main.c
index e9b12e078..ec0f29dab 100644
--- a/demos/AVR/TEST-SUITE-OSLIB/main.c
+++ b/demos/AVR/TEST-SUITE-OSLIB/main.c
@@ -62,7 +62,7 @@ int main(void) {
*/
test_execute((BaseSequentialStream *)&SD1, &oslib_test_suite);
- while (TRUE) {
+ while (true) {
chThdSleepMilliseconds(1000);
}
}
diff --git a/demos/AVR/TEST-SUITE-RT/main.c b/demos/AVR/TEST-SUITE-RT/main.c
index a75ed1963..358a3f0e3 100644
--- a/demos/AVR/TEST-SUITE-RT/main.c
+++ b/demos/AVR/TEST-SUITE-RT/main.c
@@ -62,7 +62,7 @@ int main(void) {
*/
test_execute((BaseSequentialStream *)&SD1, &rt_test_suite);
- while (TRUE) {
+ while (true) {
chThdSleepMilliseconds(1000);
}
}