Use rng_v2 cfg instead of chip specific for seed error recover hack
@@ -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();
}
