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,