arduino: fix hardware led module.
[bertos.git] / boards / arduino / hw / hw_led.h
index d1ced6b48da18f2a90183d3b3d268df9734aa527..2bd46ee54874af121c789e4061e6deb1bbe082cd 100644 (file)
 #ifndef HW_LED_H
 #define HW_LED_H
 
-#define LED_ON()    PORTG &= ~BV(PG4)
-#define LED_OFF()   PORTG |= BV(PG4)
+#include <avr/io.h>
 
-/* 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 */