diff options
author | Fabio Utzig <utzig@utzig.org> | 2015-06-04 12:49:42 +0000 |
---|---|---|
committer | Fabio Utzig <utzig@utzig.org> | 2015-06-04 12:49:42 +0000 |
commit | eb6e02036033f1a1ad02eb7a88829f01090c150b (patch) | |
tree | 7770f73e0100d4161d9068860d7ea5abfe98c9ff /demos/AVR/RT-ARDUINOMEGA | |
parent | d72e5d4636b325ea06012646a96104092a7c1c5b (diff) | |
download | ChibiOS-eb6e02036033f1a1ad02eb7a88829f01090c150b.tar.gz ChibiOS-eb6e02036033f1a1ad02eb7a88829f01090c150b.tar.bz2 ChibiOS-eb6e02036033f1a1ad02eb7a88829f01090c150b.zip |
[AVR] Update thread to use definition macro
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8011 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/AVR/RT-ARDUINOMEGA')
-rw-r--r-- | demos/AVR/RT-ARDUINOMEGA/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/demos/AVR/RT-ARDUINOMEGA/main.c b/demos/AVR/RT-ARDUINOMEGA/main.c index 4db566c40..85122b347 100644 --- a/demos/AVR/RT-ARDUINOMEGA/main.c +++ b/demos/AVR/RT-ARDUINOMEGA/main.c @@ -19,8 +19,10 @@ #include "test.h"
static WORKING_AREA(waThread1, 32);
-static msg_t Thread1(void *arg) {
+static THD_FUNCTION(Thread1, arg) {
+ (void)arg;
+ chRegSetThreadName("Blinker");
while (true) {
palTogglePad(IOPORT2, PORTB_LED1);
chThdSleepMilliseconds(1000);
|