From fde6c30ac2ee2cccf9871fd363f93fcc4488ef48 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 26 Sep 2013 07:15:52 -0600 Subject: [PATCH] ZIT-ARM-1769: Led to LED control logic from Raashid Fatah --- configs/zkit-arm-1769/src/up_leds.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configs/zkit-arm-1769/src/up_leds.c b/configs/zkit-arm-1769/src/up_leds.c index cff4f4cd2d..2b331b5bb8 100644 --- a/configs/zkit-arm-1769/src/up_leds.c +++ b/configs/zkit-arm-1769/src/up_leds.c @@ -157,8 +157,8 @@ void up_ledon(int led) break; } - lpc17_led(ZKITARM_LED1, led1); - lpc17_led(ZKITARM_LED2, led2); + lpc17_gpiowrite(ZKITARM_LED1, led1); + lpc17_gpiowrite(ZKITARM_LED2, led2); } /* We will always control the HB LED */ @@ -187,7 +187,7 @@ void up_ledoff(int led) if (g_nestcount <= 1) { - lpc17_led(ZKITARM_LED2, true); + lpc17_gpiowrite(ZKITARM_LED2, true); g_nestcount = 0; } else @@ -206,7 +206,7 @@ void up_ledoff(int led) void lpc17_led(int lednum, int state) { - lpc17_gpiowrite(lednum, state); + lpc17_gpiowrite(ZKITARM_LED1, state); } #endif /* CONFIG_ARCH_LEDS */