diff options
| author | Jeremy Fitzhardinge <[email protected]> | 2022-09-28 10:00:30 -0700 |
|---|---|---|
| committer | Jeremy Fitzhardinge <[email protected]> | 2022-10-01 13:26:13 -0700 |
| commit | 90d392205fe7c07cbc59b09679cde6cfc1e244b6 (patch) | |
| tree | 125eaafdb08a85410fda5e3548bfab5a2284c579 | |
| parent | aabc02506bcbd762552660a0b45cda6e15787cab (diff) | |
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.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-rp/src/i2c.rs b/embassy-rp/src/i2c.rs index 52f910cef..ab56c9359 100644 --- a/embassy-rp/src/i2c.rs +++ b/embassy-rp/src/i2c.rs | |||
| @@ -499,6 +499,7 @@ macro_rules! impl_instance { | |||
| 499 | 499 | ||
| 500 | type Interrupt = crate::interrupt::$irq; | 500 | type Interrupt = crate::interrupt::$irq; |
| 501 | 501 | ||
| 502 | #[inline] | ||
| 502 | fn regs() -> pac::i2c::I2c { | 503 | fn regs() -> pac::i2c::I2c { |
| 503 | pac::$type | 504 | pac::$type |
| 504 | } | 505 | } |
