Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions arch/arm/src/stm32h7/stm32_ethernet.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,12 @@
* second and a width of half of it, that starts at a whole second of the
* system time. The first pulse is at least STM32_PTP_PPS_MARGIN_NS ahead,
* so the target time is loaded before it. The interval and the width are
* in increments of the system time, minus one.
* in increments of the system time.
*/

# define STM32_PTP_PPS_MARGIN_NS (100000000)
# define STM32_PTP_PPS_INTERVAL (NSEC_PER_SEC / STM32_PTP_SSINC - 1)
# define STM32_PTP_PPS_WIDTH ((NSEC_PER_SEC / 2) / \
STM32_PTP_SSINC - 1)
# define STM32_PTP_PPS_INTERVAL (NSEC_PER_SEC / STM32_PTP_SSINC)
# define STM32_PTP_PPS_WIDTH ((NSEC_PER_SEC / 2) / STM32_PTP_SSINC)
# endif
#endif

Expand Down
Loading