From: aleph Date: Fri, 5 Nov 2010 09:27:23 +0000 (+0000) Subject: sam3n-ek example: fix led macros X-Git-Tag: 2.6.0~5^2~15 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=f8e4f3c7c1fec67b18126ee082f964cf9ceb14c7;p=bertos.git sam3n-ek example: fix led macros git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4505 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/boards/sam3n-ek/hw/hw_led.h b/boards/sam3n-ek/hw/hw_led.h index c441a0f0..0951b9be 100644 --- a/boards/sam3n-ek/hw/hw_led.h +++ b/boards/sam3n-ek/hw/hw_led.h @@ -45,8 +45,12 @@ #define LED_AMBER_PIN BV(25) // Port A #define LED_GREEN_PIN BV(14) // Port B -#define LED_ON(led) (PIOA_CODR = led) -#define LED_OFF(led) (PIOA_SODR = led) +#define LED_BLUE_ON(led) (PIOA_CODR = LED_BLUE_PIN) +#define LED_BLUE_OFF(led) (PIOA_SODR = LED_BLUE_PIN) +#define LED_AMBER_ON(led) (PIOA_CODR = LED_AMBER_PIN) +#define LED_AMBER_OFF(led) (PIOA_SODR = LED_AMBER_PIN) +#define LED_GREEN_ON(led) (PIOB_CODR = LED_GREEN_PIN) +#define LED_GREEN_OFF(led) (PIOB_SODR = LED_GREEN_PIN) #define LED_INIT() \ do { \