aboutsummaryrefslogtreecommitdiffstats
path: root/demos/SPC5/RT-SPC56EL-EVB
diff options
context:
space:
mode:
Diffstat (limited to 'demos/SPC5/RT-SPC56EL-EVB')
-rw-r--r--demos/SPC5/RT-SPC56EL-EVB/main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/demos/SPC5/RT-SPC56EL-EVB/main.c b/demos/SPC5/RT-SPC56EL-EVB/main.c
index 9b401b0ec..1806961b2 100644
--- a/demos/SPC5/RT-SPC56EL-EVB/main.c
+++ b/demos/SPC5/RT-SPC56EL-EVB/main.c
@@ -90,12 +90,12 @@ static const ShellConfig shell_cfg1 = {
* LEDs blinker thread, times are in milliseconds.
*/
static THD_WORKING_AREA(waThread1, 128);
-static msg_t Thread1(void *arg) {
+static THD_FUNCTION(Thread1, arg) {
(void)arg;
chRegSetThreadName("blinker");
- while (TRUE) {
+ while (true) {
unsigned i;
for (i = 0; i < 4; i++) {
@@ -153,7 +153,6 @@ static msg_t Thread1(void *arg) {
palSetPort(PORT_D, PAL_PORT_BIT(PD_LED1) | PAL_PORT_BIT(PD_LED2) |
PAL_PORT_BIT(PD_LED3) | PAL_PORT_BIT(PD_LED4));
}
- return 0;
}
/*
@@ -190,7 +189,7 @@ int main(void) {
/*
* Normal main() thread activity.
*/
- while (TRUE) {
+ while (true) {
if (!shelltp)
shelltp = shellCreate(&shell_cfg1, SHELL_WA_SIZE, NORMALPRIO);
else if (chThdTerminatedX(shelltp)) {