Loading...
Searching...
No Matches
compat_layer.h File Reference

Compatibility layer for different CPU architectures and families. More...

Detailed Description

Compatibility layer for different CPU architectures and families.

Author
Tom Hert git@a.nosp@m.nnsa.nosp@m.nn.eu

Definition in file compat_layer.h.

#include "periph_cpu.h"
#include <stdint.h>
+ Include dependency graph for compat_layer.h:

Go to the source code of this file.

uint32_t _isr_vectors
 Defined in the linker script.
 
static void rp_irq_enable (uint32_t irq_no)
 Enable the given IRQ.
 
static void rp_irq_disable (uint32_t irq_no)
 Disable the given IRQ.
 
static void rp_end_isr (void)
 Called upon the end of an ISR.
 
static void rp_arch_init (void)
 Initialize the architecture-specific components.
 
static void rp_block_core (void)
 Wait For Interrupt abstraction.
 
static void rp_unblock_core (void)
 Set Event abstraction.
 
static uint32_t * rp_get_vector_poiner (void)
 Get a pointer to the CPU specific interrupt vector table.
 

Helper functions with the names used by the RP2040 port, for code

shared by both CPUs

static void io_reg_atomic_set (volatile uint32_t *reg, uint32_t mask)
 Atomically set the bits of mask in the register reg.
 
static void io_reg_atomic_clear (volatile uint32_t *reg, uint32_t mask)
 Atomically clear the bits of mask in the register reg.
 
static void periph_reset (uint32_t components)
 Put the hardware components in components into reset.
 
static void periph_reset_done (uint32_t components)
 Take the hardware components in components out of reset and wait until the reset is done.
 

Function Documentation

◆ io_reg_atomic_clear()

static void io_reg_atomic_clear ( volatile uint32_t * reg,
uint32_t mask )
inlinestatic

Atomically clear the bits of mask in the register reg.

Definition at line 139 of file compat_layer.h.

◆ io_reg_atomic_set()

static void io_reg_atomic_set ( volatile uint32_t * reg,
uint32_t mask )
inlinestatic

Atomically set the bits of mask in the register reg.

Definition at line 131 of file compat_layer.h.

◆ periph_reset()

static void periph_reset ( uint32_t components)
inlinestatic

Put the hardware components in components into reset.

Definition at line 147 of file compat_layer.h.

◆ periph_reset_done()

static void periph_reset_done ( uint32_t components)
inlinestatic

Take the hardware components in components out of reset and wait until the reset is done.

Definition at line 156 of file compat_layer.h.

◆ rp_arch_init()

static void rp_arch_init ( void )
inlinestatic

Initialize the architecture-specific components.

Definition at line 77 of file compat_layer.h.

◆ rp_block_core()

static void rp_block_core ( void )
inlinestatic

Wait For Interrupt abstraction.

Definition at line 89 of file compat_layer.h.

◆ rp_end_isr()

static void rp_end_isr ( void )
inlinestatic

Called upon the end of an ISR.

Definition at line 67 of file compat_layer.h.

◆ rp_get_vector_poiner()

static uint32_t * rp_get_vector_poiner ( void )
inlinestatic

Get a pointer to the CPU specific interrupt vector table.

Returns
Pointer to the CPU specific interrupt vector table

Definition at line 114 of file compat_layer.h.

◆ rp_irq_disable()

static void rp_irq_disable ( uint32_t irq_no)
inlinestatic

Disable the given IRQ.

Parameters
[in]irq_noIRQ number to disable

Definition at line 55 of file compat_layer.h.

◆ rp_irq_enable()

static void rp_irq_enable ( uint32_t irq_no)
inlinestatic

Enable the given IRQ.

Parameters
[in]irq_noIRQ number to enable

Definition at line 42 of file compat_layer.h.

◆ rp_unblock_core()

static void rp_unblock_core ( void )
inlinestatic

Set Event abstraction.

Definition at line 101 of file compat_layer.h.