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-d51de3d6d3f4
master
gdisirio 2012-03-03 11:00:10 +00:00
parent 71f5e32cd8
commit 7efa59601a
1 changed files with 2 additions and 2 deletions

View File

@ -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"