Raspberry Pi Peripherals addresses. More...
Files | |
file | aux.h |
Definition of AUX registers addresses (Only for Uart). | |
file | base.h |
Definition of base MMIO registers addresses. | |
file | gpio.h |
Definition of GPIO registers addresses. | |
file | irq.h |
Definition of IRQ registers addresses. | |
file | mbox.h |
Definition of Mailbox registers addresses. | |
file | timer.h |
Definition of System Timer registers addresses. | |
Macros | |
#define | TIMER_CLK_HZ 1000000 |
#define | TIMER_CLK_1000_HZ 1000 |
Enumerations | |
enum | { AUX_BASE = (GPIO_BASE + 0x15000), AUX_ENABLES = (AUX_BASE + 0x04), AUX_MU_IO_REG = (AUX_BASE + 0x40), AUX_MU_IER_REG = (AUX_BASE + 0x44), AUX_MU_IIR_REG = (AUX_BASE + 0x48), AUX_MU_LCR_REG = (AUX_BASE + 0x4C), AUX_MU_MCR_REG = (AUX_BASE + 0x50), AUX_MU_LSR_REG = (AUX_BASE + 0x54), AUX_MU_MSR_REG = (AUX_BASE + 0x58), AUX_MU_SCRATCH = (AUX_BASE + 0x5C), AUX_MU_CNTL_REG = (AUX_BASE + 0x60), AUX_MU_STAT_REG = (AUX_BASE + 0x64), AUX_MU_BAUD_REG = (AUX_BASE + 0x68) } |
enum | { MMIO_BASE = 0xFE000000 } |
enum | gpio_func { GF_INPUT = 0, GF_OUTPUT = 1, GF_ALT_0 = 4, GF_ALT_1 = 5, GF_ALT_2 = 6, GF_ALT_3 = 7, GF_ALT_4 = 3, GF_ALT_5 = 2 } |
enum | { GPIO_BASE = (MMIO_BASE + 0x200000), GPFSEL0 = (GPIO_BASE + 0x00), GPFSEL1 = (GPIO_BASE + 0x04), GPFSEL2 = (GPIO_BASE + 0x08), GPFSEL3 = (GPIO_BASE + 0x0C), GPFSEL4 = (GPIO_BASE + 0x10), GPFSEL5 = (GPIO_BASE + 0x14), GPSET0 = (GPIO_BASE + 0x1C), GPSET1 = (GPIO_BASE + 0x20), GPCLR0 = (GPIO_BASE + 0x28), GPCLR1 = (GPIO_BASE + 0x2C), GPLEV0 = (GPIO_BASE + 0x34), GPLEV1 = (GPIO_BASE + 0x38), GPEDS0 = (GPIO_BASE + 0x40), GPEDS1 = (GPIO_BASE + 0x44), GPREN0 = (GPIO_BASE + 0x4C), GPREN1 = (GPIO_BASE + 0x50), GPFEN0 = (GPIO_BASE + 0x58), GPFEN1 = (GPIO_BASE + 0x5C), GPHEN0 = (GPIO_BASE + 0x64), GPHEN1 = (GPIO_BASE + 0x68), GPLEN0 = (GPIO_BASE + 0x70), GPLEN1 = (GPIO_BASE + 0x74), GPAREN0 = (GPIO_BASE + 0x7C), GPAREN1 = (GPIO_BASE + 0x80), GPAFEN0 = (GPIO_BASE + 0x88), GPAFEN1 = (GPIO_BASE + 0x8C), GPIO_PUP_PDN_CNTRL_REG0 = (GPIO_BASE + 0xE4), GPIO_PUP_PDN_CNTRL_REG1 = (GPIO_BASE + 0xE8), GPIO_PUP_PDN_CNTRL_REG2 = (GPIO_BASE + 0xEC), GPIO_PUP_PDN_CNTRL_REG3 = (GPIO_BASE + 0xF0) } |
enum | { IRQ_BASE = (MMIO_BASE + 0xB000), IRQ0_PENDING_0 = (IRQ_BASE + 0x200), IRQ0_PENDING_1 = (IRQ_BASE + 0x204), IRQ0_PENDING_2 = (IRQ_BASE + 0x208), IRQ0_SET_EN_0 = (IRQ_BASE + 0x210), IRQ0_SET_EN_1 = (IRQ_BASE + 0x214), IRQ0_SET_EN_2 = (IRQ_BASE + 0x218), IRQ0_CLR_EN_0 = (IRQ_BASE + 0x220), IRQ0_CLR_EN_1 = (IRQ_BASE + 0x224), IRQ0_CLR_EN_2 = (IRQ_BASE + 0x228), AUX_IRQ = (1 << 29), SYSTEM_TIMER_IRQ_0 = (1 << 0), SYSTEM_TIMER_IRQ_1 = (1 << 1), SYSTEM_TIMER_IRQ_2 = (1 << 2), SYSTEM_TIMER_IRQ_3 = (1 << 3) } |
enum | { MBOX_BASE = (MMIO_BASE + 0xB880), MBOX_READ = (MBOX_BASE + 0x00), MBOX_STATUS = (MBOX_BASE + 0x18), MBOX_WRITE = (MBOX_BASE + 0x20) } |
enum | { TIMER_BASE = (MMIO_BASE + 0x3000), TIMER_CS = (TIMER_BASE + 0x00), TIMER_CLO = (TIMER_BASE + 0x04), TIMER_CHI = (TIMER_BASE + 0x08), TIMER_C0 = (TIMER_BASE + 0x0c), TIMER_C1 = (TIMER_BASE + 0x10), TIMER_C2 = (TIMER_BASE + 0x14), TIMER_C3 = (TIMER_BASE + 0x18), TIMER_CS_M0 = (1 << 0), TIMER_CS_M1 = (1 << 1), TIMER_CS_M2 = (1 << 2), TIMER_CS_M3 = (1 << 3) } |
Raspberry Pi Peripherals addresses.
#define TIMER_CLK_1000_HZ 1000 |
System's Timer Clock Frequency / 1000 (for delays in msec).
#define TIMER_CLK_HZ 1000000 |
System's Timer Clock Frequency (for delays in sec).
anonymous enum |
AUX registers addresses.
anonymous enum |
GPIO registers addresses.
anonymous enum |
The base address for IRQ
anonymous enum |
anonymous enum |
System Timer registers
enum gpio_func |
GPIO Pins available functionalities: 5 Alternative Functions, Input, Output.