libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
sam/d/memorymap.h
Go to the documentation of this file.
1/*
2 * This file is part of the libopencm3 project.
3 *
4 * Copyright (C) 2016 Karl Palsson <karlp@tweak.net.au>
5 *
6 * This library is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this library. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef SAMD_MEMORYMAP_H
21#define SAMD_MEMORYMAP_H
22
24
25/* --- SAMD AHB-APB bridge A -------------------------------------------- */
26#define PM_BASE (0x40000400U)
27#define SYSCTRL_BASE (0x40000800U)
28#define GCLK_BASE (0x40000c00U)
29#define WDT_BASE (0x40001000U)
30#define RTC_BASE (0x40001400U)
31#define EIC_BASE (0x40001800U)
32/* --- SAMD AHB-APB bridge B -------------------------------------------- */
33#define DSU_BASE (0x41002000U)
34#define NVMCTRL_BASE (0x41004000U)
35#define PORT_BASE (0x41004400U)
36#define DMAC_BASE (0x41004800U)
37#define MTB_BASE (0x41006000U)
38/* --- SAMD AHB-APB bridge C -------------------------------------------- */
39#define EVSYS_BASE (0x42000400U)
40#define SERCOM0_BASE (0x42000800U)
41#define SERCOM1_BASE (0x42000c00U)
42#define SERCOM2_BASE (0x42001000U)
43#define TCC0_BASE (0x42001400U)
44#define TC1_BASE (0x42001800U)
45#define TC2_BASE (0x42001c00U)
46#define ADC_BASE (0x42002000U)
47#define AC_BASE (0x42002400U)
48#define DAC_BASE (0x42002800U)
49#define PTC_BASE (0x42002c00U)
50
51#endif