aboutsummaryrefslogtreecommitdiff
path: root/embassy-hal-common
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-02-16 03:54:39 +0100
committerDario Nieuwenhuis <[email protected]>2022-03-11 00:38:07 +0100
commit9bad9365dcf31dd558aca05f60d244beb9e5e697 (patch)
tree3d54927ce409975c58dff4409b8a140a4b68abd1 /embassy-hal-common
parent828cdb295183b8733ec636a80e0d35e6f8e41827 (diff)
Update rust nightly, embedded-hal 1.0, embedded-hal-async.
Diffstat (limited to 'embassy-hal-common')
-rw-r--r--embassy-hal-common/src/peripheral.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-hal-common/src/peripheral.rs b/embassy-hal-common/src/peripheral.rs
index dcf9d3a27..89420a422 100644
--- a/embassy-hal-common/src/peripheral.rs
+++ b/embassy-hal-common/src/peripheral.rs
@@ -97,7 +97,7 @@ impl<'a, S: PeripheralState> PeripheralMutex<'a, S> {
97 // Interrupts' priorities can only be changed with raw embassy `Interrupts`, 97 // Interrupts' priorities can only be changed with raw embassy `Interrupts`,
98 // which can't safely store a `PeripheralMutex` across invocations. 98 // which can't safely store a `PeripheralMutex` across invocations.
99 // - We can't have preempted a with() call because the irq is disabled during it. 99 // - We can't have preempted a with() call because the irq is disabled during it.
100 let state = unsafe { &mut *(p as *mut S) }; 100 let state = &mut *(p as *mut S);
101 state.on_interrupt(); 101 state.on_interrupt();
102 }); 102 });
103 irq.set_handler_context(state_ptr as *mut ()); 103 irq.set_handler_context(state_ptr as *mut ());