stm32: update metapac and remove sbs
This commit is contained in:
@ -99,9 +99,9 @@ impl<'d, T: Instance, P: PHY> Ethernet<'d, T, P> {
|
||||
});
|
||||
|
||||
// RMII
|
||||
crate::pac::SBS
|
||||
crate::pac::SYSCFG
|
||||
.pmcr()
|
||||
.modify(|w| w.set_eth_sel_phy(crate::pac::sbs::vals::EthSelPhy::B_0X4));
|
||||
.modify(|w| w.set_eth_sel_phy(crate::pac::syscfg::vals::EthSelPhy::B_0X4));
|
||||
});
|
||||
|
||||
config_pins!(ref_clk, mdio, mdc, crs, rx_d0, rx_d1, tx_d0, tx_d1, tx_en);
|
||||
|
@ -181,10 +181,8 @@ pub fn init(config: Config) -> Peripherals {
|
||||
});
|
||||
}
|
||||
|
||||
#[cfg(not(any(stm32f1, stm32h5, stm32wb, stm32wl)))]
|
||||
#[cfg(not(any(stm32f1, stm32wb, stm32wl)))]
|
||||
peripherals::SYSCFG::enable();
|
||||
#[cfg(sbs)]
|
||||
peripherals::SBS::enable();
|
||||
#[cfg(not(any(stm32h5, stm32h7, stm32wb, stm32wl)))]
|
||||
peripherals::PWR::enable();
|
||||
#[cfg(not(any(stm32f2, stm32f4, stm32f7, stm32l0, stm32h5, stm32h7)))]
|
||||
|
Reference in New Issue
Block a user