Skip to content

Commit ef4fa36

Browse files
committed
Allow unused on DMA register block impl on F4
1 parent 73f138a commit ef4fa36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/peripherals.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ mod pac_override_impl {
196196

197197
#[doc = r"Return the pointer to the register block"]
198198
#[inline(always)]
199+
#[allow(unused)]
199200
pub const fn ptr() -> *const MacRegisterBlock {
200201
Self::PTR
201202
}
@@ -260,6 +261,9 @@ mod pac_override_impl {
260261
#[doc = r"Pointer to the register block"]
261262
pub const PTR: *const DmaRegisterBlock = 0x4002_9000 as *const _;
262263

264+
#[doc = r"Return the pointer to the register block"]
265+
#[inline(always)]
266+
#[allow(unused)]
263267
pub const fn ptr() -> *const DmaRegisterBlock {
264268
Self::PTR
265269
}

0 commit comments

Comments
 (0)