aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpennae <[email protected]>2023-05-06 17:24:06 +0200
committerpennae <[email protected]>2023-05-06 17:24:06 +0200
commit374c7513f905fcbf353bee2987e78d68fe8ea303 (patch)
treef19b20c9959044fc24722ea9318047a4f63f2555
parentbdcea84ca106a0bd3a131fa1de4fb35218e9149a (diff)
rp/pio: mark exec_instr as unsafe
because it most definitely is.
-rw-r--r--embassy-rp/src/pio.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/embassy-rp/src/pio.rs b/embassy-rp/src/pio.rs
index 7cf605d8e..5fed4f1fa 100644
--- a/embassy-rp/src/pio.rs
+++ b/embassy-rp/src/pio.rs
@@ -790,10 +790,8 @@ impl<'d, PIO: Instance + 'd, const SM: usize> StateMachine<'d, PIO, SM> {
790 } 790 }
791 } 791 }
792 792
793 pub fn exec_instr(&mut self, instr: u16) { 793 pub unsafe fn exec_instr(&mut self, instr: u16) {
794 unsafe { 794 Self::this_sm().instr().write(|w| w.set_instr(instr));
795 Self::this_sm().instr().write(|w| w.set_instr(instr));
796 }
797 } 795 }
798 796
799 pub fn rx(&mut self) -> &mut StateMachineRx<'d, PIO, SM> { 797 pub fn rx(&mut self) -> &mut StateMachineRx<'d, PIO, SM> {