aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/AVR/I2C/main.c
diff options
context:
space:
mode:
authortfateba <tfateba@35acf78f-673a-0410-8e92-d51de3d6d3f4>2016-12-04 20:19:13 +0000
committertfateba <tfateba@35acf78f-673a-0410-8e92-d51de3d6d3f4>2016-12-04 20:19:13 +0000
commit3d17c576a4ad165919142ea2b2e7b9dcf0bb3a09 (patch)
tree1ef86ba81e60b8ef191330125106e74f6ca8bd92 /testhal/AVR/I2C/main.c
parentb4bb9f7ddce01ceeaf5a25bbfca2cebcf211acec (diff)
downloadChibiOS-3d17c576a4ad165919142ea2b2e7b9dcf0bb3a09.tar.gz
ChibiOS-3d17c576a4ad165919142ea2b2e7b9dcf0bb3a09.tar.bz2
ChibiOS-3d17c576a4ad165919142ea2b2e7b9dcf0bb3a09.zip
Fixed Compilation errors and update testhal/AVR/I2C/ files.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9952 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/AVR/I2C/main.c')
-rw-r--r--testhal/AVR/I2C/main.c7
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);