Use rng_v2 cfg instead of chip specific for seed error recover hack
This commit is contained in:
parent
ab4b3fa96d
commit
43d018b67f
1 changed files with 1 additions and 2 deletions
|
@ -32,8 +32,7 @@ impl<'d, T: Instance> Rng<'d, T> {
|
|||
}
|
||||
|
||||
pub fn reset(&mut self) {
|
||||
//stm32wl gets stuck if there is a seed error
|
||||
#[cfg(stm32wl)]
|
||||
#[cfg(rng_v2)]
|
||||
if unsafe { T::regs().sr().read().seis()} {
|
||||
T::reset();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue