aboutsummaryrefslogtreecommitdiff
path: root/embassy-extras/src
diff options
context:
space:
mode:
authorLiam Murphy <[email protected]>2021-07-05 18:18:05 +1000
committerLiam Murphy <[email protected]>2021-07-05 18:18:05 +1000
commitfc1ef4947d463495ccd3da1d7763dcbe95a2588f (patch)
tree41853c3a41a3fc22fb75b6db3177e08460add1b2 /embassy-extras/src
parent3d96b10b0cd0066d4269094852e458bbf80a9807 (diff)
Fix stm32 ethernet
Diffstat (limited to 'embassy-extras/src')
-rw-r--r--embassy-extras/src/peripheral.rs4
-rw-r--r--embassy-extras/src/peripheral_shared.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/embassy-extras/src/peripheral.rs b/embassy-extras/src/peripheral.rs
index e3e06d692..edc5fe955 100644
--- a/embassy-extras/src/peripheral.rs
+++ b/embassy-extras/src/peripheral.rs
@@ -6,8 +6,8 @@ use core::ptr;
6use embassy::interrupt::{Interrupt, InterruptExt}; 6use embassy::interrupt::{Interrupt, InterruptExt};
7 7
8/// # Safety 8/// # Safety
9/// When types implementing this trait are used with `Peripheral` or `PeripheralMutex`, 9/// When types implementing this trait are used with `PeripheralMutex`,
10/// their lifetime must not end without first calling `Drop` on the `Peripheral` or `PeripheralMutex`. 10/// no fields referenced by `on_interrupt`'s lifetimes must end without first calling `Drop` on the `PeripheralMutex`.
11pub unsafe trait PeripheralStateUnchecked { 11pub unsafe trait PeripheralStateUnchecked {
12 type Interrupt: Interrupt; 12 type Interrupt: Interrupt;
13 fn on_interrupt(&mut self); 13 fn on_interrupt(&mut self);
diff --git a/embassy-extras/src/peripheral_shared.rs b/embassy-extras/src/peripheral_shared.rs
index d05ae0307..820622bb9 100644
--- a/embassy-extras/src/peripheral_shared.rs
+++ b/embassy-extras/src/peripheral_shared.rs
@@ -5,8 +5,8 @@ use core::ptr;
5use embassy::interrupt::{Interrupt, InterruptExt}; 5use embassy::interrupt::{Interrupt, InterruptExt};
6 6
7/// # Safety 7/// # Safety
8/// When types implementing this trait are used with `Peripheral` or `PeripheralMutex`, 8/// When types implementing this trait are used with `Peripheral`,
9/// their lifetime must not end without first calling `Drop` on the `Peripheral` or `PeripheralMutex`. 9/// no fields referenced by `on_interrupt`'s lifetimes must end without first calling `Drop` on the `Peripheral`.
10pub unsafe trait PeripheralStateUnchecked { 10pub unsafe trait PeripheralStateUnchecked {
11 type Interrupt: Interrupt; 11 type Interrupt: Interrupt;
12 fn on_interrupt(&self); 12 fn on_interrupt(&self);