Use rng_v2 cfg instead of chip specific for seed error recover hack

This commit is contained in:
Lucas Granberg 2023-02-09 12:44:20 +02:00
parent ab4b3fa96d
commit 43d018b67f

View file

@ -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();
}