diff --git a/configs/open1788/src/lpc17_nsh.c b/configs/open1788/src/lpc17_nsh.c index b972c224db..9dbad32472 100644 --- a/configs/open1788/src/lpc17_nsh.c +++ b/configs/open1788/src/lpc17_nsh.c @@ -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); diff --git a/configs/vsn/nsh/defconfig b/configs/vsn/nsh/defconfig index 3f1308b4d6..fd95ed928c 100644 --- a/configs/vsn/nsh/defconfig +++ b/configs/vsn/nsh/defconfig @@ -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 diff --git a/configs/vsn/src/leds.c b/configs/vsn/src/leds.c index 3875e0f3c5..e4af5188f6 100644 --- a/configs/vsn/src/leds.c +++ b/configs/vsn/src/leds.c @@ -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 */ diff --git a/configs/vsn/src/sif.c b/configs/vsn/src/sif.c index 4f31041715..49d80a7c33 100644 --- a/configs/vsn/src/sif.c +++ b/configs/vsn/src/sif.c @@ -1,6 +1,5 @@ /**************************************************************************** * config/vsn/src/sif.c - * arch/arm/src/board/sif.c * * Copyright (C) 2011 Uros Platise. All rights reserved. *