diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-04-12 21:28:59 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-04-12 21:28:59 +0000 |
commit | 54f0d37c7c740dbe7e05e6307bb5049ba6ce087d (patch) | |
tree | 7b7dd545b6af91c465a0c611e9f6ceb0a2b2d03a /nuttx/arch/arm/src/dm320 | |
parent | 40a5f9991673e466dc7f2043a1ffc2b45378befa (diff) | |
download | px4-nuttx-54f0d37c7c740dbe7e05e6307bb5049ba6ce087d.tar.gz px4-nuttx-54f0d37c7c740dbe7e05e6307bb5049ba6ce087d.tar.bz2 px4-nuttx-54f0d37c7c740dbe7e05e6307bb5049ba6ce087d.zip |
Add system timer logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1700 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/dm320')
-rw-r--r-- | nuttx/arch/arm/src/dm320/dm320_timerisr.c | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/nuttx/arch/arm/src/dm320/dm320_timerisr.c b/nuttx/arch/arm/src/dm320/dm320_timerisr.c index 603a66c91..59fa7581f 100644 --- a/nuttx/arch/arm/src/dm320/dm320_timerisr.c +++ b/nuttx/arch/arm/src/dm320/dm320_timerisr.c @@ -1,7 +1,8 @@ -/************************************************************ - * dm320/dm320_timerisr.c +/**************************************************************************** + * arch/arm/src/dm320/dm320_timerisr.c + * arch/arm/src/chip/dm320_timerisr.c * - * Copyright (C) 2007 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009 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,11 +32,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,9 +46,9 @@ #include "up_internal.h" #include "up_arch.h" -/************************************************************ +/**************************************************************************** * Definitions - ************************************************************/ + ****************************************************************************/ /* DM320 Timers * @@ -92,26 +93,26 @@ #define DM320_TMR0_DIV 26999 /* (see above) */ #define DM320_TMR0_PRSCL 9 /* (see above) */ -/************************************************************ +/**************************************************************************** * Private Types - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Private Function Prototypes - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Global Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Function: up_timerisr * * Description: - * The timer ISR will perform a variety of services for - * various portions of the systems. + * The timer ISR will perform a variety of services for various portions + * of the systems. * - ************************************************************/ + ****************************************************************************/ int up_timerisr(int irq, uint32 *regs) { @@ -121,14 +122,14 @@ int up_timerisr(int irq, uint32 *regs) return 0; } -/************************************************************ +/**************************************************************************** * Function: up_timerinit * * Description: - * This function is called during start-up to initialize - * the timer interrupt. + * This function is called during start-up to initialize the timer + * interrupt. * - ************************************************************/ + ****************************************************************************/ void up_timerinit(void) { |