stm32: change all examples and tests to use GenericSMI::new_auto().
This commit is contained in:
parent
afe6b9a192
commit
ff52bde787
@ -76,7 +76,7 @@ async fn main(spawner: Spawner) -> ! {
|
|||||||
p.PG13,
|
p.PG13,
|
||||||
p.PB13,
|
p.PB13,
|
||||||
p.PG11,
|
p.PG11,
|
||||||
GenericSMI::new(0),
|
GenericSMI::new_auto(),
|
||||||
mac_addr,
|
mac_addr,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -77,7 +77,7 @@ async fn main(spawner: Spawner) -> ! {
|
|||||||
p.PG13,
|
p.PG13,
|
||||||
p.PB13,
|
p.PB13,
|
||||||
p.PG11,
|
p.PG11,
|
||||||
GenericSMI::new(0),
|
GenericSMI::new_auto(),
|
||||||
mac_addr,
|
mac_addr,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -80,7 +80,7 @@ async fn main(spawner: Spawner) -> ! {
|
|||||||
p.PG13,
|
p.PG13,
|
||||||
p.PB15,
|
p.PB15,
|
||||||
p.PG11,
|
p.PG11,
|
||||||
GenericSMI::new(0),
|
GenericSMI::new_auto(),
|
||||||
mac_addr,
|
mac_addr,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -79,7 +79,7 @@ async fn main(spawner: Spawner) -> ! {
|
|||||||
p.PG13, // TX_D0: Transmit Bit 0
|
p.PG13, // TX_D0: Transmit Bit 0
|
||||||
p.PB13, // TX_D1: Transmit Bit 1
|
p.PB13, // TX_D1: Transmit Bit 1
|
||||||
p.PG11, // TX_EN: Transmit Enable
|
p.PG11, // TX_EN: Transmit Enable
|
||||||
GenericSMI::new(0),
|
GenericSMI::new_auto(),
|
||||||
mac_addr,
|
mac_addr,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -81,7 +81,7 @@ async fn main(spawner: Spawner) -> ! {
|
|||||||
p.PG13,
|
p.PG13,
|
||||||
p.PB13,
|
p.PB13,
|
||||||
p.PG11,
|
p.PG11,
|
||||||
GenericSMI::new(0),
|
GenericSMI::new_auto(),
|
||||||
mac_addr,
|
mac_addr,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -86,7 +86,7 @@ async fn main(spawner: Spawner) -> ! {
|
|||||||
p.PC2,
|
p.PC2,
|
||||||
p.PE2,
|
p.PE2,
|
||||||
p.PG11,
|
p.PG11,
|
||||||
GenericSMI::new(1),
|
GenericSMI::new_auto(),
|
||||||
mac_addr,
|
mac_addr,
|
||||||
);
|
);
|
||||||
info!("Device created");
|
info!("Device created");
|
||||||
|
|||||||
@ -87,7 +87,7 @@ async fn main(spawner: Spawner) {
|
|||||||
#[cfg(feature = "stm32h563zi")]
|
#[cfg(feature = "stm32h563zi")]
|
||||||
p.PB15,
|
p.PB15,
|
||||||
p.PG11,
|
p.PG11,
|
||||||
GenericSMI::new(0),
|
GenericSMI::new_auto(),
|
||||||
mac_addr,
|
mac_addr,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user