aboutsummaryrefslogtreecommitdiffstats
path: root/demos/TIVA/RT-TM4C123G-LAUNCHPAD/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/TIVA/RT-TM4C123G-LAUNCHPAD/main.c')
-rw-r--r--demos/TIVA/RT-TM4C123G-LAUNCHPAD/main.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/demos/TIVA/RT-TM4C123G-LAUNCHPAD/main.c b/demos/TIVA/RT-TM4C123G-LAUNCHPAD/main.c
index 0a64adb..29a1b20 100644
--- a/demos/TIVA/RT-TM4C123G-LAUNCHPAD/main.c
+++ b/demos/TIVA/RT-TM4C123G-LAUNCHPAD/main.c
@@ -16,7 +16,7 @@
#include "ch.h"
#include "hal.h"
-#include "test.h"
+#include "ch_test.h"
typedef struct led_config
{
@@ -31,8 +31,7 @@ typedef struct led_config
static THD_WORKING_AREA(waBlinkLedRed, 128);
static THD_WORKING_AREA(waBlinkLedGreen, 128);
static THD_WORKING_AREA(waBlinkLedBlue, 128);
-static msg_t blinkLed(void *arg)
-{
+static THD_FUNCTION(blinkLed, arg) {
led_config_t *ledConfig = (led_config_t*) arg;
chRegSetThreadName("Blinker");
@@ -43,8 +42,6 @@ static msg_t blinkLed(void *arg)
chThdSleepMilliseconds(ledConfig->sleep);
palTogglePad(ledConfig->port, ledConfig->pin);
}
-
- return (msg_t) 0;
}
/*
@@ -72,7 +69,7 @@ int main(void)
sdStart(&SD1, NULL);
if (!palReadPad(GPIOF, GPIOF_SW2)) {
- TestThread(&SD1);
+ test_execute((BaseSequentialStream *)&SD1);
}
ledRed.port = GPIOF;
@@ -101,6 +98,6 @@ int main(void)
while (TRUE) {
chThdSleepMilliseconds(100);
}
-
+
return 0;
}