diff options
Diffstat (limited to 'embassy-stm32/src/rcc/mod.rs')
| -rw-r--r-- | embassy-stm32/src/rcc/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/rcc/mod.rs b/embassy-stm32/src/rcc/mod.rs index d25c922d8..753ee1290 100644 --- a/embassy-stm32/src/rcc/mod.rs +++ b/embassy-stm32/src/rcc/mod.rs | |||
| @@ -313,7 +313,7 @@ impl RccInfo { | |||
| 313 | 313 | ||
| 314 | #[allow(dead_code)] | 314 | #[allow(dead_code)] |
| 315 | fn increment_minimum_stop_refcount_with_cs(&self, _cs: CriticalSection) { | 315 | fn increment_minimum_stop_refcount_with_cs(&self, _cs: CriticalSection) { |
| 316 | #[cfg(all(stm32wlex, feature = "low-power"))] | 316 | #[cfg(all(any(stm32wlex, stm32wb), feature = "low-power"))] |
| 317 | match self.stop_mode { | 317 | match self.stop_mode { |
| 318 | StopMode::Stop1 | StopMode::Stop2 => increment_stop_refcount(_cs, StopMode::Stop2), | 318 | StopMode::Stop1 | StopMode::Stop2 => increment_stop_refcount(_cs, StopMode::Stop2), |
| 319 | _ => {} | 319 | _ => {} |
| @@ -334,7 +334,7 @@ impl RccInfo { | |||
| 334 | 334 | ||
| 335 | #[allow(dead_code)] | 335 | #[allow(dead_code)] |
| 336 | fn decrement_minimum_stop_refcount_with_cs(&self, _cs: CriticalSection) { | 336 | fn decrement_minimum_stop_refcount_with_cs(&self, _cs: CriticalSection) { |
| 337 | #[cfg(all(stm32wlex, feature = "low-power"))] | 337 | #[cfg(all(any(stm32wlex, stm32wb), feature = "low-power"))] |
| 338 | match self.stop_mode { | 338 | match self.stop_mode { |
| 339 | StopMode::Stop1 | StopMode::Stop2 => decrement_stop_refcount(_cs, StopMode::Stop2), | 339 | StopMode::Stop1 | StopMode::Stop2 => decrement_stop_refcount(_cs, StopMode::Stop2), |
| 340 | _ => {} | 340 | _ => {} |
