hal_stm32
hal_stm32 copied to clipboard
stm32cube: f4/h7: Use Zephyr Kconfig flag to control eth API
Needed for zephyrproject-rtos/zephyr#45260
This is now selectable with the config option ETH_STM32_USE_HAL_DRIVER_WITH_NEW_API. Please note that the new driver offers callbacks for the PTP TX timestamp, so that poking in the tx descriptors is no longer necessary. That's why I chose to enable the PTP Hal driver when both PTP in general and using the new driver options are selected.
I updated the PR according to the recommendations