Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix to the HAL_API_V2 to get PTP to work in STM32H5 #62800

Merged

Conversation

Desvauxm-st
Copy link
Contributor

@Desvauxm-st Desvauxm-st commented Sep 19, 2023

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

@Desvauxm-st Desvauxm-st changed the title fix to the HAL_API_V2 to get PTP to work fix to the HAL_API_V2 to get PTP to work in STM32H5 Sep 19, 2023
@zephyrbot zephyrbot added manifest manifest-hal_stm32 DNM This PR should not be merged (Do Not Merge) labels Sep 19, 2023
@zephyrbot
Copy link
Collaborator

zephyrbot commented Sep 19, 2023

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
hal_stm32 zephyrproject-rtos/hal_stm32@1bc72c2 zephyrproject-rtos/hal_stm32@89ef0a3 (main) zephyrproject-rtos/[email protected]

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@Desvauxm-st Desvauxm-st force-pushed the STM32H5xx_ETHERNET_gPTP branch 2 times, most recently from dafc1b1 to 9ed88b0 Compare September 20, 2023 09:23
@erwango erwango self-requested a review September 20, 2023 13:44
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


Signed-off-by: Marc Desvaux <[email protected]>
@zephyrbot zephyrbot removed the DNM This PR should not be merged (Do Not Merge) label Sep 27, 2023
@MaureenHelm MaureenHelm merged commit a49720a into zephyrproject-rtos:main Sep 27, 2023
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants