diff options
| author | Frank Stevenson <[email protected]> | 2025-07-24 13:51:35 +0200 |
|---|---|---|
| committer | Frank Stevenson <[email protected]> | 2025-07-24 13:51:35 +0200 |
| commit | 3394f3ab9d2c0640bbd0804d5fd28cc68153786d (patch) | |
| tree | 7691549887309e03a30051c8c5af57025c520d28 /embassy-stm32/src | |
| parent | fd3cdfcf251225fb333870f0341ae9ce416f54ad (diff) | |
Panic on improper auto-calibration configurations
Diffstat (limited to 'embassy-stm32/src')
| -rw-r--r-- | embassy-stm32/src/rcc/u5.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/embassy-stm32/src/rcc/u5.rs b/embassy-stm32/src/rcc/u5.rs index ae0ef73f4..d12416a72 100644 --- a/embassy-stm32/src/rcc/u5.rs +++ b/embassy-stm32/src/rcc/u5.rs | |||
| @@ -191,9 +191,8 @@ pub(crate) unsafe fn init(config: Config) { | |||
| 191 | // MSIK is active and using LSE for auto-calibration | 191 | // MSIK is active and using LSE for auto-calibration |
| 192 | Some(lse_config.frequency) | 192 | Some(lse_config.frequency) |
| 193 | } | 193 | } |
| 194 | // improper configuration, no LSE calibration | 194 | // improper configuration |
| 195 | _ => None, | 195 | _ => panic!("MSIx auto-calibration is enabled for a source that has not been configured.") } |
| 196 | } | ||
| 197 | } else { | 196 | } else { |
| 198 | None | 197 | None |
| 199 | } | 198 | } |
