summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/dm320/dm320_irq.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-16 20:05:51 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-16 20:05:51 +0000
commit891f61e86fcc0a4c42f25432016762b6aafb287e (patch)
treef0447a687a6bc51494a5c24c81170ca3811b0c7f /nuttx/arch/arm/src/dm320/dm320_irq.c
parentc33cfd52449fc6c1b9211cb45618a77b544876e6 (diff)
downloadpx4-nuttx-891f61e86fcc0a4c42f25432016762b6aafb287e.tar.gz
px4-nuttx-891f61e86fcc0a4c42f25432016762b6aafb287e.tar.bz2
px4-nuttx-891f61e86fcc0a4c42f25432016762b6aafb287e.zip
Changing NuttX fixed size type names to C99 standard names -- things will be broken for awhile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2359 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/dm320/dm320_irq.c')
-rw-r--r--nuttx/arch/arm/src/dm320/dm320_irq.c53
1 files changed, 27 insertions, 26 deletions
diff --git a/nuttx/arch/arm/src/dm320/dm320_irq.c b/nuttx/arch/arm/src/dm320/dm320_irq.c
index 84e0efcf5..ec31e3246 100644
--- a/nuttx/arch/arm/src/dm320/dm320_irq.c
+++ b/nuttx/arch/arm/src/dm320/dm320_irq.c
@@ -1,4 +1,4 @@
-/************************************************************
+/************************************************************************
* arch/arm/src/dm320/dm320_irq.c
*
* Copyright (C) 2007, 2009 Gregory Nutt. All rights reserved.
@@ -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,15 @@
* 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 <stdint.h>
#include <nuttx/irq.h>
#include "arm.h"
@@ -46,19 +47,19 @@
#include "os_internal.h"
#include "up_internal.h"
-/************************************************************
- * Definitions
- ************************************************************/
+/************************************************************************
+ * Pre-processor Definitions
+ ************************************************************************/
-/************************************************************
+/************************************************************************
* Public Data
- ************************************************************/
+ ************************************************************************/
-uint32 *current_regs;
+uint32_t *current_regs;
-/************************************************************
+/************************************************************************
* Private Data
- ************************************************************/
+ ************************************************************************/
/* The value of _vflashstart is defined in ld.script. It
* could be hard-coded because we know that correct IRAM
@@ -67,17 +68,17 @@ uint32 *current_regs;
extern int _svectors; /* Type does not matter */
-/************************************************************
+/************************************************************************
* Private Functions
- ************************************************************/
+ ************************************************************************/
-/************************************************************
+/************************************************************************
* Public Functions
- ************************************************************/
+ ************************************************************************/
-/************************************************************
+/************************************************************************
* Name: up_irqinitialize
- ************************************************************/
+ ************************************************************************/
void up_irqinitialize(void)
{
@@ -119,13 +120,13 @@ void up_irqinitialize(void)
#endif
}
-/************************************************************
+/************************************************************************
* Name: up_disable_irq
*
* Description:
* Disable the IRQ specified by 'irq'
*
- ************************************************************/
+ ************************************************************************/
void up_disable_irq(int irq)
{
@@ -159,13 +160,13 @@ void up_disable_irq(int irq)
}
}
-/************************************************************
+/************************************************************************
* Name: up_enable_irq
*
* Description:
* Enable the IRQ specified by 'irq'
*
- ************************************************************/
+ ************************************************************************/
void up_enable_irq(int irq)
{
@@ -199,13 +200,13 @@ void up_enable_irq(int irq)
}
}
-/************************************************************
+/************************************************************************
* Name: up_maskack_irq
*
* Description:
* Mask the IRQ and acknowledge it
*
- ************************************************************/
+ ************************************************************************/
void up_maskack_irq(int irq)
{