diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-09-11 16:50:16 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-09-11 16:50:16 +0000 |
commit | 88da8a5b4f042532c0b980510b0d90b77158eff4 (patch) | |
tree | 7549e64438eb97eda761a8274c9e00fa92870b20 /nuttx/configs/fire-stm32v2/src/up_autoleds.c | |
parent | 9f572dff87614ce1d025e8d98fac36db13bcfd71 (diff) | |
download | px4-nuttx-88da8a5b4f042532c0b980510b0d90b77158eff4.tar.gz px4-nuttx-88da8a5b4f042532c0b980510b0d90b77158eff4.tar.bz2 px4-nuttx-88da8a5b4f042532c0b980510b0d90b77158eff4.zip |
Updates/fixes related to ENC28J60, Kconfigs, and fire-stm32v2
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5128 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/fire-stm32v2/src/up_autoleds.c')
-rw-r--r-- | nuttx/configs/fire-stm32v2/src/up_autoleds.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/nuttx/configs/fire-stm32v2/src/up_autoleds.c b/nuttx/configs/fire-stm32v2/src/up_autoleds.c index 088d0b14d..4e70b01dd 100644 --- a/nuttx/configs/fire-stm32v2/src/up_autoleds.c +++ b/nuttx/configs/fire-stm32v2/src/up_autoleds.c @@ -193,7 +193,8 @@ static struct pm_callback_s g_ledscb = * Name: led_clrbits * * Description: - * Clear all LEDs to the bit encoded state + * Clear all LEDs to the bit encoded state. The LEDs are pulled up and, + * hence, active low. * ****************************************************************************/ @@ -201,17 +202,17 @@ static inline void led_clrbits(unsigned int clrbits) { if ((clrbits & FIRE_LED1) != 0) { - stm32_gpiowrite(GPIO_LED1, false); + stm32_gpiowrite(GPIO_LED1, true); } if ((clrbits & FIRE_LED2) != 0) { - stm32_gpiowrite(GPIO_LED2, false); + stm32_gpiowrite(GPIO_LED2, true); } if ((clrbits & FIRE_LED3) != 0) { - stm32_gpiowrite(GPIO_LED3, false); + stm32_gpiowrite(GPIO_LED3, true); } } @@ -219,7 +220,8 @@ static inline void led_clrbits(unsigned int clrbits) * Name: led_setbits * * Description: - * Set all LEDs to the bit encoded state + * Set all LEDs to the bit encoded state. The LEDs are pulled up and, + * hence, active low. * ****************************************************************************/ @@ -227,17 +229,17 @@ static inline void led_setbits(unsigned int setbits) { if ((setbits & FIRE_LED1) != 0) { - stm32_gpiowrite(GPIO_LED1, true); + stm32_gpiowrite(GPIO_LED1, false); } if ((setbits & FIRE_LED2) != 0) { - stm32_gpiowrite(GPIO_LED2, true); + stm32_gpiowrite(GPIO_LED2, false); } if ((setbits & FIRE_LED3) != 0) { - stm32_gpiowrite(GPIO_LED3, true); + stm32_gpiowrite(GPIO_LED3, false); } } |