libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
sam/4l/memorymap.h
Go to the documentation of this file.
1/*
2 * This file is part of the libopencm3 project.
3 *
4 * This library is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef SAM4L_MEMORYMAP_H
19#define SAM4L_MEMORYMAP_H
20
22
23#define PERIPH_BASE (0x40000000U)
24
25/* --- SAM4L peripheral bridge A -------------------------------------------- */
26#define PERIPH_PBA_BASE PERIPH_BASE
27/* (PERIPH_PBA_BASE + 0x4000) RESERVED */
28#define I2SC_BASE (PERIPH_PBA_BASE + 0x04000)
29#define SPI_BASE (PERIPH_PBA_BASE + 0x08000)
30/* (PERIPH_PBA_BASE + 0x0C000) RESERVED */
31#define TC0_BASE (PERIPH_PBA_BASE + 0x10000)
32#define TC1_BASE (PERIPH_PBA_BASE + 0x14000)
33#define TWIMS0_BASE (PERIPH_PBA_BASE + 0x18000)
34#define TWIMS1_BASE (PERIPH_PBA_BASE + 0x1C000)
35/* (PERIPH_PBA_BASE + 0x20000) RESERVED */
36#define USART0_BASE (PERIPH_PBA_BASE + 0x24000)
37#define USART1_BASE (PERIPH_PBA_BASE + 0x28000
38#define USART2_BASE (PERIPH_PBA_BASE + 0x2C000)
39#define USART3_BASE (PERIPH_PBA_BASE + 0x30000)
40/* (PERIPH_PBA_BASE + 0x34000) RESERVED */
41#define ADCIFE_BASE (PERIPH_PBA_BASE + 0x38000)
42#define DACC_BASE (PERIPH_PBA_BASE + 0x3C000)
43#define ACIFC_BASE (PERIPH_PBA_BASE + 0x40000)
44/* (PERIPH_PBA_BASE + 0x44000) to (PERIPH_PBA_BASE + 0x5C000) RESERVED */
45#define GLOC_BASE (PERIPH_PBA_BASE + 0x60000)
46#define ABDACB_BASE (PERIPH_PBA_BASE + 0x64000)
47#define TRNG_BASE (PERIPH_PBA_BASE + 0x68000)
48#define PARC_BASE (PERIPH_PBA_BASE + 0x6C000)
49#define CATB_BASE (PERIPH_PBA_BASE + 0x70000)
50/* (PERIPH_PBA_BASE + 0x74000) RESERVED */
51#define TWIM2_BASE (PERIPH_PBA_BASE + 0x78000)
52#define TWIM3_BASE (PERIPH_PBA_BASE + 0x7C000)
53#define LCDCA_BASE (PERIPH_PBA_BASE + 0x80000)
54
55/* --- SAM4L peripheral bridge B -------------------------------------------- */
56#define PERIPH_PBB_BASE (PERIPH_BASE + 0xA0000U)
57#define FLASHCALW_BASE (PERIPH_PBB_BASE)
58#define PICOCACHE_BASE (PERIPH_PBB_BASE + 0x400)
59#define HMATRIX_BASE (PERIPH_PBB_BASE + 0x1000)
60#define PDCA_BASE (PERIPH_PBB_BASE + 0x2000)
61#define SMAP_BASE (PERIPH_PBB_BASE + 0x3000)
62#define CRCCU_BASE (PERIPH_PBB_BASE + 0x4000)
63#define USBC_BASE (PERIPH_PBB_BASE + 0x5000)
64#define PEVC_BASE (PERIPH_PBB_BASE + 0x6000)
65
66/* --------- Advanced Encryption Standard (AESA) ------------- */
67#define AESA_BASE (PERIPH_BASE + 0xB0000)
68
69/* --- SAM4L peripheral bridge C -------------------------------------------- */
70#define PERIPH_PBC_BASE (PERIPH_BASE + 0xE0000)
71#define PM_BASE (PERIPH_PBC_BASE)
72#define CHIPID_BASE (PERIPH_PBC_BASE + 0x740)
73#define SCIF_BASE (PERIPH_PBC_BASE + 0x800)
74#define FREQM_BASE (PERIPH_PBC_BASE + 0xC00)
75#define GPIO_BASE (PERIPH_PBC_BASE + 0x1000)
76
77/* --- SAM4L peripheral bridge D -------------------------------------------- */
78#define PERIPH_PBD_BASE (PERIPH_BASE + 0xF0000U)
79#define BPM_BASE (PERIPH_PBD_BASE)
80#define BSCIF_BASE (PERIPH_PBD_BASE + 0x400)
81#define AST_BASE (PERIPH_PBD_BASE + 0x800)
82#define WDT_BASE (PERIPH_PBD_BASE + 0xC00)
83#define EIC_BASE (PERIPH_PBD_BASE + 0x1000)
84#define PICOUART_BASE (PERIPH_PBD_BASE + 0x1400)
85
86#endif