mirror of
https://github.com/apache/nuttx.git
synced 2026-08-10 06:55:13 +00:00
Fix chip/stm32_eth.c:3358:20: error: unused function 'stm32_selectrmii'
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
19138560f4
commit
f28cfbf2f3
3 changed files with 6 additions and 0 deletions
|
|
@ -3355,6 +3355,7 @@ static inline void stm32_selectmii(void)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_STM32_RMII
|
||||
static inline void stm32_selectrmii(void)
|
||||
{
|
||||
uint32_t regval;
|
||||
|
|
@ -3369,6 +3370,7 @@ static inline void stm32_selectrmii(void)
|
|||
putreg32(regval, STM32_SYSCFG_PMC);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Function: stm32_ethgpioconfig
|
||||
|
|
|
|||
|
|
@ -3443,6 +3443,7 @@ static inline void stm32_selectmii(void)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_STM32F7_RMII
|
||||
static inline void stm32_selectrmii(void)
|
||||
{
|
||||
uint32_t regval;
|
||||
|
|
@ -3451,6 +3452,7 @@ static inline void stm32_selectrmii(void)
|
|||
regval |= SYSCFG_PMC_MII_RMII_SEL;
|
||||
putreg32(regval, STM32_SYSCFG_PMC);
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Function: stm32_ethgpioconfig
|
||||
|
|
|
|||
|
|
@ -3616,6 +3616,7 @@ static inline void stm32_selectmii(void)
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_STM32H7_RMII
|
||||
static inline void stm32_selectrmii(void)
|
||||
{
|
||||
uint32_t regval;
|
||||
|
|
@ -3625,6 +3626,7 @@ static inline void stm32_selectrmii(void)
|
|||
regval |= SYSCFG_PMC_EPIS_RMII;
|
||||
putreg32(regval, STM32_SYSCFG_PMC);
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Function: stm32_ethgpioconfig
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue