6.26. PTPC¶
6.26.1. Overview¶
This PTPC sample covers timestamp comparison and pps interrupt generation
6.26.2. Board Setting¶
Nothing special
6.26.3. Running the example¶
When the example runs successfully, board LED will be flashing periodically and the following message should be printed on debug console:
> ptpc example
> Config target timestamp: 3 s, 80000 ns
> Got event at 3 s, 81180 ns
> timer_compare done
> Config pps IRQ frequency: 1 Hz
> pps_interrupt done