ST


A world leader in providing the semiconductor solutions that make a positive contribution to people’s lives, both today and in the future.

You are viewing an older revision! See the latest version

How to use own ETHERNET PHY

How to use your own ETHERNET PHY init functions ?

Default ETHERNET PHY Init and DeInit functions are defined in:

features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32<xx>/TARGET_<xx>/stm32<xx>_eth_init.c

You can overwrite them thanks to USE_USER_DEFINED_HAL_ETH_MSPINIT macro.

You have then to implement HAL_ETH_MspDeInit and HAL_ETH_MspDeInit functions in your application.

Ex in targets.json file:

"macros_add": ["USE_USER_DEFINED_HAL_ETH_MSPINIT"],

or in mbed_all.json:

"macros": ["USE_USER_DEFINED_HAL_ETH_MSPINIT"],


All wikipages