Eliminate somw warnings
This commit is contained in:
parent
6add91e42d
commit
7cf823fa97
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
@ -1,6 +1,5 @@
|
||||
/****************************************************************************
|
||||
* config/vsn/src/sif.c
|
||||
* arch/arm/src/board/sif.c
|
||||
*
|
||||
* Copyright (C) 2011 Uros Platise. All rights reserved.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user