2008-11-07 00:21:23 +08:00
|
|
|
/****************************************************************************
|
|
|
|
* arch/arm/include/irq.h
|
2007-04-29 03:39:18 +08:00
|
|
|
*
|
2015-12-16 23:03:14 +08:00
|
|
|
* Copyright (C) 2007-2009, 2011, 2015 Gregory Nutt. All rights reserved.
|
2012-09-14 02:32:24 +08:00
|
|
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
2007-04-29 03:39:18 +08:00
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
*
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in
|
|
|
|
* the documentation and/or other materials provided with the
|
|
|
|
* distribution.
|
2008-11-07 00:21:23 +08:00
|
|
|
* 3. Neither the name NuttX nor the names of its contributors may be
|
2007-04-29 03:39:18 +08:00
|
|
|
* used to endorse or promote products derived from this software
|
|
|
|
* without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
|
|
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
|
|
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
|
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
|
|
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*
|
2008-11-07 00:21:23 +08:00
|
|
|
****************************************************************************/
|
2007-04-29 03:39:18 +08:00
|
|
|
|
2009-05-07 23:59:13 +08:00
|
|
|
/* This file should never be included directed but, rather, only indirectly
|
|
|
|
* through nuttx/irq.h
|
2007-04-29 03:39:18 +08:00
|
|
|
*/
|
|
|
|
|
2008-11-07 00:21:23 +08:00
|
|
|
#ifndef __ARCH_ARM_INCLUDE_IRQ_H
|
|
|
|
#define __ARCH_ARM_INCLUDE_IRQ_H
|
2007-04-29 03:39:18 +08:00
|
|
|
|
2008-11-07 00:21:23 +08:00
|
|
|
/****************************************************************************
|
2007-04-29 03:39:18 +08:00
|
|
|
* Included Files
|
2008-11-07 00:21:23 +08:00
|
|
|
****************************************************************************/
|
2007-04-29 03:39:18 +08:00
|
|
|
|
2009-05-20 01:31:58 +08:00
|
|
|
/* Include NuttX-specific IRQ definitions */
|
|
|
|
|
2007-11-03 07:05:53 +08:00
|
|
|
#include <nuttx/irq.h>
|
2009-05-20 01:31:58 +08:00
|
|
|
|
|
|
|
/* Include chip-specific IRQ definitions (including IRQ numbers) */
|
|
|
|
|
2007-04-29 03:39:18 +08:00
|
|
|
#include <arch/chip/irq.h>
|
|
|
|
|
2011-03-05 06:25:03 +08:00
|
|
|
/* Include ARM architecture-specific IRQ definitions (including register
|
2016-02-15 06:11:25 +08:00
|
|
|
* save structure and up_irq_save()/up_irq_restore() functions)
|
2009-05-20 01:31:58 +08:00
|
|
|
*/
|
|
|
|
|
2016-03-02 04:15:43 +08:00
|
|
|
#if defined(CONFIG_ARCH_CORTEXA5) || defined(CONFIG_ARCH_CORTEXA8) || \
|
|
|
|
defined(CONFIG_ARCH_CORTEXA9)
|
2013-07-19 05:20:47 +08:00
|
|
|
# include <arch/armv7-a/irq.h>
|
2019-03-20 00:26:15 +08:00
|
|
|
#elif defined(CONFIG_ARCH_CORTEXR4) || defined(CONFIG_ARCH_CORTEXR5) || \
|
|
|
|
defined(CONFIG_ARCH_CORTEXR7)
|
2015-12-16 23:03:14 +08:00
|
|
|
# include <arch/armv7-r/irq.h>
|
2015-03-07 00:53:57 +08:00
|
|
|
#elif defined(CONFIG_ARCH_CORTEXM3) || defined(CONFIG_ARCH_CORTEXM4) || \
|
|
|
|
defined(CONFIG_ARCH_CORTEXM7)
|
2013-02-16 20:46:09 +08:00
|
|
|
# include <arch/armv7-m/irq.h>
|
|
|
|
#elif defined(CONFIG_ARCH_CORTEXM0)
|
|
|
|
# include <arch/armv6-m/irq.h>
|
2009-05-13 22:29:22 +08:00
|
|
|
#else
|
2013-02-16 20:46:09 +08:00
|
|
|
# include <arch/arm/irq.h>
|
2009-05-13 22:29:22 +08:00
|
|
|
#endif
|
|
|
|
|
2008-11-07 00:21:23 +08:00
|
|
|
#endif /* __ARCH_ARM_INCLUDE_IRQ_H */
|
2007-04-29 03:39:18 +08:00
|
|
|
|