1
2
3
8
9
10
11
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/* ... */
#ifndef _HARDWARE_STRUCTS_NVIC_H
#define _HARDWARE_STRUCTS_NVIC_H
/* ... */
#include "hardware/address_mapped.h"
#include "hardware/regs/m33.h"
#if defined(__riscv) && PICO_FORBID_ARM_HEADERS_ON_RISCV
#error "Arm header included in a RISC-V build with PICO_FORBID_ARM_HEADERS_ON_RISCV=1"
#endif
typedef struct {
_REG_(M33_NVIC_ISER0_OFFSET)
io_rw_32 iser[2];
uint32_t _pad0[30];
_REG_(M33_NVIC_ICER0_OFFSET)
io_rw_32 icer[2];
uint32_t _pad1[30];
_REG_(M33_NVIC_ISPR0_OFFSET)
io_rw_32 ispr[2];
uint32_t _pad2[30];
_REG_(M33_NVIC_ICPR0_OFFSET)
io_rw_32 icpr[2];
uint32_t _pad3[30];
_REG_(M33_NVIC_IABR0_OFFSET)
io_rw_32 iabr[2];
uint32_t _pad4[30];
_REG_(M33_NVIC_ITNS0_OFFSET)
io_rw_32 itns[2];
uint32_t _pad5[30];
_REG_(M33_NVIC_IPR0_OFFSET)
io_rw_32 ipr[16];
...} nvic_hw_t;
#define nvic_hw ((nvic_hw_t *)(PPB_BASE + M33_NVIC_ISER0_OFFSET))
#define nvic_ns_hw ((nvic_hw_t *)(PPB_NONSEC_BASE + M33_NVIC_ISER0_OFFSET))
static_assert(sizeof (nvic_hw_t) == 0x0340, "");
/* ... */
#endif