aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32L1xx/ADC/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32L1xx/ADC/main.c')
-rw-r--r--testhal/STM32L1xx/ADC/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/testhal/STM32L1xx/ADC/main.c b/testhal/STM32L1xx/ADC/main.c
index 9ca4b541f..8a2b3897b 100644
--- a/testhal/STM32L1xx/ADC/main.c
+++ b/testhal/STM32L1xx/ADC/main.c
@@ -94,10 +94,11 @@ static const ADCConversionGroup adcgrpcfg2 = {
/*
* Red LEDs blinker thread, times are in milliseconds.
*/
-static WORKING_AREA(waThread1, 128);
-static msg_t Thread1(void *arg) {
+static THD_WORKING_AREA(waThread1, 128);
+static THD_FUNCTION(Thread1, arg) {
(void)arg;
+
chRegSetThreadName("blinker");
while (TRUE) {
palSetPad(GPIOB, GPIOB_LED4);