libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
swm050/memorymap.h
Go to the documentation of this file.
1/** @defgroup mmap_defines Memory Map
2 *
3 * @brief <b>Defined Constants for the SWM050 Memory Map</b>
4 *
5 * @ingroup SWM050_defines
6 *
7 * LGPL License Terms @ref lgpl_license
8 */
9/*
10 * This file is part of the libopencm3 project.
11 *
12 * Copyright (C) 2019 Icenowy Zheng <icenowy@aosc.io>
13 *
14 * This library is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU Lesser General Public License for more details.
23 *
24 * You should have received a copy of the GNU Lesser General Public License
25 * along with this library. If not, see <http://www.gnu.org/licenses/>.
26 */
27/**@{*/
28#ifndef LIBOPENCM3_MEMORYMAP_H
29#define LIBOPENCM3_MEMORYMAP_H
31
32/* Memory map for all buses */
33/** @defgroup memory_map Memory Map for All Buses
34@{*/
35#define PERIPH_BASE (0x40000000U)
36
37#define SYSTEM_CON_BASE (PERIPH_BASE + 0x0)
38#define GPIO_BASE (PERIPH_BASE + 0x1000)
39#define TIMER_SE0_BASE (PERIPH_BASE + 0x2000)
40#define TIMER_SE1_BASE (PERIPH_BASE + 0x2400)
41#define WDT_BASE (PERIPH_BASE + 0x19000)
42#define SYSCTL_BASE (PERIPH_BASE + 0xf0000)
43/*@}*/
44
45#endif
46/**@}*/