nrf: add unborrow! macro
This commit is contained in:
		@@ -73,3 +73,12 @@ macro_rules! peripherals {
 | 
			
		||||
 | 
			
		||||
    };
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#[macro_export]
 | 
			
		||||
macro_rules! unborrow {
 | 
			
		||||
    ($($name:ident),*) => {
 | 
			
		||||
        $(
 | 
			
		||||
            let $name = unsafe { $name.unborrow() };
 | 
			
		||||
        )*
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user