From 366c02d6f05383863508ae721746fc12fe21c559 Mon Sep 17 00:00:00 2001 From: arighi Date: Thu, 20 May 2010 15:13:16 +0000 Subject: [PATCH] arduino: fix hardware led module. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3749 38d2e660-2303-0410-9eaa-f027e97ec537 --- boards/arduino/hw/hw_led.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 */ -- 2.25.1