diff --git a/arch/arm/src/common/arm.h b/arch/arm/src/common/arm.h index 8f359781387fb25fdc42d9562eef259747d447ea..2c2f6b6df4c3a730eadc2562d5f98f5f23c0f2c2 100644 --- a/arch/arm/src/common/arm.h +++ b/arch/arm/src/common/arm.h @@ -1,7 +1,7 @@ /************************************************************************************ - * common/arm.h + * arch/arm/src/common/arm.h * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -33,8 +33,8 @@ * ************************************************************************************/ -#ifndef __ARM_H -#define __ARM_H +#ifndef __ARCH_ARM_SRC_COMMON_ARM_H +#define __ARCH_ARM_SRC_COMMON_ARM_H /************************************************************************************ * Included Files @@ -249,6 +249,6 @@ #ifndef __ASSEMBLY__ -#endif +#endif /* __ASSEMBLY__ */ -#endif /* __ARM_H */ +#endif /* __ARCH_ARM_SRC_COMMON_ARM_H */ diff --git a/arch/arm/src/common/up_allocateheap.c b/arch/arm/src/common/up_allocateheap.c index 8e8f6b1697127fdcbaa9eff0055dfd61fa42692e..1aeb511f86b9abb07f166b89a75e9474215d1917 100644 --- a/arch/arm/src/common/up_allocateheap.c +++ b/arch/arm/src/common/up_allocateheap.c @@ -1,7 +1,7 @@ -/************************************************************ - * common/up_allocateheap.c +/**************************************************************************** + * arch/arm/src/common/up_allocateheap.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,36 +31,39 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> + #include <sys/types.h> #include <debug.h> + #include <nuttx/arch.h> + #include "up_arch.h" #include "up_internal.h" -/************************************************************ +/**************************************************************************** * Private Definitions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Data - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Public Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: up_allocate_heap * * Description: @@ -69,7 +72,7 @@ * are not defined, then this function will be called to * dynamically set aside the heap region. * - ************************************************************/ + ****************************************************************************/ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) { diff --git a/arch/arm/src/common/up_arch.h b/arch/arm/src/common/up_arch.h index eb4770686902c0da198073d22791d4139120d688..57d2af04a9b458eae07309d07713abb723952974 100644 --- a/arch/arm/src/common/up_arch.h +++ b/arch/arm/src/common/up_arch.h @@ -1,7 +1,7 @@ -/************************************************************************************ - * common/up_arch.h +/**************************************************************************** + * arch/arm/src/common/up_arch.h * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,14 +31,14 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************************************/ + ****************************************************************************/ -#ifndef __UP_ARCH_H -#define __UP_ARCH_H +#ifndef ___ARCH_ARM_SRC_COMMON_UP_ARCH_H +#define ___ARCH_ARM_SRC_COMMON_UP_ARCH_H -/************************************************************************************ +/**************************************************************************** * Included Files - ************************************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #ifndef __ASSEMBLY__ @@ -49,13 +49,13 @@ #include <arch/board/board.h> #include "chip.h" -/************************************************************************************ +/**************************************************************************** * Definitions - ************************************************************************************/ + ****************************************************************************/ -/************************************************************************************ +/**************************************************************************** * Inline Functions - ************************************************************************************/ + ****************************************************************************/ #ifndef __ASSEMBLY__ @@ -89,4 +89,4 @@ static inline void putreg16(uint16 val, unsigned int addr) #endif -#endif /* __UP_ARCH_H */ +#endif /* ___ARCH_ARM_SRC_COMMON_UP_ARCH_H */ diff --git a/arch/arm/src/common/up_blocktask.c b/arch/arm/src/common/up_blocktask.c index ed27d2e87383d4064bf52c237b1b378ecc09d46c..cb4744fd8235770d872ffe0d334ff89369a1e087 100644 --- a/arch/arm/src/common/up_blocktask.c +++ b/arch/arm/src/common/up_blocktask.c @@ -1,7 +1,7 @@ -/************************************************************ - * common/up_blocktask.c +/**************************************************************************** + * arch/arm/src/common/up_blocktask.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -45,23 +45,23 @@ #include "os_internal.h" #include "up_internal.h" -/************************************************************ +/**************************************************************************** * Private Definitions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Data - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Funtions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Public Funtions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: up_block_task * * Description: @@ -79,7 +79,7 @@ * task_state: Specifies which waiting task list should be * hold the blocked task TCB. * - ************************************************************/ + ****************************************************************************/ void up_block_task(_TCB *tcb, tstate_t task_state) { diff --git a/arch/arm/src/common/up_copystate.c b/arch/arm/src/common/up_copystate.c index 9d21630e131b6f1a4d3c607bc21c7a50d8cbfd69..06ca5a80fdc3a5fdf7b22f1aad7ebd5a1c54366c 100644 --- a/arch/arm/src/common/up_copystate.c +++ b/arch/arm/src/common/up_copystate.c @@ -1,7 +1,7 @@ -/************************************************************ - * common/up_copystate.c +/**************************************************************************** + * arch/arm/src/common/up_copystate.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,36 +31,38 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> + #include <sys/types.h> + #include "os_internal.h" #include "up_internal.h" -/************************************************************ +/**************************************************************************** * Definitions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Data - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Public Funtions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: up_undefinedinsn - ************************************************************/ + ****************************************************************************/ /* A little faster than most memcpy's */ diff --git a/arch/arm/src/common/up_createstack.c b/arch/arm/src/common/up_createstack.c index a68e2edf3a6299b8051206860cc8acea700fc735..85071269edb796e66eaf3d083a0ef20b65abd63c 100644 --- a/arch/arm/src/common/up_createstack.c +++ b/arch/arm/src/common/up_createstack.c @@ -1,7 +1,7 @@ -/************************************************************ - * common/up_createstack.c +/**************************************************************************** + * arch/arm/src/common/up_createstack.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,34 +31,37 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> + #include <sys/types.h> #include <sched.h> #include <debug.h> + #include <nuttx/kmalloc.h> #include <nuttx/arch.h> + #include "up_arch.h" #include "up_internal.h" -/************************************************************ +/**************************************************************************** * Private Types - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Global Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: up_create_stack * * Description: @@ -77,7 +80,7 @@ * tcb: The TCB of new task * stack_size: The requested stack size. At least this much * must be allocated. - ************************************************************/ + ****************************************************************************/ STATUS up_create_stack(_TCB *tcb, size_t stack_size) { diff --git a/arch/arm/src/common/up_dataabort.c b/arch/arm/src/common/up_dataabort.c index a7b48ed779844188087333868e51a31c7f86f10a..6ca447bb7d41e5f9d0262c393f641ee7057c7fe1 100644 --- a/arch/arm/src/common/up_dataabort.c +++ b/arch/arm/src/common/up_dataabort.c @@ -1,7 +1,7 @@ -/************************************************************ - * common/up_dataabort.c +/**************************************************************************** + * arch/arm/src/common/up_dataabort.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -44,9 +44,9 @@ #include "os_internal.h" #include "up_internal.h" -/************************************************************ +/**************************************************************************** * Definitions - ************************************************************/ + ****************************************************************************/ /* Output debug info if stack dump is selected -- even if * debug is not selected. @@ -57,21 +57,21 @@ # define lldbg lib_lowprintf #endif -/************************************************************ +/**************************************************************************** * Private Data - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Public Funtions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: up_dataabort - ************************************************************/ + ****************************************************************************/ void up_dataabort(uint32 *regs) { diff --git a/arch/arm/src/common/up_doirq.c b/arch/arm/src/common/up_doirq.c index d49c3c4fa0b654de81ad60406bf23bfce5880629..11cfa0bba9481156f937197ecdbcbc602747a7be 100644 --- a/arch/arm/src/common/up_doirq.c +++ b/arch/arm/src/common/up_doirq.c @@ -1,7 +1,7 @@ -/************************************************************ - * common/up_doirq.c +/**************************************************************************** + * arch/arm/src/common/up_doirq.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -46,25 +46,25 @@ #include "os_internal.h" #include "up_internal.h" -/************************************************************ +/**************************************************************************** * Definitions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Public Data - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Data - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Public Funtions - ************************************************************/ + ****************************************************************************/ void up_doirq(int irq, uint32* regs) { diff --git a/arch/arm/src/common/up_idle.c b/arch/arm/src/common/up_idle.c index d90b50aa86af894e4d8faa41b68d030cca2238b8..a0eb8df36683f256a4a4ee08d9d9fa9a735848b2 100644 --- a/arch/arm/src/common/up_idle.c +++ b/arch/arm/src/common/up_idle.c @@ -1,7 +1,7 @@ -/************************************************************ - * common/up_idle.c +/**************************************************************************** + * arch/arm/src/common/up_idle.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,34 +31,34 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> #include <nuttx/arch.h> #include "up_internal.h" -/************************************************************ +/**************************************************************************** * Private Definitions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Data - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Funtions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Public Funtions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: up_idle * * Description: @@ -71,7 +71,7 @@ * this is where power management operations might be * performed. * - ************************************************************/ + ****************************************************************************/ void up_idle(void) { diff --git a/arch/arm/src/common/up_initialstate.c b/arch/arm/src/common/up_initialstate.c index 64608d48191b363a0065bcc021f0fa812402137b..a9fb3a075f200f724e016ba569996330f625f933 100644 --- a/arch/arm/src/common/up_initialstate.c +++ b/arch/arm/src/common/up_initialstate.c @@ -1,7 +1,7 @@ -/************************************************************ - * common/up_initialstate.c +/**************************************************************************** + * arch/arm/src/common/up_initialstate.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -44,23 +44,23 @@ #include "up_internal.h" #include "up_arch.h" -/************************************************************ +/**************************************************************************** * Private Definitions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Data - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Funtions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Public Funtions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: up_initial_state * * Description: @@ -72,7 +72,7 @@ * and/or stack so that execution will begin at tcb->start * on the next context switch. * - ************************************************************/ + ****************************************************************************/ void up_initial_state(_TCB *tcb) { diff --git a/arch/arm/src/common/up_interruptcontext.c b/arch/arm/src/common/up_interruptcontext.c index a8c3210aa8240a47040f3efe46fda00d8a8e52dc..3c435ac789c619fe581f988f887f3b06e5e8e045 100644 --- a/arch/arm/src/common/up_interruptcontext.c +++ b/arch/arm/src/common/up_interruptcontext.c @@ -1,7 +1,7 @@ -/************************************************************ - * common/up_interruptcontext.c +/**************************************************************************** + * arch/arm/src/common/up_interruptcontext.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -43,24 +43,24 @@ #include <nuttx/irq.h> #include "up_internal.h" -/************************************************************ +/**************************************************************************** * Private Types - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Global Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: up_interrupt_context * * Description: Return TRUE is we are currently executing in * the interrupt handler context. - ************************************************************/ + ****************************************************************************/ boolean up_interrupt_context(void) { diff --git a/arch/arm/src/common/up_mdelay.c b/arch/arm/src/common/up_mdelay.c index 5a91a17d7456ec43f292f633446680dec043d750..b9b9ffc0e4e4eb6a7312ff19df8b0c4035fb21d8 100644 --- a/arch/arm/src/common/up_mdelay.c +++ b/arch/arm/src/common/up_mdelay.c @@ -1,7 +1,7 @@ /**************************************************************************** - * common/up_mdelay.c + * arch/arm/src/common/up_mdelay.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * diff --git a/arch/arm/src/common/up_prefetchabort.c b/arch/arm/src/common/up_prefetchabort.c index 343c02c8719d9d9146512616de89422055adcc5b..58894a70299de7f19404f452c4c887dc3b52db15 100644 --- a/arch/arm/src/common/up_prefetchabort.c +++ b/arch/arm/src/common/up_prefetchabort.c @@ -1,7 +1,7 @@ -/************************************************************ - * common/up_prefetchabort.c +/**************************************************************************** + * arch/arm/src/common/up_prefetchabort.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -44,9 +44,9 @@ #include "os_internal.h" #include "up_internal.h" -/************************************************************ +/**************************************************************************** * Definitions - ************************************************************/ + ****************************************************************************/ /* Output debug info if stack dump is selected -- even if * debug is not selected. @@ -57,21 +57,21 @@ # define lldbg lib_lowprintf #endif -/************************************************************ +/**************************************************************************** * Private Data - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Public Funtions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: up_prefetchabort - ************************************************************/ + ****************************************************************************/ void up_prefetchabort(uint32 *regs) { diff --git a/arch/arm/src/common/up_releasepending.c b/arch/arm/src/common/up_releasepending.c index 44b36590f4166dd45307824b08171a7faf9cd6a6..5cc73814669ac19dd2f60288c479e8b253c1d2f8 100644 --- a/arch/arm/src/common/up_releasepending.c +++ b/arch/arm/src/common/up_releasepending.c @@ -1,7 +1,7 @@ -/************************************************************ - * common/up_releasepending.c +/**************************************************************************** + * arch/arm/src/common/up_releasepending.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -45,23 +45,23 @@ #include "os_internal.h" #include "up_internal.h" -/************************************************************ +/**************************************************************************** * Private Definitions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Data - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Funtions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Public Funtions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: up_release_pending * * Description: @@ -70,7 +70,7 @@ * context switch if a new task is placed at the head of * the ready to run list. * - ************************************************************/ + ****************************************************************************/ void up_release_pending(void) { diff --git a/arch/arm/src/common/up_releasestack.c b/arch/arm/src/common/up_releasestack.c index b00b9ab0c0c1147ceca68b3fb703b093e5876664..c65953bd2dd6decbb3bb3d821637f73826449c08 100644 --- a/arch/arm/src/common/up_releasestack.c +++ b/arch/arm/src/common/up_releasestack.c @@ -1,7 +1,7 @@ -/************************************************************ - * common/up_releasestack.c +/**************************************************************************** + * arch/arm/src/common/up_releasestack.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -45,26 +45,26 @@ #include "os_internal.h" #include "up_internal.h" -/************************************************************ +/**************************************************************************** * Private Types - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Global Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: up_release_stack * * Description: * A task has been stopped. Free all stack * related resources retained int the defunct TCB. * - ************************************************************/ + ****************************************************************************/ void up_release_stack(_TCB *dtcb) { diff --git a/arch/arm/src/common/up_reprioritizertr.c b/arch/arm/src/common/up_reprioritizertr.c index 13081958220cd28ae6ab6606178889ad03a33dde..339550eeb053fa1642cc2ceeedab3d04806b69e4 100644 --- a/arch/arm/src/common/up_reprioritizertr.c +++ b/arch/arm/src/common/up_reprioritizertr.c @@ -1,7 +1,7 @@ -/************************************************************ - * common/up_reprioritizertr.c +/**************************************************************************** + * arch/arm/src/common/up_reprioritizertr.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -45,23 +45,23 @@ #include "os_internal.h" #include "up_internal.h" -/************************************************************ +/**************************************************************************** * Private Definitions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Data - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Funtions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Public Funtions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: up_reprioritize_rtr * * Description: @@ -79,7 +79,7 @@ * tcb: The TCB of the task that has been reprioritized * priority: The new task priority * - ************************************************************/ + ****************************************************************************/ void up_reprioritize_rtr(_TCB *tcb, ubyte priority) { diff --git a/arch/arm/src/common/up_syscall.c b/arch/arm/src/common/up_syscall.c index 47a7150bea59582b29fe8d5b58a613a4184d5857..2fef9594a1b82025456b4ed77a2eb9a5dc33cf3a 100644 --- a/arch/arm/src/common/up_syscall.c +++ b/arch/arm/src/common/up_syscall.c @@ -1,7 +1,7 @@ -/************************************************************ - * common/up_syscall.c +/**************************************************************************** + * arch/arm/src/common/up_syscall.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -44,9 +44,9 @@ #include "os_internal.h" #include "up_internal.h" -/************************************************************ +/**************************************************************************** * Definitions - ************************************************************/ + ****************************************************************************/ /* Output debug info if stack dump is selected -- even if * debug is not selected. @@ -57,23 +57,23 @@ # define lldbg lib_lowprintf #endif -/************************************************************ +/**************************************************************************** * Private Data - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * vectors - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Public Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: up_syscall * * Description: @@ -84,7 +84,7 @@ * the return address saved in the xcp and decoding * the SWI instruction * - ************************************************************/ + ****************************************************************************/ void up_syscall(uint32 *regs) { diff --git a/arch/arm/src/common/up_udelay.c b/arch/arm/src/common/up_udelay.c index 40ec3ba75dc35fbcb5349e85235d9f58586cbdc9..2db0388f2f5b2b110f10c009ea79c6b5e2dbd86c 100644 --- a/arch/arm/src/common/up_udelay.c +++ b/arch/arm/src/common/up_udelay.c @@ -1,7 +1,7 @@ /**************************************************************************** - * common/up_udelay.c + * arch/arm/src/common/up_udelay.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * diff --git a/arch/arm/src/common/up_unblocktask.c b/arch/arm/src/common/up_unblocktask.c index 143c7ed7b7903bcc0f7935ea5f213bae73a1f676..f7af3fb4fb27c1334677633cf0afba5a6e049fb0 100644 --- a/arch/arm/src/common/up_unblocktask.c +++ b/arch/arm/src/common/up_unblocktask.c @@ -1,7 +1,7 @@ -/************************************************************ - * common/up_unblocktask.c +/**************************************************************************** + * arch/arm/src/common/up_unblocktask.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -46,23 +46,23 @@ #include "clock_internal.h" #include "up_internal.h" -/************************************************************ +/**************************************************************************** * Private Definitions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Data - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Funtions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Public Funtions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: up_unblock_task * * Description: @@ -76,7 +76,7 @@ * the ready-to-run list and, if it is the highest priority * ready to run taks, executed. * - ************************************************************/ + ****************************************************************************/ void up_unblock_task(_TCB *tcb) { diff --git a/arch/arm/src/common/up_usestack.c b/arch/arm/src/common/up_usestack.c index 2da044182b360e9e8cf4428261ff39f2f14ba1aa..0a32b1382131b1d33cffabe84e8d22b1cc3535ed 100644 --- a/arch/arm/src/common/up_usestack.c +++ b/arch/arm/src/common/up_usestack.c @@ -1,7 +1,7 @@ -/************************************************************ - * common/up_usestack.c +/**************************************************************************** + * arch/arm/src/common/up_usestack.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -14,7 +14,7 @@ * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. - * 3. Neither the name Gregory Nutt nor the names of its contributors may be + * 3. Neither the name NuttX nor the names of its contributors may be * used to endorse or promote products derived from this software * without specific prior written permission. * @@ -31,11 +31,11 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Included Files - ************************************************************/ + ****************************************************************************/ #include <nuttx/config.h> #include <sys/types.h> @@ -45,19 +45,19 @@ #include <nuttx/arch.h> #include "up_internal.h" -/************************************************************ +/**************************************************************************** * Private Types - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Global Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: up_use_stack * * Description: @@ -76,7 +76,7 @@ * tcb: The TCB of new task * stack_size: The allocated stack size. * - ************************************************************/ + ****************************************************************************/ STATUS up_use_stack(_TCB *tcb, void *stack, size_t stack_size) { diff --git a/tools/mkdeps.sh b/tools/mkdeps.sh index 96cfb72411b00257ef17e30a5a1a1bac896dbf86..dfd7f3efb19803981b3bf5745385af98856a6268 100755 --- a/tools/mkdeps.sh +++ b/tools/mkdeps.sh @@ -1,7 +1,8 @@ #!/bin/bash -# mkdeps.sh +############################################################################ +# tools mkdeps.sh # -# Copyright (C) 2007 Gregory Nutt. All rights reserved. +# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. # Author: Gregory Nutt <spudmonkey@racsa.co.cr> # # Redistribution and use in source and binary forms, with or without @@ -14,7 +15,7 @@ # notice, this list of conditions and the following disclaimer in # the documentation and/or other materials provided with the # distribution. -# 3. Neither the name Gregory Nutt nor the names of its contributors may be +# 3. Neither the name NuttX nor the names of its contributors may be # used to endorse or promote products derived from this software # without specific prior written permission. # @@ -31,6 +32,8 @@ # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # +############################################################################ + # # Usage: @@ -53,7 +56,7 @@ function show_usage () echo " Enable script debug" echo " --dep-path <path>" echo " Do not look in the current directory for the file. Instead, look in <path> to see" - echo " if the file resides there. --dep-path may be used multiple times to specifid" + echo " if the file resides there. --dep-path may be used multiple times to specify" echo " multiple alternative location" echo " --help" echo " Shows this message and exits"