From: aleph Date: Fri, 5 Nov 2010 09:35:27 +0000 (+0000) Subject: sam3n-ek example: fix led handling X-Git-Tag: 2.6.0~5^2~14 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=52c1b9a7bc7bb6d0d5df301de55d86820e9947c8;p=bertos.git sam3n-ek example: fix led handling git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4506 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/boards/sam3n-ek/examples/display/main.c b/boards/sam3n-ek/examples/display/main.c index b6c856e0..54862585 100644 --- a/boards/sam3n-ek/examples/display/main.c +++ b/boards/sam3n-ek/examples/display/main.c @@ -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;