Eliminate somw warnings

This commit is contained in:
Gregory Nutt 2015-09-08 09:19:40 -06:00
parent 6add91e42d
commit 7cf823fa97
4 changed files with 13 additions and 19 deletions

View File

@ -248,7 +248,7 @@ static int nsh_sdinitialize(void)
* inserted or deleted.
*/
#if NSH_HAVE_MMCSD_CDINT
#ifdef NSH_HAVE_MMCSD_CDINT
(void)irq_attach(LPC17_IRQ_P0p13, nsh_cdinterrupt);
up_enable_irq(LPC17_IRQ_P0p13);

View File

@ -699,7 +699,8 @@ CONFIG_MTD=y
# CONFIG_PIPES is not set
# CONFIG_PM is not set
# CONFIG_POWER is not set
# CONFIG_SENSORS is not set
CONFIG_SENSORS=y
CONFIG_LIS331DL=y
# CONFIG_SERCOMM_CONSOLE is not set
CONFIG_SERIAL=y
# CONFIG_DEV_LOWCONSOLE is not set

View File

@ -76,37 +76,31 @@ irqstate_t irqidle_mask;
* Private Functions
****************************************************************************/
static void led_setonoff(unsigned int bits)
{
}
/****************************************************************************
* Public Functions
****************************************************************************/
void board_led_initialize(void)
{
stm32_configgpio(GPIO_LED);
}
void board_led_on(int led)
{
if (led==LED_IDLE) {
irqidle_mask = irqsave();
stm32_gpiowrite(GPIO_LED, true);
}
if (led == LED_IDLE)
{
irqidle_mask = irqsave();
stm32_gpiowrite(GPIO_LED, true);
}
}
void board_led_off(int led)
{
if (led==LED_IDLE) {
stm32_gpiowrite(GPIO_LED, false);
irqrestore(irqidle_mask);
}
if (led == LED_IDLE)
{
stm32_gpiowrite(GPIO_LED, false);
irqrestore(irqidle_mask);
}
}
#endif /* CONFIG_ARCH_LEDS */

View File

@ -1,6 +1,5 @@
/****************************************************************************
* config/vsn/src/sif.c
* arch/arm/src/board/sif.c
*
* Copyright (C) 2011 Uros Platise. All rights reserved.
*