From b99ab3d5d9d8fdee135956dcbc2111b00abd1d72 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Thu, 10 Feb 2022 21:38:03 +0100 Subject: stm32: Add standard crate-wide macros for pin/dma traits, switch all drivers to use them. --- examples/stm32f7/src/bin/eth.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'examples/stm32f7/src') diff --git a/examples/stm32f7/src/bin/eth.rs b/examples/stm32f7/src/bin/eth.rs index 521b031e3..15169d2dc 100644 --- a/examples/stm32f7/src/bin/eth.rs +++ b/examples/stm32f7/src/bin/eth.rs @@ -4,6 +4,7 @@ #[path = "../example_common.rs"] mod example_common; +use embassy_stm32::peripherals::ETH; use example_common::config; use cortex_m_rt::entry; @@ -27,7 +28,7 @@ use peripherals::RNG; #[embassy::task] async fn main_task( - device: &'static mut Ethernet<'static, LAN8742A, 4, 4>, + device: &'static mut Ethernet<'static, ETH, LAN8742A, 4, 4>, config: &'static mut StaticConfigurator, spawner: Spawner, ) { @@ -82,8 +83,8 @@ fn _embassy_rand(buf: &mut [u8]) { static mut RNG_INST: Option> = None; static EXECUTOR: Forever = Forever::new(); -static STATE: Forever> = Forever::new(); -static ETH: Forever> = Forever::new(); +static STATE: Forever> = Forever::new(); +static ETH: Forever> = Forever::new(); static CONFIG: Forever = Forever::new(); static NET_RESOURCES: Forever> = Forever::new(); -- cgit