XTENSA: Add function prototypes
This commit is contained in:
parent
8ffbf6d95e
commit
eada2bf8d8
@ -47,6 +47,7 @@
|
||||
/* Include NuttX-specific IRQ definitions */
|
||||
|
||||
#include <nuttx/irq.h>
|
||||
#include <arch/types.h>
|
||||
|
||||
/* Include architecture-specific IRQ definitions */
|
||||
|
||||
@ -180,10 +181,6 @@ struct xcptcontext
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define EXTERN extern "C"
|
||||
extern "C"
|
||||
@ -192,6 +189,34 @@ extern "C"
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: xtensa_enable_interrupts
|
||||
*
|
||||
* Description:
|
||||
* Enables a set of interrupts. Does not simply set INTENABLE directly,
|
||||
* but computes it as a function of the current virtual priority.
|
||||
* Can be called from interrupt handlers.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
irqstate_t xtensa_enable_interrupts(irqstate_t mask);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: xtensa_disable_interrupts
|
||||
*
|
||||
* Description:
|
||||
* Disables a set of interrupts. Does not simply set INTENABLE directly,
|
||||
* but computes it as a function of the current virtual priority.
|
||||
* Can be called from interrupt handlers.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
irqstate_t xtensa_disable_interrupts(irqstate_t mask);
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -83,7 +83,7 @@ typedef unsigned long _uintptr_t;
|
||||
|
||||
/* This is the size of the interrupt state save returned by up_irq_save(). */
|
||||
|
||||
typedef unsigned long irqstate_t;
|
||||
typedef unsigned int irqstate_t;
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user