drivers: ethernet: stm32 eth hal driver align PTP Config Status
Align the name of the ETH PTP Config Status values depending on the stm32HAL serie to be the HAL_ETH_PTP_NOT_CONFIGURATED/HAL_ETH_PTP_CONFIGURATED or HAL_ETH_PTP_NOT_CONFIGURED/HAL_ETH_PTP_CONFIGURED Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
4c2938a295
commit
f55391745b
3 changed files with 11 additions and 1 deletions
|
|
@ -1823,7 +1823,7 @@ static int ptp_stm32_init(const struct device *port)
|
|||
|
||||
#if defined(CONFIG_ETH_STM32_HAL_API_V2)
|
||||
/* Set PTP Configuration done */
|
||||
heth->IsPtpConfigured = HAL_ETH_PTP_CONFIGURATED;
|
||||
heth->IsPtpConfigured = ETH_STM32_PTP_CONFIGURED;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,15 @@
|
|||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/types.h>
|
||||
|
||||
/* Naming of the ETH PTP Config Status changes depending on the stm32 serie */
|
||||
#if defined(CONFIG_SOC_SERIES_STM32F7X) || defined(CONFIG_SOC_SERIES_STM32F4X)
|
||||
#define ETH_STM32_PTP_CONFIGURED HAL_ETH_PTP_CONFIGURATED
|
||||
#define ETH_STM32_PTP_NOT_CONFIGURED HAL_ETH_PTP_NOT_CONFIGURATED
|
||||
#else
|
||||
#define ETH_STM32_PTP_CONFIGURED HAL_ETH_PTP_CONFIGURED
|
||||
#define ETH_STM32_PTP_NOT_CONFIGURED HAL_ETH_PTP_NOT_CONFIGURED
|
||||
#endif /* stm32F7x or sm32F4x */
|
||||
|
||||
#define ST_OUI_B0 0x00
|
||||
#define ST_OUI_B1 0x80
|
||||
#define ST_OUI_B2 0xE1
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ tests:
|
|||
- native_sim/native/64
|
||||
- nucleo_f767zi
|
||||
- nucleo_h743zi
|
||||
- nucleo_h753zi
|
||||
- nucleo_h745zi_q/stm32h745xx/m7
|
||||
depends_on: eth
|
||||
integration_platforms:
|
||||
|
|
|
|||
Loading…
Reference in a new issue