[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
This commit is contained in:
parent
d72e5d4636
commit
eb6e020360
|
@ -19,8 +19,10 @@
|
||||||
#include "test.h"
|
#include "test.h"
|
||||||
|
|
||||||
static WORKING_AREA(waThread1, 32);
|
static WORKING_AREA(waThread1, 32);
|
||||||
static msg_t Thread1(void *arg) {
|
static THD_FUNCTION(Thread1, arg) {
|
||||||
|
|
||||||
|
(void)arg;
|
||||||
|
chRegSetThreadName("Blinker");
|
||||||
while (true) {
|
while (true) {
|
||||||
palTogglePad(IOPORT2, PORTB_LED1);
|
palTogglePad(IOPORT2, PORTB_LED1);
|
||||||
chThdSleepMilliseconds(1000);
|
chThdSleepMilliseconds(1000);
|
||||||
|
|
Loading…
Reference in New Issue