rp/pio: mark exec_instr as unsafe
because it most definitely is.
This commit is contained in:
		
							parent
							
								
									bdcea84ca1
								
							
						
					
					
						commit
						374c7513f9
					
				@ -790,10 +790,8 @@ impl<'d, PIO: Instance + 'd, const SM: usize> StateMachine<'d, PIO, SM> {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    pub fn exec_instr(&mut self, instr: u16) {
 | 
					    pub unsafe fn exec_instr(&mut self, instr: u16) {
 | 
				
			||||||
        unsafe {
 | 
					        Self::this_sm().instr().write(|w| w.set_instr(instr));
 | 
				
			||||||
            Self::this_sm().instr().write(|w| w.set_instr(instr));
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    pub fn rx(&mut self) -> &mut StateMachineRx<'d, PIO, SM> {
 | 
					    pub fn rx(&mut self) -> &mut StateMachineRx<'d, PIO, SM> {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user