@web-font-path: "roboto-debian.css";
Menu Toggle
v2.1.1 (RP2040)
Loading...
Searching...
No Matches
sysinfo.h
1
// THIS HEADER FILE IS AUTOMATICALLY GENERATED -- DO NOT EDIT
2
8
#ifndef _HARDWARE_STRUCTS_SYSINFO_H
9
#define _HARDWARE_STRUCTS_SYSINFO_H
10
15
#include "
hardware/address_mapped.h
"
16
#include "hardware/regs/sysinfo.h"
17
18
// Reference to datasheet: https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf#tab-registerlist_sysinfo
19
//
20
// The _REG_ macro is intended to help make the register navigable in your IDE (for example, using the "Go to Definition" feature)
21
// _REG_(x) will link to the corresponding register in hardware/regs/sysinfo.h.
22
//
23
// Bit-field descriptions are of the form:
24
// BITMASK [BITRANGE] FIELDNAME (RESETVALUE) DESCRIPTION
25
26
typedef
struct
{
27
_REG_(SYSINFO_CHIP_ID_OFFSET)
// SYSINFO_CHIP_ID
28
// JEDEC JEP-106 compliant chip identifier
29
// 0xf0000000 [31:28] REVISION (-)
30
// 0x0ffff000 [27:12] PART (-)
31
// 0x00000fff [11:0] MANUFACTURER (-)
32
io_ro_32 chip_id;
33
34
_REG_(SYSINFO_PLATFORM_OFFSET)
// SYSINFO_PLATFORM
35
// Platform register
36
// 0x00000002 [1] ASIC (0)
37
// 0x00000001 [0] FPGA (0)
38
io_ro_32 platform;
39
40
uint32_t _pad0[2];
41
42
_REG_(SYSINFO_GITREF_RP2040_OFFSET)
// SYSINFO_GITREF_RP2040
43
// Git hash of the chip source
44
// 0xffffffff [31:0] GITREF_RP2040 (-)
45
io_ro_32 gitref_rp2040;
46
}
sysinfo_hw_t
;
47
48
#define sysinfo_hw ((sysinfo_hw_t *)SYSINFO_BASE)
49
static_assert
(
sizeof
(
sysinfo_hw_t
) == 0x0014,
""
);
50
51
#endif
// _HARDWARE_STRUCTS_SYSINFO_H
52
address_mapped.h
sysinfo_hw_t
Definition
sysinfo.h:26