diff options
| author | liebman <[email protected]> | 2025-10-08 13:54:17 -0700 |
|---|---|---|
| committer | liebman <[email protected]> | 2025-11-03 12:46:36 -0800 |
| commit | 676b1f3b67e36d73bac18d4235c8b2c6a4c4c972 (patch) | |
| tree | da4718effaa455e37438a1ea2860bdbac103c42f | |
| parent | 362eba9b97235b18cc67ca13328312dabb51c523 (diff) | |
rcc::reinit - only need RCC for the length of the call
| -rw-r--r-- | embassy-stm32/src/rcc/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/rcc/mod.rs b/embassy-stm32/src/rcc/mod.rs index addfca3c3..c817dd4b7 100644 --- a/embassy-stm32/src/rcc/mod.rs +++ b/embassy-stm32/src/rcc/mod.rs | |||
| @@ -390,7 +390,7 @@ pub fn disable<T: RccPeripheral>() { | |||
| 390 | /// | 390 | /// |
| 391 | /// This should only be called after `init`. | 391 | /// This should only be called after `init`. |
| 392 | #[cfg(not(feature = "_dual-core"))] | 392 | #[cfg(not(feature = "_dual-core"))] |
| 393 | pub fn reinit<'a>(config: Config, _rcc: &'a mut crate::Peri<'a, crate::peripherals::RCC>) { | 393 | pub fn reinit(config: Config, _rcc: &'_ mut crate::Peri<'_, crate::peripherals::RCC>) { |
| 394 | critical_section::with(|cs| init_rcc(cs, config)) | 394 | critical_section::with(|cs| init_rcc(cs, config)) |
| 395 | } | 395 | } |
| 396 | 396 | ||
