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