diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-09-30 10:00:19 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-09-30 10:00:19 +0000 |
commit | 984148e9dbda3053aec71ea7da545bc75cd33e94 (patch) | |
tree | 18ef26443394093f7e2ca7ced34e75d06f627e9a /testhal/STM32L1xx/ADC/main.c | |
parent | 17cb6b9bb62820acc954db2fde2ea79696b34325 (diff) | |
download | ChibiOS-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.c | 5 |
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);
|