From d27a58798955bad789da8f89acadf8c4341c2ecb Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 22 Mar 2013 14:49:21 +0000 Subject: Add kernel build support to the STM32 family and to the STM32F4Discovery board git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5774 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/arch/arm/src/lpc17xx/lpc17_mpuinit.c | 2 +- nuttx/arch/arm/src/lpc17xx/lpc17_start.c | 2 +- nuttx/arch/arm/src/lpc17xx/lpc17_userspace.h | 1 - nuttx/arch/arm/src/lpc17xx/lpc17_vectors.S | 6 +++--- 4 files changed, 5 insertions(+), 6 deletions(-) (limited to 'nuttx/arch/arm/src/lpc17xx') diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_mpuinit.c b/nuttx/arch/arm/src/lpc17xx/lpc17_mpuinit.c index c5d1ab11c..046f6e703 100644 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_mpuinit.c +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_mpuinit.c @@ -1,5 +1,5 @@ /**************************************************************************** - * arch/arm/src/common/lpc17_mpuinit.c + * arch/arm/src/lpc17xx/lpc17_mpuinit.c * * Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_start.c b/nuttx/arch/arm/src/lpc17xx/lpc17_start.c index 57496ab2a..f5af4c913 100644 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_start.c +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_start.c @@ -236,7 +236,7 @@ void __start(void) /* For the case of the separate user-/kernel-space build, perform whatever * platform specific initialization of the user memory is required. * Normally this just means initializing the user space .data and .bss - * segements. + * segments. */ #ifdef CONFIG_NUTTX_KERNEL diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_userspace.h b/nuttx/arch/arm/src/lpc17xx/lpc17_userspace.h index c4d265cc0..7f9c75dd4 100644 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_userspace.h +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_userspace.h @@ -41,7 +41,6 @@ ************************************************************************************/ #include -#include "chip/lpc17_qei.h" /************************************************************************************ * Pre-processor Definitions diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_vectors.S b/nuttx/arch/arm/src/lpc17xx/lpc17_vectors.S index 9575e1f3e..06b6afdf6 100644 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_vectors.S +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_vectors.S @@ -61,7 +61,7 @@ * 0x1000:7fff - End of CPU SRAM and end of heap (1st region) */ -#define IDLE_STACK (_ebss+CONFIG_IDLETHREAD_STACKSIZE) +#define IDLE_STACK (_ebss+CONFIG_IDLETHREAD_STACKSIZE-4) #define HEAP_BASE (_ebss+CONFIG_IDLETHREAD_STACKSIZE) /* The Cortex-M3 return from interrupt is unusual. We provide the following special @@ -306,8 +306,8 @@ lpc17_common: #endif /* We are returning with a pending context switch. This case is different - * because in this case, the register save structure does not lie on the - * stack but, rather, are within a TCB structure. We'll have to copy some + * because in this case, the register save structure does not lie in the + * stack but, rather, within a TCB structure. We'll have to copy some * values to the stack. */ -- cgit v1.2.3