@jingpan
Hi,jing.
Thank you very much for your reply.
I have referred to the demo in SDK.As you said, ENET_ Ptp1588IRQHandler is triggered and only appears TS_ AVAIL or the adjustable timer reached the period event.Then ENET_Ptp1588IRQHandler will call TimeStampIRQHandler().
I know the mechanism of TCCRn and TCSRn register.
For example, what I want to achieve is to set a GPIO to 1 after the first comparison on a channel, then set the second comparison value, reverse the GPIO, and then set the last comparison value. If these comparison values are separated by 100000 (1588timer cycle is 10 ^ 9=1s), and the corresponding comparison interrupts are generated, where should I write these codes? TimeStampIRQHandler() is triggered every second, which cannot meet my requirements, So I should put it in ENET_Ptp1588IRQHandler() or other functions?
Looking forward to your reply.
With best wishes!