X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Farduino%2Fhw%2Fhw_led.h;h=2bd46ee54874af121c789e4061e6deb1bbe082cd;hb=3e3d6d6bd05c91f80c49ea1b2f193e1835fddccb;hp=d1ced6b48da18f2a90183d3b3d268df9734aa527;hpb=ecb34d7a7fa3e00d9157eeafa2dea50cbbc317ce;p=bertos.git 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 */