From 4a3b6b964cbe499b079c52f1a2df7ff6c2c341a9 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 28 Dec 2009 22:59:24 +0000 Subject: [PATCH] Fixes for recent header file reorganization git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2448 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/imx/imx_allocateheap.c | 1 + arch/arm/src/imx/imx_boot.c | 12 ++++++++++++ arch/arm/src/imx/imx_decodeirq.c | 1 + arch/arm/src/imx/imx_gpio.c | 1 + arch/arm/src/imx/imx_irq.c | 1 + arch/arm/src/imx/imx_lowputc.S | 2 ++ arch/arm/src/imx/imx_serial.c | 2 ++ arch/arm/src/imx/imx_spi.c | 2 +- arch/arm/src/imx/imx_timerisr.c | 4 +++- 9 files changed, 24 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/imx/imx_allocateheap.c b/arch/arm/src/imx/imx_allocateheap.c index a9ba6800f4..1574cac007 100644 --- a/arch/arm/src/imx/imx_allocateheap.c +++ b/arch/arm/src/imx/imx_allocateheap.c @@ -48,6 +48,7 @@ #include #include +#include "chip.h" #include "up_arch.h" #include "up_internal.h" diff --git a/arch/arm/src/imx/imx_boot.c b/arch/arm/src/imx/imx_boot.c index 4979d77605..842050e154 100644 --- a/arch/arm/src/imx/imx_boot.c +++ b/arch/arm/src/imx/imx_boot.c @@ -41,6 +41,7 @@ #include #include +#include "chip.h" #include "up_internal.h" #include "up_arch.h" @@ -210,4 +211,15 @@ void up_boot(void) /* Perform board-specific initialiation */ imx_boardinitialize(); + + /* Set up the board-specific LEDs */ + +#ifdef CONFIG_ARCH_LEDS + up_ledinit(); +#endif + /* Perform early serial initialization */ + +#ifdef CONFIG_USE_EARLYSERIALINIT + up_earlyserialinit(); +#endif } diff --git a/arch/arm/src/imx/imx_decodeirq.c b/arch/arm/src/imx/imx_decodeirq.c index 4657d18da1..96a40fd4a7 100644 --- a/arch/arm/src/imx/imx_decodeirq.c +++ b/arch/arm/src/imx/imx_decodeirq.c @@ -46,6 +46,7 @@ #include #include +#include "chip.h" #include "up_arch.h" #include "os_internal.h" #include "up_internal.h" diff --git a/arch/arm/src/imx/imx_gpio.c b/arch/arm/src/imx/imx_gpio.c index 9ca86e1207..f6099310f6 100644 --- a/arch/arm/src/imx/imx_gpio.c +++ b/arch/arm/src/imx/imx_gpio.c @@ -40,6 +40,7 @@ #include +#include "chip.h" #include "up_arch.h" #include "imx_gpio.h" diff --git a/arch/arm/src/imx/imx_irq.c b/arch/arm/src/imx/imx_irq.c index 2793438ed1..b346064c54 100644 --- a/arch/arm/src/imx/imx_irq.c +++ b/arch/arm/src/imx/imx_irq.c @@ -43,6 +43,7 @@ #include #include +#include "chip.h" #include "up_arch.h" #include "os_internal.h" #include "up_internal.h" diff --git a/arch/arm/src/imx/imx_lowputc.S b/arch/arm/src/imx/imx_lowputc.S index e146c5bec7..c009556220 100644 --- a/arch/arm/src/imx/imx_lowputc.S +++ b/arch/arm/src/imx/imx_lowputc.S @@ -39,6 +39,8 @@ **************************************************************************/ #include + +#include "chip.h" #include "up_internal.h" #include "up_arch.h" diff --git a/arch/arm/src/imx/imx_serial.c b/arch/arm/src/imx/imx_serial.c index 5a03a70bb1..984f516497 100644 --- a/arch/arm/src/imx/imx_serial.c +++ b/arch/arm/src/imx/imx_serial.c @@ -53,7 +53,9 @@ #include #include #include +#include +#include "chip.h" #include "up_arch.h" #include "imx_gpio.h" #include "os_internal.h" diff --git a/arch/arm/src/imx/imx_spi.c b/arch/arm/src/imx/imx_spi.c index 5f065f8866..0a7ca9af06 100755 --- a/arch/arm/src/imx/imx_spi.c +++ b/arch/arm/src/imx/imx_spi.c @@ -332,7 +332,7 @@ static void spi_rxnull(struct imx_spidev_s *priv) (void)spi_getreg(priv, CSPI_RXD_OFFSET); } -static voidspi_rxuint16(struct imx_spidev_s *priv) +static void spi_rxuint16(struct imx_spidev_s *priv) { uint16_t *ptr = (uint16_t*)priv->rxbuffer; *ptr++ = (uint16_t)spi_getreg(priv, CSPI_TXD_OFFSET); diff --git a/arch/arm/src/imx/imx_timerisr.c b/arch/arm/src/imx/imx_timerisr.c index 74429ef5ec..30367e97c0 100644 --- a/arch/arm/src/imx/imx_timerisr.c +++ b/arch/arm/src/imx/imx_timerisr.c @@ -44,10 +44,12 @@ #include #include #include +#include +#include "chip.h" +#include "up_arch.h" #include "clock_internal.h" #include "up_internal.h" -#include "up_arch.h" /**************************************************************************** * Pre-processor Definitions