diff options
Diffstat (limited to 'embassy-stm32-wpan/src/mac/driver.rs')
| -rw-r--r-- | embassy-stm32-wpan/src/mac/driver.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-stm32-wpan/src/mac/driver.rs b/embassy-stm32-wpan/src/mac/driver.rs index c43d595b7..41171ce3d 100644 --- a/embassy-stm32-wpan/src/mac/driver.rs +++ b/embassy-stm32-wpan/src/mac/driver.rs | |||
| @@ -37,8 +37,8 @@ impl NetworkState { | |||
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | pub struct DriverState<'d> { | 39 | pub struct DriverState<'d> { |
| 40 | pub mac_tx: Mutex<CriticalSectionRawMutex, MacTx>, | 40 | pub mac_tx: Mutex<CriticalSectionRawMutex, MacTx<'d>>, |
| 41 | pub mac_rx: MacRx, | 41 | pub mac_rx: MacRx<'d>, |
| 42 | pub rx_event_channel: ZeroCopyPubSub<CriticalSectionRawMutex, MacEvent<'d>>, | 42 | pub rx_event_channel: ZeroCopyPubSub<CriticalSectionRawMutex, MacEvent<'d>>, |
| 43 | pub rx_data_channel: Channel<CriticalSectionRawMutex, MacEvent<'d>, 1>, | 43 | pub rx_data_channel: Channel<CriticalSectionRawMutex, MacEvent<'d>, 1>, |
| 44 | pub tx_data_channel: Channel<CriticalSectionRawMutex, (&'d mut [u8; MTU], usize), BUF_SIZE>, | 44 | pub tx_data_channel: Channel<CriticalSectionRawMutex, (&'d mut [u8; MTU], usize), BUF_SIZE>, |
| @@ -48,7 +48,7 @@ pub struct DriverState<'d> { | |||
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | impl<'d> DriverState<'d> { | 50 | impl<'d> DriverState<'d> { |
| 51 | pub const fn new(mac: Mac) -> Self { | 51 | pub const fn new(mac: Mac<'d>) -> Self { |
| 52 | let (mac_rx, mac_tx) = mac.split(); | 52 | let (mac_rx, mac_tx) = mac.split(); |
| 53 | let mac_tx = Mutex::new(mac_tx); | 53 | let mac_tx = Mutex::new(mac_tx); |
| 54 | 54 | ||
