diff options
Diffstat (limited to 'embassy-stm32')
| -rw-r--r-- | embassy-stm32/src/low_power.rs | 4 | ||||
| -rw-r--r-- | embassy-stm32/src/rcc/mod.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/embassy-stm32/src/low_power.rs b/embassy-stm32/src/low_power.rs index ce3ee6a03..0cdd7789e 100644 --- a/embassy-stm32/src/low_power.rs +++ b/embassy-stm32/src/low_power.rs | |||
| @@ -124,9 +124,9 @@ impl Into<Lpms> for StopMode { | |||
| 124 | fn into(self) -> Lpms { | 124 | fn into(self) -> Lpms { |
| 125 | match self { | 125 | match self { |
| 126 | StopMode::Stop1 => Lpms::STOP1, | 126 | StopMode::Stop1 => Lpms::STOP1, |
| 127 | #[cfg(not(any(stm32wb, stm32wba)))] | 127 | #[cfg(not(stm32wba))] |
| 128 | StopMode::Standby | StopMode::Stop2 => Lpms::STOP2, | 128 | StopMode::Standby | StopMode::Stop2 => Lpms::STOP2, |
| 129 | #[cfg(any(stm32wb, stm32wba))] | 129 | #[cfg(stm32wba)] |
| 130 | StopMode::Standby | StopMode::Stop2 => Lpms::STOP1, // TODO: WBA has no STOP2? | 130 | StopMode::Standby | StopMode::Stop2 => Lpms::STOP1, // TODO: WBA has no STOP2? |
| 131 | } | 131 | } |
| 132 | } | 132 | } |
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 | _ => {} |
