mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
More info for the Shenzhou board configuration
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5109 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -1562,13 +1562,32 @@ config STM32_MII
|
|||||||
---help---
|
---help---
|
||||||
Support Ethernet MII interface.
|
Support Ethernet MII interface.
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "MII clock configuration"
|
||||||
|
default STM32_MII_MCO if STM32_STM32F10XX
|
||||||
|
default STM32_MII_MCO1 if STM32_STM32F20XX || STM32_STM32F40XX
|
||||||
|
depends on STM32_MII
|
||||||
|
|
||||||
|
config STM32_MII_MCO
|
||||||
|
bool "Use MC0 as MII clock"
|
||||||
|
depends on STM32_STM32F10XX
|
||||||
|
---help---
|
||||||
|
Use MCO to clock the MII interface. Default: Use MC0
|
||||||
|
|
||||||
|
config STM32_MII_MCO1
|
||||||
|
bool "Use MC01 as MII clock"
|
||||||
|
depends on (STM32_STM32F20XX || STM32_STM32F40XX)
|
||||||
|
---help---
|
||||||
|
Use MCO1 to clock the MII interface. Default: Use MC01
|
||||||
|
|
||||||
config STM32_MII_MCO2
|
config STM32_MII_MCO2
|
||||||
bool "Use MC02 as MII clock"
|
bool "Use MC02 as MII clock"
|
||||||
default n
|
depends on (STM32_STM32F20XX || STM32_STM32F40XX)
|
||||||
depends on STM32_MII
|
|
||||||
---help---
|
---help---
|
||||||
Use MCO2 to clock the MII interface. Default: Use MC01
|
Use MCO2 to clock the MII interface. Default: Use MC01
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
|
||||||
config STM32_AUTONEG
|
config STM32_AUTONEG
|
||||||
bool "Use autonegtiation"
|
bool "Use autonegtiation"
|
||||||
default y
|
default y
|
||||||
@@ -1643,11 +1662,6 @@ config STM32_RMII
|
|||||||
default y if !STM32_MII
|
default y if !STM32_MII
|
||||||
depends on STM32_ETHMAC
|
depends on STM32_ETHMAC
|
||||||
|
|
||||||
config STM32_MII_MCO1
|
|
||||||
bool
|
|
||||||
default y if !STM32_MII_MCO2
|
|
||||||
depends on STM32_MII
|
|
||||||
|
|
||||||
menu "USB Host Configuration"
|
menu "USB Host Configuration"
|
||||||
|
|
||||||
config STM32_OTGFS_RXFIFO_SIZE
|
config STM32_OTGFS_RXFIFO_SIZE
|
||||||
|
|||||||
@@ -2659,7 +2659,7 @@ static inline void stm32_ethgpioconfig(FAR struct stm32_ethmac_s *priv)
|
|||||||
|
|
||||||
/* Setup MCO pin for alternative usage */
|
/* Setup MCO pin for alternative usage */
|
||||||
|
|
||||||
#if defined(CONFIG_STM32_RMII_MCO)
|
#if defined(CONFIG_STM32_MII_MCO)
|
||||||
stm32_configgpio(GPIO_MCO);
|
stm32_configgpio(GPIO_MCO);
|
||||||
stm32_mcoconfig(BOARD_CFGR_MCO_SOURCE);
|
stm32_mcoconfig(BOARD_CFGR_MCO_SOURCE);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user