Zephyr API Documentation  3.0.0
A Scalable Open Source RTOS
3.0.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
arch.h File Reference

Xtensa specific kernel interface header This header contains the Xtensa specific kernel interface. It is included by the generic kernel interface header (include/arch/cpu.h) More...

#include <irq.h>
#include <devicetree.h>
#include <zephyr/types.h>
#include <toolchain.h>
#include <arch/common/sys_bitops.h>
#include <arch/common/sys_io.h>
#include <arch/common/ffs.h>
#include <sw_isr_table.h>
#include <arch/xtensa/thread.h>
#include <xtensa/config/core.h>
#include <arch/common/addr_types.h>
#include <arch/xtensa/gdbstub.h>
#include <arch/xtensa/exc.h>

Go to the source code of this file.

Macros

#define ARCH_STACK_PTR_ALIGN   16
 
#define sys_define_gpr_with_alias(name1, name2)   union { uint32_t name1, name2; }
 
#define ARCH_IRQ_CONNECT(irq_p, priority_p, isr_p, isr_param_p, flags_p)
 
#define XTENSA_ERR_NORET
 

Functions

uint32_t sys_clock_cycle_get_32 (void)
 
static uint32_t arch_k_cycle_get_32 (void)
 
uint64_t sys_clock_cycle_get_64 (void)
 
static uint64_t arch_k_cycle_get_64 (void)
 
static ALWAYS_INLINE void arch_nop (void)
 

Detailed Description

Xtensa specific kernel interface header This header contains the Xtensa specific kernel interface. It is included by the generic kernel interface header (include/arch/cpu.h)

Macro Definition Documentation

◆ ARCH_IRQ_CONNECT

#define ARCH_IRQ_CONNECT (   irq_p,
  priority_p,
  isr_p,
  isr_param_p,
  flags_p 
)
Value:
{ \
Z_ISR_DECLARE(irq_p, flags_p, isr_p, isr_param_p); \
}

◆ ARCH_STACK_PTR_ALIGN

#define ARCH_STACK_PTR_ALIGN   16

◆ sys_define_gpr_with_alias

#define sys_define_gpr_with_alias (   name1,
  name2 
)    union { uint32_t name1, name2; }

◆ XTENSA_ERR_NORET

#define XTENSA_ERR_NORET

Function Documentation

◆ arch_k_cycle_get_32()

static uint32_t arch_k_cycle_get_32 ( void  )
inlinestatic

◆ arch_k_cycle_get_64()

static uint64_t arch_k_cycle_get_64 ( void  )
inlinestatic

◆ arch_nop()

static ALWAYS_INLINE void arch_nop ( void  )
static

◆ sys_clock_cycle_get_32()

uint32_t sys_clock_cycle_get_32 ( void  )

◆ sys_clock_cycle_get_64()

uint64_t sys_clock_cycle_get_64 ( void  )