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

feat(ethernet/ptp): added support for gPTP (IDFGH-14203) #15001

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions components/hal/emac_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ esp_err_t emac_hal_ptp_start(emac_hal_context_t *hal, const emac_hal_ptp_config_
{
uint8_t base_increment;

emac_ll_ts_ptp_snap_type_sel(hal->ptp_regs, 1);

// Enable time stamping frame filtering (applicable to receive)
emac_ll_ts_ptp_ether_enable(hal->ptp_regs, true);
// Process frames with v2 format
Expand Down
3 changes: 2 additions & 1 deletion examples/ethernet/ptp/components/ptpd/include/ptpd.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ struct ptpd_status_s

long drift_ppb;

/* Averaged path delay */
/* Averaged delay */

long path_delay_ns;
long peer_delay_ns;

/* Timestamps of latest received packets (CLOCK_MONOTONIC) */

Expand Down
Loading
Loading