@web-font-path: "roboto-debian.css";
Loading...
Searching...
No Matches
syscfg.h
1// THIS HEADER FILE IS AUTOMATICALLY GENERATED -- DO NOT EDIT
2
3/*
4 * Copyright (c) 2021 Raspberry Pi (Trading) Ltd.
5 *
6 * SPDX-License-Identifier: BSD-3-Clause
7 */
8
9#ifndef _HARDWARE_STRUCTS_SYSCFG_H
10#define _HARDWARE_STRUCTS_SYSCFG_H
11
13#include "hardware/regs/syscfg.h"
14
15// Reference to datasheet: https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf#tab-registerlist_syscfg
16//
17// The _REG_ macro is intended to help make the register navigable in your IDE (for example, using the "Go to Definition" feature)
18// _REG_(x) will link to the corresponding register in hardware/regs/syscfg.h.
19//
20// Bit-field descriptions are of the form:
21// BITMASK [BITRANGE]: FIELDNAME (RESETVALUE): DESCRIPTION
22
23typedef struct {
24 _REG_(SYSCFG_PROC0_NMI_MASK_OFFSET) // SYSCFG_PROC0_NMI_MASK
25 // Processor core 0 NMI source mask
26 io_rw_32 proc0_nmi_mask;
27
28 _REG_(SYSCFG_PROC1_NMI_MASK_OFFSET) // SYSCFG_PROC1_NMI_MASK
29 // Processor core 1 NMI source mask
30 io_rw_32 proc1_nmi_mask;
31
32 _REG_(SYSCFG_PROC_CONFIG_OFFSET) // SYSCFG_PROC_CONFIG
33 // Configuration for processors
34 // 0xf0000000 [31:28] : PROC1_DAP_INSTID (1): Configure proc1 DAP instance ID
35 // 0x0f000000 [27:24] : PROC0_DAP_INSTID (0): Configure proc0 DAP instance ID
36 // 0x00000002 [1] : PROC1_HALTED (0): Indication that proc1 has halted
37 // 0x00000001 [0] : PROC0_HALTED (0): Indication that proc0 has halted
38 io_rw_32 proc_config;
39
40 _REG_(SYSCFG_PROC_IN_SYNC_BYPASS_OFFSET) // SYSCFG_PROC_IN_SYNC_BYPASS
41 // For each bit, if 1, bypass the input synchronizer between that GPIO
42 // 0x3fffffff [29:0] : PROC_IN_SYNC_BYPASS (0)
43 io_rw_32 proc_in_sync_bypass;
44
45 _REG_(SYSCFG_PROC_IN_SYNC_BYPASS_HI_OFFSET) // SYSCFG_PROC_IN_SYNC_BYPASS_HI
46 // For each bit, if 1, bypass the input synchronizer between that GPIO
47 // 0x0000003f [5:0] : PROC_IN_SYNC_BYPASS_HI (0)
48 io_rw_32 proc_in_sync_bypass_hi;
49
50 _REG_(SYSCFG_DBGFORCE_OFFSET) // SYSCFG_DBGFORCE
51 // Directly control the SWD debug port of either processor
52 // 0x00000080 [7] : PROC1_ATTACH (0): Attach processor 1 debug port to syscfg controls, and disconnect it from...
53 // 0x00000040 [6] : PROC1_SWCLK (1): Directly drive processor 1 SWCLK, if PROC1_ATTACH is set
54 // 0x00000020 [5] : PROC1_SWDI (1): Directly drive processor 1 SWDIO input, if PROC1_ATTACH is set
55 // 0x00000010 [4] : PROC1_SWDO (0): Observe the value of processor 1 SWDIO output
56 // 0x00000008 [3] : PROC0_ATTACH (0): Attach processor 0 debug port to syscfg controls, and disconnect it from...
57 // 0x00000004 [2] : PROC0_SWCLK (1): Directly drive processor 0 SWCLK, if PROC0_ATTACH is set
58 // 0x00000002 [1] : PROC0_SWDI (1): Directly drive processor 0 SWDIO input, if PROC0_ATTACH is set
59 // 0x00000001 [0] : PROC0_SWDO (0): Observe the value of processor 0 SWDIO output
60 io_rw_32 dbgforce;
61
62 _REG_(SYSCFG_MEMPOWERDOWN_OFFSET) // SYSCFG_MEMPOWERDOWN
63 // Control power downs to memories
64 // 0x00000080 [7] : ROM (0)
65 // 0x00000040 [6] : USB (0)
66 // 0x00000020 [5] : SRAM5 (0)
67 // 0x00000010 [4] : SRAM4 (0)
68 // 0x00000008 [3] : SRAM3 (0)
69 // 0x00000004 [2] : SRAM2 (0)
70 // 0x00000002 [1] : SRAM1 (0)
71 // 0x00000001 [0] : SRAM0 (0)
72 io_rw_32 mempowerdown;
74
75#define syscfg_hw ((syscfg_hw_t *)SYSCFG_BASE)
76
77#endif
Definition syscfg.h:23