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
1 changed files with 1 additions and 0 deletions
|
@ -499,6 +499,7 @@ macro_rules! impl_instance {
|
||||||
|
|
||||||
type Interrupt = crate::interrupt::$irq;
|
type Interrupt = crate::interrupt::$irq;
|
||||||
|
|
||||||
|
#[inline]
|
||||||
fn regs() -> pac::i2c::I2c {
|
fn regs() -> pac::i2c::I2c {
|
||||||
pac::$type
|
pac::$type
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue