arduino: fix hardware led module.
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 20 May 2010 15:13:16 +0000 (15:13 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 20 May 2010 15:13:16 +0000 (15:13 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3749 38d2e660-2303-0410-9eaa-f027e97ec537

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 */