libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
rmu_common.h
Go to the documentation of this file.
1
/** @addtogroup rmu_defines
2
*/
3
/*
4
* This file is part of the libopencm3 project.
5
*
6
* Copyright (C) 2015 Kuldeep Singh Dhaka <kuldeepdhaka9@gmail.com>
7
*
8
* This library is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU Lesser General Public License as published by
10
* the Free Software Foundation, either version 3 of the License, or
11
* (at your option) any later version.
12
*
13
* This library is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU Lesser General Public License for more details.
17
*
18
* You should have received a copy of the GNU Lesser General Public License
19
* along with this library. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
22
#pragma once
23
24
#include <
libopencm3/efm32/memorymap.h
>
25
#include <
libopencm3/cm3/common.h
>
26
27
/**@{*/
28
29
#define RMU_CTRL MMIO32(RMU_BASE + 0x00)
30
#define RMU_RSTCAUSE MMIO32(RMU_BASE + 0x04)
31
#define RMU_CMD MMIO32(RMU_BASE + 0x08)
32
33
/* RMU_CTRL */
34
#define RMU_CTRL_BURSTEN (1 << 1)
35
#define RMU_CTRL_LOCKUPRDIS (1 << 0)
36
37
/* RMU_RSTCAUSE */
38
#define RMU_RSTCAUSE_BUMODERST (1 << 15)
39
#define RMU_RSTCAUSE_BUBODREG (1 << 14)
40
#define RMU_RSTCAUSE_BUBODUNREG (1 << 13)
41
#define RMU_RSTCAUSE_BUBODBUVIN (1 << 12)
42
#define RMU_RSTCAUSE_BUBODVDDDREG (1 << 11)
43
#define RMU_RSTCAUSE_BODAVDD1 (1 << 10)
44
#define RMU_RSTCAUSE_BODAVDD0 (1 << 9)
45
#define RMU_RSTCAUSE_EM4WURST (1 << 8)
46
#define RMU_RSTCAUSE_EM4RST (1 << 7)
47
#define RMU_RSTCAUSE_SYSREQRST (1 << 6)
48
#define RMU_RSTCAUSE_LOCKUPRST (1 << 5)
49
#define RMU_RSTCAUSE_WDOGRST (1 << 4)
50
#define RMU_RSTCAUSE_EXTRST (1 << 3)
51
#define RMU_RSTCAUSE_BODREGRST (1 << 2)
52
#define RMU_RSTCAUSE_BODUNREGRST (1 << 1)
53
#define RMU_RSTCAUSE_PORST (1 << 0)
54
55
/* RMU_CMD */
56
#define RMU_CMD_RCCLR (1 << 0)
57
58
/**@}*/
common.h
memorymap.h
Dispatcher for the base address definitions, depending on the particular Gecko family.
include
libopencm3
efm32
common
rmu_common.h
Generated on Tue Mar 7 2023 16:12:40 for libopencm3 by
1.9.4