mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
embassy-rp: inline I2c::regs
It just returns a literal constant, so there's no reason not to always inline it.
This commit is contained in:
parent
aabc02506b
commit
90d392205f
@ -499,6 +499,7 @@ macro_rules! impl_instance {
|
||||
|
||||
type Interrupt = crate::interrupt::$irq;
|
||||
|
||||
#[inline]
|
||||
fn regs() -> pac::i2c::I2c {
|
||||
pac::$type
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user