aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32L1xx/ADC/main.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-09-30 10:00:19 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-09-30 10:00:19 +0000
commit984148e9dbda3053aec71ea7da545bc75cd33e94 (patch)
tree18ef26443394093f7e2ca7ced34e75d06f627e9a /testhal/STM32L1xx/ADC/main.c
parent17cb6b9bb62820acc954db2fde2ea79696b34325 (diff)
downloadChibiOS-984148e9dbda3053aec71ea7da545bc75cd33e94.tar.gz
ChibiOS-984148e9dbda3053aec71ea7da545bc75cd33e94.tar.bz2
ChibiOS-984148e9dbda3053aec71ea7da545bc75cd33e94.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6334 35acf78f-673a-0410-8e92-d51de3d6d3f4
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);