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/src/peripheral_shared.rs | |
| parent | 3d96b10b0cd0066d4269094852e458bbf80a9807 (diff) | |
Fix stm32 ethernet
Diffstat (limited to 'embassy-extras/src/peripheral_shared.rs')
| -rw-r--r-- | embassy-extras/src/peripheral_shared.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
