diff options
| author | liebman <[email protected]> | 2025-10-22 07:16:43 -0700 |
|---|---|---|
| committer | liebman <[email protected]> | 2025-11-03 12:49:49 -0800 |
| commit | 36aa3e10aaf27bb1bd1109a203b378dc93b90b02 (patch) | |
| tree | 9148a85c8e26ff46c5e8dd937b40f1b7ec501fa5 /embassy-stm32/src/i2c | |
| parent | e4eac457b3b86fd89c215c386216f7cf0873ba38 (diff) | |
low_power: i2c wakeup
Diffstat (limited to 'embassy-stm32/src/i2c')
| -rw-r--r-- | embassy-stm32/src/i2c/v2.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-stm32/src/i2c/v2.rs b/embassy-stm32/src/i2c/v2.rs index 01b6b8800..a2184630f 100644 --- a/embassy-stm32/src/i2c/v2.rs +++ b/embassy-stm32/src/i2c/v2.rs | |||
| @@ -70,6 +70,11 @@ fn debug_print_interrupts(isr: stm32_metapac::i2c::regs::Isr) { | |||
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | pub(crate) unsafe fn on_interrupt<T: Instance>() { | 72 | pub(crate) unsafe fn on_interrupt<T: Instance>() { |
| 73 | // restore the clocks to their last configured state as | ||
| 74 | // much is lost in STOP modes | ||
| 75 | #[cfg(all(feature = "low-power", stm32wlex))] | ||
| 76 | crate::low_power::on_wakeup_irq(); | ||
| 77 | |||
| 73 | let regs = T::info().regs; | 78 | let regs = T::info().regs; |
| 74 | let isr = regs.isr().read(); | 79 | let isr = regs.isr().read(); |
| 75 | 80 | ||
