mirror of
https://github.com/danog/baremetal.git
synced 2024-11-26 20:15:01 +01:00
27 lines
846 B
C
27 lines
846 B
C
#pragma once
|
|
|
|
#define BUS_OFFSET 0x3F000000
|
|
|
|
#define AUX_MU_IER_REG (0x7E215044 - BUS_OFFSET)
|
|
|
|
#define GPFSEL1 (0x7E200004 - BUS_OFFSET)
|
|
#define GPPUD (0x7E200094 - BUS_OFFSET)
|
|
#define GPPUDCLK0 (0x7E200098 - BUS_OFFSET)
|
|
#define AUX_ENABLES (0x7E215004 - BUS_OFFSET)
|
|
#define AUX_MU_CNTL_REG (0x7E215060 - BUS_OFFSET)
|
|
#define AUX_MU_IO_REG (0x7E215040 - BUS_OFFSET)
|
|
#define AUX_MU_IER_REG (0x7E215044 - BUS_OFFSET)
|
|
#define AUX_MU_IIR_REG (0x7E215048 - BUS_OFFSET)
|
|
#define AUX_MU_LCR_REG (0x7E21504c - BUS_OFFSET)
|
|
#define AUX_MU_MCR_REG (0x7E215050 - BUS_OFFSET)
|
|
#define AUX_MU_LSR_REG (0x7E215054 - BUS_OFFSET)
|
|
#define AUX_MU_BAUD_REG (0x7E215068 - BUS_OFFSET)
|
|
|
|
#define UART_BASE (0x7E201000-BUS_OFFSET)
|
|
|
|
#define ST_CLO (0x7e003004 - BUS_OFFSET)
|
|
|
|
#define ARM_BASE (0x7E00B000 - BUS_OFFSET)
|
|
|
|
// Basic configuration
|
|
#define ARM_ID (ARM_BASE+0x44c) |