libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
common/ficr.h
Go to the documentation of this file.
1
/** @addtogroup ficr_defines
2
*
3
* @author @htmlonly © @endhtmlonly 2016 Maxim Sloyko <maxims@google.com>
4
* @author @htmlonly © @endhtmlonly 2021 Eduard Drusa <ventyl86 at netkosice dot sk>
5
*
6
**/
7
8
/*
9
* This file is part of the libopencm3 project.
10
*
11
* Copyright (C) 2017-2018 Unicore MX project<dev(at)lists(dot)unicore-mx(dot)org>
12
* Copyright (C) 2021 Eduard Drusa <ventyl86(at)netkosice(dot)sk>
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
#pragma once
29
30
#include <
libopencm3/cm3/common.h
>
31
#include <
libopencm3/nrf/memorymap.h
>
32
/**@{*/
33
34
/* Factory Information Configuration Register */
35
36
#define FICR_CODEPAGESIZE MMIO32(FICR_BASE + 0x010)
37
#define FICR_CODESIZE MMIO32(FICR_BASE + 0x014)
38
39
#define FICR_DEVICEID0 MMIO32(FICR_BASE + 0x060)
40
#define FICR_DEVICEID1 MMIO32(FICR_BASE + 0x064)
41
42
/* Encryption Root */
43
#define FICR_ER(n) MMIO32(FICR_BASE + 0x080 + 0x4 * (n))
44
/* Identity Root */
45
#define FICR_IR(n) MMIO32(FICR_BASE + 0x090 + 0x4 * (n))
46
#define FICR_DEVICEADDRTYPE MMIO32(FICR_BASE + 0x0A0)
47
#define FICR_DEVICEADDR0 MMIO32(FICR_BASE + 0x0A4)
48
#define FICR_DEVICEADDR1 MMIO32(FICR_BASE + 0x0A8)
49
50
51
/**@}*/
52
common.h
memorymap.h
include
libopencm3
nrf
common
ficr.h
Generated on Tue Mar 7 2023 16:12:57 for libopencm3 by
1.9.4