summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/kl/kl_gpio.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-05-06 11:07:53 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-05-06 11:07:53 -0600
commitb6d1d101fc17a7627ca5cc88366fd7a1904bf74e (patch)
treebfaa13406f44c39949b0b0c4e2a46b00f2ebb2fb /nuttx/arch/arm/src/kl/kl_gpio.c
parente21898b25ae82d55bd2e80b86e3ad61c1ed56643 (diff)
downloadpx4-nuttx-b6d1d101fc17a7627ca5cc88366fd7a1904bf74e.tar.gz
px4-nuttx-b6d1d101fc17a7627ca5cc88366fd7a1904bf74e.tar.bz2
px4-nuttx-b6d1d101fc17a7627ca5cc88366fd7a1904bf74e.zip
Fixes LEDs on the Freedom KL25Z board
Diffstat (limited to 'nuttx/arch/arm/src/kl/kl_gpio.c')
-rw-r--r--nuttx/arch/arm/src/kl/kl_gpio.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/kl/kl_gpio.c b/nuttx/arch/arm/src/kl/kl_gpio.c
index 78d49e0c9..58de0eea1 100644
--- a/nuttx/arch/arm/src/kl/kl_gpio.c
+++ b/nuttx/arch/arm/src/kl/kl_gpio.c
@@ -1,7 +1,7 @@
/****************************************************************************
* arch/arm/src/kl/kl_pin.c
*
- * Copyright (C) 2011 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -103,7 +103,7 @@ int kl_configgpio(uint32_t cfgset)
* options are applicable.
*/
- if (mode == _PIN_MODE_ANALOG)
+ if (mode == PIN_MODE_ANALOG)
{
/* Set the analog mode with all digital options zeroed */
@@ -184,7 +184,7 @@ int kl_configgpio(uint32_t cfgset)
/* Additional configuration for the case of Alternative 1 (GPIO) modes */
- if (mode == _PIN_MODE_GPIO)
+ if (mode == PIN_MODE_GPIO)
{
/* Set the GPIO port direction */
@@ -213,6 +213,7 @@ int kl_configgpio(uint32_t cfgset)
return OK;
}
+
return -EINVAL;
}