From 8271bad00be647ecdc6501f1ca0de56b574144f8 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 29 Dec 2009 00:48:56 +0000 Subject: [PATCH] Fixes for recent header file reorganization git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2452 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/cortexm3/up_doirq.c | 4 +++- arch/arm/src/lm3s/lm3s_ethernet.c | 5 +++-- arch/arm/src/lm3s/lm3s_lowputc.c | 6 ++++-- arch/arm/src/lm3s/lm3s_start.c | 1 + arch/arm/src/stm32/stm32_dma.c | 3 +-- arch/arm/src/stm32/stm32_lowputc.c | 1 + arch/arm/src/stm32/stm32_sdio.c | 3 +++ arch/arm/src/stm32/stm32_serial.c | 2 ++ arch/arm/src/stm32/stm32_spi.c | 3 ++- arch/arm/src/stm32/stm32_start.c | 2 ++ arch/arm/src/stm32/stm32_usbdev.c | 1 - configs/stm3210e-eval/src/up_extmem.c | 3 ++- configs/stm3210e-eval/src/up_selectnor.c | 3 +++ configs/stm3210e-eval/src/up_selectsram.c | 3 +++ 14 files changed, 30 insertions(+), 10 deletions(-) diff --git a/arch/arm/src/cortexm3/up_doirq.c b/arch/arm/src/cortexm3/up_doirq.c index f465109a10..d5f3a61857 100644 --- a/arch/arm/src/cortexm3/up_doirq.c +++ b/arch/arm/src/cortexm3/up_doirq.c @@ -40,9 +40,11 @@ #include #include +#include + #include #include -#include +#include #include "up_arch.h" #include "os_internal.h" diff --git a/arch/arm/src/lm3s/lm3s_ethernet.c b/arch/arm/src/lm3s/lm3s_ethernet.c index 940fa6aec4..02d41e3da2 100644 --- a/arch/arm/src/lm3s/lm3s_ethernet.c +++ b/arch/arm/src/lm3s/lm3s_ethernet.c @@ -50,13 +50,14 @@ #include #include - +#include #include #include #include -#include "up_arch.h" #include "chip.h" +#include "up_arch.h" + #include "lm3s_internal.h" /**************************************************************************** diff --git a/arch/arm/src/lm3s/lm3s_lowputc.c b/arch/arm/src/lm3s/lm3s_lowputc.c index aa7f5466a4..70d37b0c02 100644 --- a/arch/arm/src/lm3s/lm3s_lowputc.c +++ b/arch/arm/src/lm3s/lm3s_lowputc.c @@ -40,10 +40,12 @@ #include #include -#include "up_internal.h" -#include "up_arch.h" +#include #include "chip.h" +#include "up_arch.h" +#include "up_internal.h" + #include "lm3s_internal.h" /************************************************************************** diff --git a/arch/arm/src/lm3s/lm3s_start.c b/arch/arm/src/lm3s/lm3s_start.c index 272ebec173..292467d568 100644 --- a/arch/arm/src/lm3s/lm3s_start.c +++ b/arch/arm/src/lm3s/lm3s_start.c @@ -45,6 +45,7 @@ #include #include +#include #include "up_arch.h" #include "up_internal.h" diff --git a/arch/arm/src/stm32/stm32_dma.c b/arch/arm/src/stm32/stm32_dma.c index 3050820d11..77d6261273 100755 --- a/arch/arm/src/stm32/stm32_dma.c +++ b/arch/arm/src/stm32/stm32_dma.c @@ -274,7 +274,7 @@ static int stm32_dmainterrupt(int irq, void *context) { struct stm32_dma_s *dmach; uint32_t isr; - int chndx; + int chndx = 0; /* Get the channel structure from the interrupt number */ @@ -502,7 +502,6 @@ void stm32_dmasetup(DMA_HANDLE handle, uint32_t paddr, uint32_t maddr, size_t nt void stm32_dmastart(DMA_HANDLE handle, dma_callback_t callback, void *arg, bool half) { struct stm32_dma_s *dmach = (struct stm32_dma_s *)handle; - int irq; uint32_t ccr; DEBUGASSERT(handle != NULL); diff --git a/arch/arm/src/stm32/stm32_lowputc.c b/arch/arm/src/stm32/stm32_lowputc.c index 93e6b747f5..bc5022cf13 100644 --- a/arch/arm/src/stm32/stm32_lowputc.c +++ b/arch/arm/src/stm32/stm32_lowputc.c @@ -40,6 +40,7 @@ #include #include + #include #include "up_internal.h" diff --git a/arch/arm/src/stm32/stm32_sdio.c b/arch/arm/src/stm32/stm32_sdio.c index 8500ae6612..f70418bb8a 100644 --- a/arch/arm/src/stm32/stm32_sdio.c +++ b/arch/arm/src/stm32/stm32_sdio.c @@ -53,10 +53,13 @@ #include #include #include + #include +#include #include "chip.h" #include "up_arch.h" + #include "stm32_internal.h" #include "stm32_dma.h" #include "stm32_sdio.h" diff --git a/arch/arm/src/stm32/stm32_serial.c b/arch/arm/src/stm32/stm32_serial.c index 2ff783b0a1..111ca62ad5 100644 --- a/arch/arm/src/stm32/stm32_serial.c +++ b/arch/arm/src/stm32/stm32_serial.c @@ -51,7 +51,9 @@ #include #include #include + #include +#include #include "chip.h" #include "stm32_uart.h" diff --git a/arch/arm/src/stm32/stm32_spi.c b/arch/arm/src/stm32/stm32_spi.c index bdea7da379..de0ff2ac50 100755 --- a/arch/arm/src/stm32/stm32_spi.c +++ b/arch/arm/src/stm32/stm32_spi.c @@ -68,10 +68,11 @@ #include #include -#include #include #include +#include + #include "up_internal.h" #include "up_arch.h" diff --git a/arch/arm/src/stm32/stm32_start.c b/arch/arm/src/stm32/stm32_start.c index 7ed3c0851f..1ac753f5ac 100644 --- a/arch/arm/src/stm32/stm32_start.c +++ b/arch/arm/src/stm32/stm32_start.c @@ -45,9 +45,11 @@ #include #include +#include #include "up_arch.h" #include "up_internal.h" + #include "stm32_internal.h" /**************************************************************************** diff --git a/arch/arm/src/stm32/stm32_usbdev.c b/arch/arm/src/stm32/stm32_usbdev.c index 7fbcd3ef7a..07e3ae417f 100644 --- a/arch/arm/src/stm32/stm32_usbdev.c +++ b/arch/arm/src/stm32/stm32_usbdev.c @@ -3454,7 +3454,6 @@ void up_usbuninitialize(void) */ struct stm32_usbdev_s *priv = &g_usbdev; - uint16_t regval; irqstate_t flags; usbtrace(TRACE_DEVUNINIT, 0); diff --git a/configs/stm3210e-eval/src/up_extmem.c b/configs/stm3210e-eval/src/up_extmem.c index 18c39e8444..2209d16c24 100644 --- a/configs/stm3210e-eval/src/up_extmem.c +++ b/configs/stm3210e-eval/src/up_extmem.c @@ -46,8 +46,9 @@ #include -#include "up_arch.h" #include "chip.h" +#include "up_arch.h" + #include "stm32_fsmc.h" #include "stm32_gpio.h" #include "stm32_internal.h" diff --git a/configs/stm3210e-eval/src/up_selectnor.c b/configs/stm3210e-eval/src/up_selectnor.c index 3c41b1c9fc..a625abc82f 100644 --- a/configs/stm3210e-eval/src/up_selectnor.c +++ b/configs/stm3210e-eval/src/up_selectnor.c @@ -43,9 +43,12 @@ #include #include +#include "chip.h" #include "up_arch.h" + #include "stm32_fsmc.h" #include "stm32_gpio.h" +#include "stm32_internal.h" #include "stm3210e-internal.h" #ifdef CONFIG_STM32_FSMC diff --git a/configs/stm3210e-eval/src/up_selectsram.c b/configs/stm3210e-eval/src/up_selectsram.c index 0b3d2d4952..67515a52d6 100644 --- a/configs/stm3210e-eval/src/up_selectsram.c +++ b/configs/stm3210e-eval/src/up_selectsram.c @@ -43,9 +43,12 @@ #include #include +#include "chip.h" #include "up_arch.h" + #include "stm32_fsmc.h" #include "stm32_gpio.h" +#include "stm32_internal.h" #include "stm3210e-internal.h" #ifdef CONFIG_STM32_FSMC