diff options
Diffstat (limited to 'embassy-net-nrf91/src/lib.rs')
| -rw-r--r-- | embassy-net-nrf91/src/lib.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/embassy-net-nrf91/src/lib.rs b/embassy-net-nrf91/src/lib.rs index 673784cb2..a60e27d97 100644 --- a/embassy-net-nrf91/src/lib.rs +++ b/embassy-net-nrf91/src/lib.rs | |||
| @@ -17,13 +17,12 @@ use core::slice; | |||
| 17 | use core::sync::atomic::{compiler_fence, fence, Ordering}; | 17 | use core::sync::atomic::{compiler_fence, fence, Ordering}; |
| 18 | use core::task::{Poll, Waker}; | 18 | use core::task::{Poll, Waker}; |
| 19 | 19 | ||
| 20 | use embassy_net_driver_channel as ch; | ||
| 21 | use embassy_sync::waitqueue::{AtomicWaker, WakerRegistration}; | ||
| 22 | use embassy_sync::blocking_mutex::raw::NoopRawMutex; | 20 | use embassy_sync::blocking_mutex::raw::NoopRawMutex; |
| 21 | use embassy_sync::pipe; | ||
| 22 | use embassy_sync::waitqueue::{AtomicWaker, WakerRegistration}; | ||
| 23 | use heapless::Vec; | 23 | use heapless::Vec; |
| 24 | use nrf9160_pac as pac; | ||
| 25 | use pac::NVIC; | 24 | use pac::NVIC; |
| 26 | use embassy_sync::pipe; | 25 | use {embassy_net_driver_channel as ch, nrf9160_pac as pac}; |
| 27 | 26 | ||
| 28 | const RX_SIZE: usize = 8 * 1024; | 27 | const RX_SIZE: usize = 8 * 1024; |
| 29 | const TRACE_SIZE: usize = 16 * 1024; | 28 | const TRACE_SIZE: usize = 16 * 1024; |
| @@ -269,7 +268,6 @@ pub struct State { | |||
| 269 | inner: MaybeUninit<RefCell<StateInner>>, | 268 | inner: MaybeUninit<RefCell<StateInner>>, |
| 270 | } | 269 | } |
| 271 | 270 | ||
| 272 | |||
| 273 | impl State { | 271 | impl State { |
| 274 | /// Create a new State. | 272 | /// Create a new State. |
| 275 | pub const fn new() -> Self { | 273 | pub const fn new() -> Self { |
