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

boards/sam3n-ek/examples/display/main.c

index b6c856e052513291195502dc3a4c99d42863b5b0..548625855c0a5ebdd4974b97f71099115c0f3d42 100644 (file)
@@ -81,21 +81,21 @@ static hptime_t start, end;
 INLINE void led_on(int idx)
 {
        if (idx == 0)
-               LED_ON(LED_BLUE_PIN);
+               LED_BLUE_ON();
        else if (idx == 1)
-               LED_ON(LED_GREEN_PIN);
+               LED_GREEN_ON();
        else if (idx == 2)
-               LED_ON(LED_AMBER_PIN);
+               LED_AMBER_ON();
 }
 
 INLINE void led_off(int idx)
 {
        if (idx == 0)
-               LED_OFF(LED_BLUE_PIN);
+               LED_BLUE_OFF();
        else if (idx == 1)
-               LED_OFF(LED_GREEN_PIN);
+               LED_GREEN_OFF();
        else if (idx == 2)
-               LED_OFF(LED_AMBER_PIN);
+               LED_AMBER_OFF();
 }
 
 static bool led_blinking;