Skip to content
Commit 89ef0a33 authored by Marc Desvaux's avatar Marc Desvaux Committed by Erwan Gouriou
Browse files

stm32cube: stm32h5: ethernet: PTP clock doesn’t works



fix to the HAL_API_V2 to get PTP to work
In the HAL_ETH_ReadData function where it checks for the
last descriptor, I added a checked if the TSA bit was set
in DESC1
If the TSA bit is set then have a peak at the context
descriptor which should be the one after the last
descriptor
If the CTXT bit is set in the context descriptor then
extract the timestamps

update README to fix to the V2 HAL API to get PTP to work

Signed-off-by: default avatarblackhelicopters <mm@blackhelicopters.net>
Signed-off-by: default avatarMarc Desvaux <marc.desvaux-ext@st.com>
parent d466dc84
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment