From: arighi Date: Thu, 20 May 2010 15:13:16 +0000 (+0000) Subject: arduino: fix hardware led module. X-Git-Tag: 2.5.0~168 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=366c02d6f05383863508ae721746fc12fe21c559;p=bertos.git arduino: fix hardware led module. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3749 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/boards/arduino/hw/hw_led.h b/boards/arduino/hw/hw_led.h index d1ced6b4..2bd46ee5 100644 --- a/boards/arduino/hw/hw_led.h +++ b/boards/arduino/hw/hw_led.h @@ -38,10 +38,10 @@ #ifndef HW_LED_H #define HW_LED_H -#define LED_ON() PORTG &= ~BV(PG4) -#define LED_OFF() PORTG |= BV(PG4) +#include -/* set pin PG4 as out */ -#define LED_INIT() DDRG |= BV(PG4) +#define LED_ON() PORTB |= BV(5) +#define LED_OFF() PORTB &= ~BV(5) +#define LED_INIT() DDRB |= BV(5) #endif /* HW_LED_H */