From 70542995be139ee60405e3f810d16845a998ad88 Mon Sep 17 00:00:00 2001 From: tfateba Date: Wed, 13 Jun 2018 09:40:20 +0000 Subject: AVR: Update demo. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12094 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- demos/AVR/RT-ARDUINO-LEONARDO/main.c | 2 +- demos/AVR/RT-ARDUINO-MEGA/main.c | 2 +- demos/AVR/RT-ARDUINO-MINI/main.c | 3 ++- demos/AVR/RT-ARDUINO-NANO/main.c | 3 ++- demos/AVR/RT-ARDUINO-UNO/main.c | 2 +- demos/AVR/RT-DIGISPARK-ATTINY-167/main.c | 2 +- demos/AVR/RT-MT-DB-X4/main.c | 2 +- demos/AVR/RT-PRO-MICRO/main.c | 2 +- demos/AVR/RT-TEENSY2-USB/main.c | 1 + demos/AVR/TEST-SUITE-OSLIB/main.c | 2 +- demos/AVR/TEST-SUITE-RT/main.c | 2 +- 11 files changed, 13 insertions(+), 10 deletions(-) (limited to 'demos/AVR') 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); } } -- cgit v1.2.3