From c8095344f4c24c020339fbac35babf8a3f3fa051 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 19 May 2009 17:31:58 +0000 Subject: [PATCH] Move ARM and Cortex header files to separate directories git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1796 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/include/{irq_arm.h => arm/irq.h} | 8 ++++---- .../include/{irq_cortexm3.h => cortexm3/irq.h} | 8 ++++---- arch/arm/include/irq.h | 15 ++++++++++++--- 3 files changed, 20 insertions(+), 11 deletions(-) rename arch/arm/include/{irq_arm.h => arm/irq.h} (97%) rename arch/arm/include/{irq_cortexm3.h => cortexm3/irq.h} (97%) diff --git a/arch/arm/include/irq_arm.h b/arch/arm/include/arm/irq.h similarity index 97% rename from arch/arm/include/irq_arm.h rename to arch/arm/include/arm/irq.h index efaa5f8167..11c2bb0463 100644 --- a/arch/arm/include/irq_arm.h +++ b/arch/arm/include/arm/irq.h @@ -1,5 +1,5 @@ /**************************************************************************** - * arch/arm/include/irq_arm.h + * arch/arm/include/arm/irq.h * * Copyright (C) 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -37,8 +37,8 @@ * through nuttx/irq.h */ -#ifndef __ARCH_ARM_INCLUDE_IRQ_ARM_H -#define __ARCH_ARM_INCLUDE_IRQ_ARM_H +#ifndef __ARCH_ARM_INCLUDE_ARM_IRQ_H +#define __ARCH_ARM_INCLUDE_ARM_IRQ_H /**************************************************************************** * Included Files @@ -225,5 +225,5 @@ extern "C" { #endif #endif -#endif /* __ARCH_ARM_INCLUDE_IRQ_ARM_H */ +#endif /* __ARCH_ARM_INCLUDE_ARM_IRQ_H */ diff --git a/arch/arm/include/irq_cortexm3.h b/arch/arm/include/cortexm3/irq.h similarity index 97% rename from arch/arm/include/irq_cortexm3.h rename to arch/arm/include/cortexm3/irq.h index a08b7e2f81..ce126748a6 100644 --- a/arch/arm/include/irq_cortexm3.h +++ b/arch/arm/include/cortexm3/irq.h @@ -1,5 +1,5 @@ /**************************************************************************** - * arch/arm/include/irq_cortexm3.h + * arch/arm/include/cortexm3/irq.h * * Copyright (C) 2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt @@ -37,8 +37,8 @@ * through nuttx/irq.h */ -#ifndef __ARCH_ARM_INCLUDE_IRQ_THUMB2_H -#define __ARCH_ARM_INCLUDE_IRQ_THUMB2_H +#ifndef __ARCH_ARM_INCLUDE_CORTEXM3_IRQ_H +#define __ARCH_ARM_INCLUDE_CORTEXM3_IRQ_H /**************************************************************************** * Included Files @@ -286,5 +286,5 @@ extern "C" { #endif #endif -#endif /* __ARCH_ARM_INCLUDE_IRQ_THUMB2_H */ +#endif /* __ARCH_ARM_INCLUDE_CORTEXM3_IRQ_H */ diff --git a/arch/arm/include/irq.h b/arch/arm/include/irq.h index dabd35f418..2ee4123349 100644 --- a/arch/arm/include/irq.h +++ b/arch/arm/include/irq.h @@ -44,13 +44,22 @@ * Included Files ****************************************************************************/ +/* Include NuttX-specific IRQ definitions */ + #include + +/* Include chip-specific IRQ definitions (including IRQ numbers) */ + #include -#ifdef __thumb2__ -# include +/* Include ARM architectgure-specific IRQ definitions (including register + * save structure and irqsave()/irqrestore() macros + */ + +#ifdef CONFIG_ARCH_CORTEXM3 +# include #else -# include +# include #endif /****************************************************************************