Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
f2776db0eThis file is pinned to the selected release. Download the original to open it in your design tool.
#ifndef _ADDRESSMAP_H_
#define _ADDRESSMAP_H_
// External SRAM/main memory:
#define SRAM0_BASE (0x2ul << 28)
#define SRAM0_SIZE (512 * 1024)
// Boot/stack SRAM:
#define SRAM1_BASE (SRAM0_BASE + SRAM0_SIZE)
#define SRAM1_SIZE (8 * 1024)
#define PERI_BASE (0x4ul << 28)
#define GPIO_BASE (PERI_BASE + 0x0000)
#define UART_BASE (PERI_BASE + 0x1000)
#define PWM_BASE (PERI_BASE + 0x2000)
#define SPI_BASE (PERI_BASE + 0x3000)
#define PPU_BASE (PERI_BASE + 0x4000)
#define DISP_BASE (PERI_BASE + 0x5000)
#define TBMAN_BASE (PERI_BASE + 0xf000)
#ifndef __ASSEMBLER__
#define DECL_REG(addr, name) volatile uint32_t * const (name) = (volatile uint32_t*)(addr)
#define __time_critical __attribute__((section(".time_critical")))
typedef volatile uint32_t io_rw_32;
#endif
#endif // _ADDRESSMAP_H_