libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
efm32/hg/memorymap.h
Go to the documentation of this file.
1
/*
2
* This file is part of the libopencm3 project.
3
*
4
* Copyright (C) 2015 Kuldeep Singh Dhaka <kuldeepdhaka9@gmail.com>
5
* Copyright (C) 2018 Seb Holzapfel <schnommus@gmail.com>
6
*
7
* This library is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU Lesser General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU Lesser General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public License
18
* along with this library. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef LIBOPENCM3_EFM32_MEMORYMAP_H
22
#define LIBOPENCM3_EFM32_MEMORYMAP_H
23
24
#include <
libopencm3/cm3/memorymap.h
>
25
26
#define PERIPH_BASE (0x40000000U)
27
28
/* Device information */
29
#define DI_BASE (0x0FE08000U)
30
31
/* all names are "DI_" + <reg> */
32
#define DI_CMU_LFRCOCTRL MMIO32(DI_BASE + 0x020)
33
#define DI_CMU_HFRCOCTRL MMIO32(DI_BASE + 0x028)
34
#define DI_CMU_AUXHFRCOCTRL MMIO32(DI_BASE + 0x030)
35
#define DI_ADC0_CAL MMIO32(DI_BASE + 0x040)
36
#define DI_ADC0_BIASPROG MMIO32(DI_BASE + 0x048)
37
#define DI_ACMP0_CTRL MMIO32(DI_BASE + 0x050)
38
#define DI_CMU_LCDCTRL MMIO32(DI_BASE + 0x058)
39
#define DI_IDAC0_CAL MMIO32(DI_BASE + 0x078)
40
#define DI_USHFRCOCTRL MMIO32(DI_BASE + 0x098)
41
#define DI_DI_CRC MMIO16(DI_BASE + 0x1B0)
42
#define DI_CAL_TEMP_0 MMIO8(DI_BASE + 0x1B2)
43
#define DI_ADC0_CAL_1V25 MMIO16(DI_BASE + 0x1B4)
44
#define DI_ADC0_CAL_2V5 MMIO16(DI_BASE + 0x1B6)
45
#define DI_ADC0_CAL_VDD MMIO16(DI_BASE + 0x1B8)
46
#define DI_ADC0_CAL_5VDIFF MMIO16(DI_BASE + 0x1BA)
47
#define DI_ADC0_CAL_2XVDD MMIO16(DI_BASE + 0x1BC)
48
#define DI_ADC0_TEMP_0_READ_1V25 MMIO16(DI_BASE + 0x1BE)
49
#define DI_IDAC0_CAL_RANGE0 MMIO32(DI_BASE + 0x1C8)
50
#define DI_IDAC0_CAL_RANGE1 MMIO32(DI_BASE + 0x1C9)
51
#define DI_IDAC0_CAL_RANGE2 MMIO32(DI_BASE + 0x1CA)
52
#define DI_IDAC0_CAL_RANGE3 MMIO32(DI_BASE + 0x1CB)
53
#define DI_USHFRCO_COARSECAL_BAND_25 MMIO32(DI_BASE + 0x1CC)
54
#define DI_USHFRCO_FINECAL_BAND_25 MMIO32(DI_BASE + 0x1CD)
55
#define DI_USHFRCO_COARSECAL_BAND_48 MMIO32(DI_BASE + 0x1CE)
56
#define DI_USHFRCO_FINECAL_BAND_48 MMIO32(DI_BASE + 0x1CF)
57
#define DI_AUXHFRCO_CALIB_BAND_1 MMIO8(DI_BASE + 0x1D4)
58
#define DI_AUXHFRCO_CALIB_BAND_7 MMIO8(DI_BASE + 0x1D5)
59
#define DI_AUXHFRCO_CALIB_BAND_11 MMIO8(DI_BASE + 0x1D6)
60
#define DI_AUXHFRCO_CALIB_BAND_14 MMIO8(DI_BASE + 0x1D7)
61
#define DI_AUXHFRCO_CALIB_BAND_21 MMIO8(DI_BASE + 0x1D8)
62
#define DI_HFRCO_CALIB_BAND_1 MMIO8(DI_BASE + 0x1DC)
63
#define DI_HFRCO_CALIB_BAND_7 MMIO8(DI_BASE + 0x1DD)
64
#define DI_HFRCO_CALIB_BAND_11 MMIO8(DI_BASE + 0x1DE)
65
#define DI_HFRCO_CALIB_BAND_14 MMIO8(DI_BASE + 0x1DF)
66
#define DI_HFRCO_CALIB_BAND_21 MMIO8(DI_BASE + 0x1E0)
67
#define DI_UNIQUE_0 MMIO32(DI_BASE + 0x1F0)
68
#define DI_UNIQUE_1 MMIO32(DI_BASE + 0x1F4)
69
#define DI_MEM_INFO_FLASH MMIO16(DI_BASE + 0x1F8)
70
#define DI_MEM_INFO_RAM MMIO16(DI_BASE + 0x1FA)
71
#define DI_PART_NUMBER MMIO16(DI_BASE + 0x1FC)
72
#define DI_PART_FAMILY MMIO8(DI_BASE + 0x1FE)
73
#define DI_PROD_REV MMIO8(DI_BASE + 0x1FF)
74
75
#define AES_BASE (PERIPH_BASE + 0xE0000)
76
#define PRS_BASE (PERIPH_BASE + 0xCC000)
77
#define RMU_BASE (PERIPH_BASE + 0xCA000)
78
#define CMU_BASE (PERIPH_BASE + 0xC8000)
79
#define EMU_BASE (PERIPH_BASE + 0xC6000)
80
#define USB_BASE (PERIPH_BASE + 0xC4000)
81
#define DMA_BASE (PERIPH_BASE + 0xC2000)
82
#define MSC_BASE (PERIPH_BASE + 0xC0000)
83
#define WDOG_BASE (PERIPH_BASE + 0x88000)
84
#define PCNT0_BASE (PERIPH_BASE + 0x86000)
85
#define LEUART0_BASE (PERIPH_BASE + 0x84000)
86
#define RTC_BASE (PERIPH_BASE + 0x80000)
87
#define TIMER2_BASE (PERIPH_BASE + 0x10800)
88
#define TIMER1_BASE (PERIPH_BASE + 0x10400)
89
#define TIMER0_BASE (PERIPH_BASE + 0x10000)
90
#define USART1_BASE (PERIPH_BASE + 0x0C400)
91
#define USART0_BASE (PERIPH_BASE + 0x0C000)
92
#define I2C0_BASE (PERIPH_BASE + 0x0A000)
93
#define GPIO_BASE (PERIPH_BASE + 0x06000)
94
#define IDAC0_BASE (PERIPH_BASE + 0x04000)
95
#define ADC0_BASE (PERIPH_BASE + 0x02000)
96
#define ACMP0_BASE (PERIPH_BASE + 0x01000)
97
#define VCMP_BASE (PERIPH_BASE + 0x00000)
98
99
#define USB_OTG_FS_BASE (USB_BASE + 0x3C000)
100
101
#endif
memorymap.h
include
libopencm3
efm32
hg
memorymap.h
Generated on Tue Mar 7 2023 16:12:32 for libopencm3 by
1.9.4