mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Add support for ram vectors to the ARMv7-M architecture
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5756 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -894,9 +894,9 @@ void sched_process_timer(void);
|
||||
* Name: irq_dispatch
|
||||
*
|
||||
* Description:
|
||||
* This function must be called from the achitecture-
|
||||
* specific logic in order to dispatch an interrupt to
|
||||
* the appropriate, registered handling logic.
|
||||
* This function must be called from the achitecture-specific logic in
|
||||
* order to dispatch an interrupt to the appropriate, registered handling
|
||||
* logic.
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
+21
-8
@@ -1,7 +1,7 @@
|
||||
/****************************************************************************
|
||||
* include/nuttx/irq.h
|
||||
*
|
||||
* Copyright (C) 2007-2011 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2007-2011, 2013 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -47,9 +47,12 @@
|
||||
/****************************************************************************
|
||||
* Pre-Processor Definitions
|
||||
****************************************************************************/
|
||||
/* IRQ detach is a convenience definition. Detaching an interrupt handler
|
||||
* is equivalent to setting a NULL interrupt handler.
|
||||
*/
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
# define irq_detach(isr) irq_attach(isr, NULL)
|
||||
# define irq_detach(isr) irq_attach(isr, NULL)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
@@ -70,19 +73,29 @@ typedef int (*xcpt_t)(int irq, FAR void *context);
|
||||
* Public Variables
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#ifdef __cplusplus
|
||||
#define EXTERN extern "C"
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#else
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
EXTERN int irq_attach(int irq, xcpt_t isr);
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: irq_attach
|
||||
*
|
||||
* Description:
|
||||
* Configure the IRQ subsystem so that IRQ number 'irq' is dispatched to
|
||||
* 'isr'
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int irq_attach(int irq, xcpt_t isr);
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user