diff options
Diffstat (limited to 'testhal/AVR/I2C/main.c')
-rw-r--r-- | testhal/AVR/I2C/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/testhal/AVR/I2C/main.c b/testhal/AVR/I2C/main.c index 94e461eb7..45d3b09a1 100644 --- a/testhal/AVR/I2C/main.c +++ b/testhal/AVR/I2C/main.c @@ -17,8 +17,11 @@ #include "ch.h"
#include "hal.h"
-static WORKING_AREA(waThread1, 32);
-static msg_t Thread1(void *arg) {
+static THD_WORKING_AREA(waThread1, 32);
+static THD_FUNCTION(Thread1, arg) {
+
+ (void)arg;
+ chRegSetThreadName("Blinker");
while (true) {
palTogglePad(IOPORT2, PORTB_LED1);
|