diff options
| author | Lucas Granberg <[email protected]> | 2023-02-09 12:44:20 +0200 |
|---|---|---|
| committer | Lucas Granberg <[email protected]> | 2023-02-09 12:44:20 +0200 |
| commit | 43d018b67ff98a68e7d1d8c122f803a3d90c9381 (patch) | |
| tree | 7d7682e535c283c4266c7b248e8e75b5e15cd192 | |
| parent | ab4b3fa96dc320f034f5437c9540897f553519be (diff) | |
Use rng_v2 cfg instead of chip specific for seed error recover hack
| -rw-r--r-- | embassy-stm32/src/rng.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/embassy-stm32/src/rng.rs b/embassy-stm32/src/rng.rs index abc625835..cd3cc94ce 100644 --- a/embassy-stm32/src/rng.rs +++ b/embassy-stm32/src/rng.rs | |||
| @@ -32,8 +32,7 @@ impl<'d, T: Instance> Rng<'d, T> { | |||
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | pub fn reset(&mut self) { | 34 | pub fn reset(&mut self) { |
| 35 | //stm32wl gets stuck if there is a seed error | 35 | #[cfg(rng_v2)] |
| 36 | #[cfg(stm32wl)] | ||
| 37 | if unsafe { T::regs().sr().read().seis()} { | 36 | if unsafe { T::regs().sr().read().seis()} { |
| 38 | T::reset(); | 37 | T::reset(); |
| 39 | } | 38 | } |
