From 771f2813f7ef1ec912c7537ce1d3996e57874c76 Mon Sep 17 00:00:00 2001 From: linuswck Date: Wed, 31 Jan 2024 17:15:32 +0800 Subject: [PATCH] gpio: correct wrong eth pin definition --- src/device/gpio.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/device/gpio.rs b/src/device/gpio.rs index 67b448e..4399540 100644 --- a/src/device/gpio.rs +++ b/src/device/gpio.rs @@ -6,7 +6,7 @@ use crate::thermostat::max1968::{self, MAX1968PinSet, MAX1968Phy, PWM_FREQ_KHZ}; use crate::thermostat::ad7172; use stm32_eth::EthPins; use stm32f4xx_hal::{ - gpio::{gpioa::*, gpiob::*, gpioc::*, gpiog::*, GpioExt, Input}, + gpio::{gpioa::*, gpiob::*, gpioc::*, GpioExt, Input}, otg_fs::USB, pac::{ GPIOA, GPIOB, GPIOC, GPIOD, GPIOG, OTG_FS_DEVICE, OTG_FS_GLOBAL, OTG_FS_PWRCLK, SPI1, SPI2, SPI3, @@ -18,7 +18,7 @@ use stm32f4xx_hal::{ }; pub type EthernetPins = - EthPins, PA7, PB11, PG13, PB13, PC4, PC5>; + EthPins, PA7, PB11, PB12, PB13, PC4, PC5>; pub fn setup( clocks: Clocks, @@ -61,7 +61,7 @@ pub fn setup( ref_clk: gpioa.pa1, crs: gpioa.pa7, tx_en: gpiob.pb11, - tx_d0: gpiog.pg13, + tx_d0: gpiob.pb12, tx_d1: gpiob.pb13, rx_d0: gpioc.pc4, rx_d1: gpioc.pc5,