Modified to use SYSCFG_PMC_MII_RMII_SEL instead of the obsolete SYSCFG_PMC_MII_RMII.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4014 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
71f5e32cd8
commit
7efa59601a
|
@ -226,9 +226,9 @@ void mac_lld_init(void) {
|
|||
#endif
|
||||
#elif defined(STM32F2XX) || defined(STM32F4XX)
|
||||
#if defined(BOARD_PHY_RMII)
|
||||
SYSCFG->PMC |= SYSCFG_PMC_MII_RMII;
|
||||
SYSCFG->PMC |= SYSCFG_PMC_MII_RMII_SEL;
|
||||
#else
|
||||
SYSCFG->PMC &= ~SYSCFG_PMC_MII_RMII;
|
||||
SYSCFG->PMC &= ~SYSCFG_PMC_MII_RMII_SEL;
|
||||
#endif
|
||||
#else
|
||||
#error "unsupported STM32 platform for MAC driver"
|
||||
|
|
Loading…
Reference in New Issue