XTENSA: Add function prototypes

This commit is contained in:
Gregory Nutt 2016-10-15 12:23:36 -06:00
parent 8ffbf6d95e
commit eada2bf8d8
2 changed files with 30 additions and 5 deletions

View File

@ -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
}

View File

@ -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__ */