forked from M-Labs/kirdy
gpio: correct wrong eth pin definition
This commit is contained in:
parent
4e0d14def2
commit
771f2813f7
|
@ -6,7 +6,7 @@ use crate::thermostat::max1968::{self, MAX1968PinSet, MAX1968Phy, PWM_FREQ_KHZ};
|
||||||
use crate::thermostat::ad7172;
|
use crate::thermostat::ad7172;
|
||||||
use stm32_eth::EthPins;
|
use stm32_eth::EthPins;
|
||||||
use stm32f4xx_hal::{
|
use stm32f4xx_hal::{
|
||||||
gpio::{gpioa::*, gpiob::*, gpioc::*, gpiog::*, GpioExt, Input},
|
gpio::{gpioa::*, gpiob::*, gpioc::*, GpioExt, Input},
|
||||||
otg_fs::USB,
|
otg_fs::USB,
|
||||||
pac::{
|
pac::{
|
||||||
GPIOA, GPIOB, GPIOC, GPIOD, GPIOG, OTG_FS_DEVICE, OTG_FS_GLOBAL, OTG_FS_PWRCLK, SPI1, SPI2, SPI3,
|
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 =
|
pub type EthernetPins =
|
||||||
EthPins<PA1<Input>, PA7<Input>, PB11<Input>, PG13<Input>, PB13<Input>, PC4<Input>, PC5<Input>>;
|
EthPins<PA1<Input>, PA7<Input>, PB11<Input>, PB12<Input>, PB13<Input>, PC4<Input>, PC5<Input>>;
|
||||||
|
|
||||||
pub fn setup(
|
pub fn setup(
|
||||||
clocks: Clocks,
|
clocks: Clocks,
|
||||||
|
@ -61,7 +61,7 @@ pub fn setup(
|
||||||
ref_clk: gpioa.pa1,
|
ref_clk: gpioa.pa1,
|
||||||
crs: gpioa.pa7,
|
crs: gpioa.pa7,
|
||||||
tx_en: gpiob.pb11,
|
tx_en: gpiob.pb11,
|
||||||
tx_d0: gpiog.pg13,
|
tx_d0: gpiob.pb12,
|
||||||
tx_d1: gpiob.pb13,
|
tx_d1: gpiob.pb13,
|
||||||
rx_d0: gpioc.pc4,
|
rx_d0: gpioc.pc4,
|
||||||
rx_d1: gpioc.pc5,
|
rx_d1: gpioc.pc5,
|
||||||
|
|
Loading…
Reference in New Issue