From f8e4f3c7c1fec67b18126ee082f964cf9ceb14c7 Mon Sep 17 00:00:00 2001 From: aleph Date: Fri, 5 Nov 2010 09:27:23 +0000 Subject: [PATCH] sam3n-ek example: fix led macros git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4505 38d2e660-2303-0410-9eaa-f027e97ec537 --- boards/sam3n-ek/hw/hw_led.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 { \ -- 2.25.1