Pip
Architecture-dependent parts of Pip: MAL, IAL and boot
Macros | Functions | Variables
periph.h File Reference
#include "types.h"
#include "machine.h"

Go to the source code of this file.

Macros

#define PERIPH_RBASE   (io_remapped ? PERIPH_VBASE : PERIPH_BASE)
 
#define CORE0_IRQ_SOURCE   ((uint32_t *) 0x40000060)
 
#define LOCAL_TIMER_WRITE_FLAGS   ((uint32_t *) 0x40000038)
 
#define IRQ2836_CONTROL   0
 
#define IRQ2836_TIMER_PRESCALER   0x8
 
#define IRQ2836_GPU_ROUTING   0xC
 
#define IRQ2836_PMU_ROUTING_SET   0x10
 
#define IRQ2836_PMU_ROUTING_CLR   0x14
 
#define IRQ2836_CORE_TIMER_LOW   0x1C
 
#define IRQ2836_CORE_TIMER_HIGH   0x20
 
#define IRQ2836_LOCAL_INT_ROUTING   0x24
 
#define IRQ2836_AXI_OUTSTD_CTR   0x2C
 
#define IRQ2836_AXI_OUTSTD_CTL   0x30
 
#define IRQ2836_LOCAL_TIMER_CTL   0x34
 
#define IRQ2836_LOCAL_TIMER_CLR_RLD   0x38
 
#define IRQ2836_TIMER_CTL   0x40
 
#define IRQ2836_MAILBOX_CTL   0x50
 
#define IRQ2836_IRQ_SOURCE   0x60
 
#define IRQ2836_FIQ_SOURCE   0x70
 
#define IRQ2836_MAILBOX_SET   0x80
 
#define IRQ2836_MAILBOX_CLR   0xC0
 
#define IRQ2836REG(reg)   *(unsigned int*)((IRQ2836_##reg)+PERIPH_CONTROL)
 
#define UART0   (PERIPH_RBASE+UART0_OFFSET)
 

Functions

void periph_notify_ioremap (int v)
 

Variables

bool_t io_remapped
 

Macro Definition Documentation

◆ CORE0_IRQ_SOURCE

#define CORE0_IRQ_SOURCE   ((uint32_t *) 0x40000060)

◆ IRQ2836_AXI_OUTSTD_CTL

#define IRQ2836_AXI_OUTSTD_CTL   0x30

◆ IRQ2836_AXI_OUTSTD_CTR

#define IRQ2836_AXI_OUTSTD_CTR   0x2C

◆ IRQ2836_CONTROL

#define IRQ2836_CONTROL   0

◆ IRQ2836_CORE_TIMER_HIGH

#define IRQ2836_CORE_TIMER_HIGH   0x20

◆ IRQ2836_CORE_TIMER_LOW

#define IRQ2836_CORE_TIMER_LOW   0x1C

◆ IRQ2836_FIQ_SOURCE

#define IRQ2836_FIQ_SOURCE   0x70

◆ IRQ2836_GPU_ROUTING

#define IRQ2836_GPU_ROUTING   0xC

◆ IRQ2836_IRQ_SOURCE

#define IRQ2836_IRQ_SOURCE   0x60

◆ IRQ2836_LOCAL_INT_ROUTING

#define IRQ2836_LOCAL_INT_ROUTING   0x24

◆ IRQ2836_LOCAL_TIMER_CLR_RLD

#define IRQ2836_LOCAL_TIMER_CLR_RLD   0x38

◆ IRQ2836_LOCAL_TIMER_CTL

#define IRQ2836_LOCAL_TIMER_CTL   0x34

◆ IRQ2836_MAILBOX_CLR

#define IRQ2836_MAILBOX_CLR   0xC0

◆ IRQ2836_MAILBOX_CTL

#define IRQ2836_MAILBOX_CTL   0x50

◆ IRQ2836_MAILBOX_SET

#define IRQ2836_MAILBOX_SET   0x80

◆ IRQ2836_PMU_ROUTING_CLR

#define IRQ2836_PMU_ROUTING_CLR   0x14

◆ IRQ2836_PMU_ROUTING_SET

#define IRQ2836_PMU_ROUTING_SET   0x10

◆ IRQ2836_TIMER_CTL

#define IRQ2836_TIMER_CTL   0x40

◆ IRQ2836_TIMER_PRESCALER

#define IRQ2836_TIMER_PRESCALER   0x8

◆ IRQ2836REG

#define IRQ2836REG (   reg)    *(unsigned int*)((IRQ2836_##reg)+PERIPH_CONTROL)

◆ LOCAL_TIMER_WRITE_FLAGS

#define LOCAL_TIMER_WRITE_FLAGS   ((uint32_t *) 0x40000038)

◆ PERIPH_RBASE

#define PERIPH_RBASE   (io_remapped ? PERIPH_VBASE : PERIPH_BASE)

◆ UART0

#define UART0   (PERIPH_RBASE+UART0_OFFSET)

Function Documentation

◆ periph_notify_ioremap()

void periph_notify_ioremap ( int  v)

Variable Documentation

◆ io_remapped

bool_t io_remapped