diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-05-02 09:24:36 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-05-02 09:24:36 -0600 |
commit | 2567deb0338a774086231fbb778b639c10398cc1 (patch) | |
tree | a07d023fcece582db7b4cb4c7aa286073938d6e3 /nuttx/configs/freedom-kl25z | |
parent | bb95a53a6ae12defb44b61ddff8b55011f983196 (diff) | |
download | px4-nuttx-2567deb0338a774086231fbb778b639c10398cc1.tar.gz px4-nuttx-2567deb0338a774086231fbb778b639c10398cc1.tar.bz2 px4-nuttx-2567deb0338a774086231fbb778b639c10398cc1.zip |
Repartitioning of header files for Kinetis L
Diffstat (limited to 'nuttx/configs/freedom-kl25z')
-rw-r--r-- | nuttx/configs/freedom-kl25z/src/freedom-kl25z.h | 6 | ||||
-rw-r--r-- | nuttx/configs/freedom-kl25z/src/kl_led.c | 8 |
2 files changed, 6 insertions, 8 deletions
diff --git a/nuttx/configs/freedom-kl25z/src/freedom-kl25z.h b/nuttx/configs/freedom-kl25z/src/freedom-kl25z.h index b387b5a55..cc2f35a84 100644 --- a/nuttx/configs/freedom-kl25z/src/freedom-kl25z.h +++ b/nuttx/configs/freedom-kl25z/src/freedom-kl25z.h @@ -79,9 +79,9 @@ * LED_IDLE K25Z1XX is in sleep mode (Optional, not used) */ -#define GPIO_LED_R (GPIO_OUTPUT | GPIO_OUTPUT_SET | GPIO_PORTB | GPIO_PIN18) -#define GPIO_LED_G (GPIO_OUTPUT | GPIO_OUTPUT_SET | GPIO_PORTB | GPIO_PIN19) -#define GPIO_LED_B (GPIO_OUTPUT | GPIO_OUTPUT_SET | GPIO_PORTD | GPIO_PIN1) +#define GPIO_LED_R (GPIO_OUTPUT | PIN_PORTB | PIN18) +#define GPIO_LED_G (GPIO_OUTPUT | PIN_PORTB | PIN19) +#define GPIO_LED_B (GPIO_OUTPUT | PIN_PORTD | PIN1) /* Button definitions ***************************************************************/ /* The Freedom KL25Z has no buttons */ diff --git a/nuttx/configs/freedom-kl25z/src/kl_led.c b/nuttx/configs/freedom-kl25z/src/kl_led.c index ccd4b4f58..a71c56638 100644 --- a/nuttx/configs/freedom-kl25z/src/kl_led.c +++ b/nuttx/configs/freedom-kl25z/src/kl_led.c @@ -127,11 +127,9 @@ void kl_ledinit(void) { - led_dumpgpio("Before configuration"); - //kl_configgpio(GPIO_LED_R); - //kl_configgpio(GPIO_LED_G); - //kl_configgpio(GPIO_LED_B); - led_dumpgpio("After configuration"); + kl_configgpio(GPIO_LED_R); + kl_configgpio(GPIO_LED_G); + kl_configgpio(GPIO_LED_B); } /**************************************************************************** |