summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2022-09-28 10:00:30 -0700
committerJeremy Fitzhardinge <jeremy@goop.org>2022-10-01 13:26:13 -0700
commit90d392205fe7c07cbc59b09679cde6cfc1e244b6 (patch)
tree125eaafdb08a85410fda5e3548bfab5a2284c579
parentaabc02506bcbd762552660a0b45cda6e15787cab (diff)
downloadembassy-90d392205fe7c07cbc59b09679cde6cfc1e244b6.zip
embassy-rp: inline I2c::regs
It just returns a literal constant, so there's no reason not to always inline it.
-rw-r--r--embassy-rp/src/i2c.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-rp/src/i2c.rs b/embassy-rp/src/i2c.rs
index 52f910ce..ab56c935 100644
--- a/embassy-rp/src/i2c.rs
+++ b/embassy-rp/src/i2c.rs
@@ -499,6 +499,7 @@ macro_rules! impl_instance {
type Interrupt = crate::interrupt::$irq;
+ #[inline]
fn regs() -> pac::i2c::I2c {
pac::$type
}