Skip to content

Commit 05ddb44

Browse files
committed
add itns field to NVIC perph
1 parent 8bb2a61 commit 05ddb44

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/peripheral/nvic.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,16 @@ pub struct RegisterBlock {
3333
/// Interrupt Active Bit (not present on Cortex-M0 variants)
3434
#[cfg(not(armv6m))]
3535
pub iabr: [RO<u32>; 16],
36-
#[cfg(armv6m)]
36+
#[cfg(any(armv6m, armv8m))]
3737
_reserved4: [u32; 16],
3838

39+
#[cfg(armv8m)]
40+
/// Interrupt Target Non-secure (only present on Arm v8-M)
41+
pub itns: [RW<u32>; 16],
42+
#[cfg(armv8m)]
43+
_reserved5: [u32; 32],
44+
45+
#[cfg(not(armv8m))]
3946
_reserved5: [u32; 48],
4047

4148
/// Interrupt Priority

0 commit comments

Comments
 (0)