sam3n-ek example: fix led macros
authoraleph <aleph@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 5 Nov 2010 09:27:23 +0000 (09:27 +0000)
committeraleph <aleph@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 5 Nov 2010 09:27:23 +0000 (09:27 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4505 38d2e660-2303-0410-9eaa-f027e97ec537

boards/sam3n-ek/hw/hw_led.h

index c441a0f04f64255be462078f28fb1f78e09a1181..0951b9bebbd83adb76410caf58aeacbb31a18d6a 100644 (file)
 #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 { \