Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
irq.h File Reference
#include <stdint.h>
#include <zephyr/toolchain.h>
#include <xtensa/config/core-isa.h>
#include <zephyr/irq.h>

Go to the source code of this file.

Macros

#define CONFIG_GEN_IRQ_START_VECTOR   0
 
#define CONFIG_NUM_IRQS   XCHAL_NUM_INTERRUPTS
 
#define arch_irq_enable(irq)
 
#define arch_irq_disable(irq)
 
#define arch_irq_is_enabled(irq)
 

Functions

static ALWAYS_INLINE void xtensa_irq_enable (uint32_t irq)
 Enable interrupt on Xtensa core.
 
static ALWAYS_INLINE void xtensa_irq_disable (uint32_t irq)
 Disable interrupt on Xtensa core.
 
static ALWAYS_INLINE unsigned int arch_irq_lock (void)
 Implementation of arch_irq_lock.
 
static ALWAYS_INLINE void arch_irq_unlock (unsigned int key)
 Implementation of arch_irq_unlock.
 
static ALWAYS_INLINE bool arch_irq_unlocked (unsigned int key)
 Implementation of arch_irq_unlocked.
 
int xtensa_irq_is_enabled (unsigned int irq)
 Query if an interrupt is enabled on Xtensa core.
 

Macro Definition Documentation

◆ arch_irq_disable

#define arch_irq_disable ( irq)
Value:
static ALWAYS_INLINE void xtensa_irq_disable(uint32_t irq)
Disable interrupt on Xtensa core.
Definition irq.h:128

◆ arch_irq_enable

#define arch_irq_enable ( irq)
Value:
static ALWAYS_INLINE void xtensa_irq_enable(uint32_t irq)
Enable interrupt on Xtensa core.
Definition irq.h:118

◆ arch_irq_is_enabled

#define arch_irq_is_enabled ( irq)
Value:
int xtensa_irq_is_enabled(unsigned int irq)
Query if an interrupt is enabled on Xtensa core.

◆ CONFIG_GEN_IRQ_START_VECTOR

#define CONFIG_GEN_IRQ_START_VECTOR   0

◆ CONFIG_NUM_IRQS

#define CONFIG_NUM_IRQS   XCHAL_NUM_INTERRUPTS

Function Documentation

◆ arch_irq_lock()

static ALWAYS_INLINE unsigned int arch_irq_lock ( void )
static

Implementation of arch_irq_lock.

◆ arch_irq_unlock()

static ALWAYS_INLINE void arch_irq_unlock ( unsigned int key)
static

Implementation of arch_irq_unlock.

◆ arch_irq_unlocked()

static ALWAYS_INLINE bool arch_irq_unlocked ( unsigned int key)
static

Implementation of arch_irq_unlocked.

◆ xtensa_irq_disable()

static ALWAYS_INLINE void xtensa_irq_disable ( uint32_t irq)
static

Disable interrupt on Xtensa core.

Parameters
irqInterrupt to be disabled.

◆ xtensa_irq_enable()

static ALWAYS_INLINE void xtensa_irq_enable ( uint32_t irq)
static

Enable interrupt on Xtensa core.

Parameters
irqInterrupt to be enabled.

◆ xtensa_irq_is_enabled()

int xtensa_irq_is_enabled ( unsigned int irq)

Query if an interrupt is enabled on Xtensa core.

Parameters
irqInterrupt to be queried.
Returns
True if interrupt is enabled, false otherwise.