diff options
| author | Liam Murphy <[email protected]> | 2021-07-05 18:18:05 +1000 |
|---|---|---|
| committer | Liam Murphy <[email protected]> | 2021-07-05 18:18:05 +1000 |
| commit | fc1ef4947d463495ccd3da1d7763dcbe95a2588f (patch) | |
| tree | 41853c3a41a3fc22fb75b6db3177e08460add1b2 /embassy-extras | |
| parent | 3d96b10b0cd0066d4269094852e458bbf80a9807 (diff) | |
Fix stm32 ethernet
Diffstat (limited to 'embassy-extras')
| -rw-r--r-- | embassy-extras/src/peripheral.rs | 4 | ||||
| -rw-r--r-- | embassy-extras/src/peripheral_shared.rs | 4 |
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; | |||
| 6 | use embassy::interrupt::{Interrupt, InterruptExt}; | 6 | use 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`. |
| 11 | pub unsafe trait PeripheralStateUnchecked { | 11 | pub 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; | |||
| 5 | use embassy::interrupt::{Interrupt, InterruptExt}; | 5 | use 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`. |
| 10 | pub unsafe trait PeripheralStateUnchecked { | 10 | pub unsafe trait PeripheralStateUnchecked { |
| 11 | type Interrupt: Interrupt; | 11 | type Interrupt: Interrupt; |
| 12 | fn on_interrupt(&self); | 12 | fn on_interrupt(&self); |
