stm32: exti: remove static mut
This commit is contained in:
		
							parent
							
								
									7743c8305b
								
							
						
					
					
						commit
						739c47cc33
					
				@ -23,7 +23,7 @@ impl<'a> ExtiManager {
 | 
				
			|||||||
        Self { syscfg }
 | 
					        Self { syscfg }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    pub fn new_pin<T>(&'static mut self, mut pin: T, interrupt: T::Interrupt) -> ExtiPin<T>
 | 
					    pub fn new_pin<T>(&'static self, mut pin: T, interrupt: T::Interrupt) -> ExtiPin<T>
 | 
				
			||||||
    where
 | 
					    where
 | 
				
			||||||
        T: HalExtiPin + WithInterrupt,
 | 
					        T: HalExtiPin + WithInterrupt,
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
				
			|||||||
@ -22,7 +22,7 @@ impl<'a> ExtiManager {
 | 
				
			|||||||
        Self { syscfg }
 | 
					        Self { syscfg }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    pub fn new_pin<T>(&'static mut self, pin: T, interrupt: T::Interrupt) -> ExtiPin<T>
 | 
					    pub fn new_pin<T>(&'static self, pin: T, interrupt: T::Interrupt) -> ExtiPin<T>
 | 
				
			||||||
    where
 | 
					    where
 | 
				
			||||||
        T: PinWithInterrupt,
 | 
					        T: PinWithInterrupt,
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user