Skip to content

Commit 698ec8f

Browse files
committed
Always inline register addresses
This shaves off a couple of bytes of any dev build Signed-off-by: Daniel Egger <[email protected]>
1 parent 523a887 commit 698ec8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/generate/peripheral.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ pub fn render(
5454

5555
impl #name_pc {
5656
/// Returns a pointer to the register block
57+
#[inline(always)]
5758
pub const fn ptr() -> *const #base::RegisterBlock {
5859
#address as _
5960
}

0 commit comments

Comments
 (0)