Skip to content

Commit

Permalink
cpu/stm32/ptp: drop vendor file typo workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
aabadie committed Aug 28, 2023
1 parent 2cc1279 commit 2195937
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cpu/stm32/periph/ptp.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@
#ifndef ETH_PTPTSCR_TSSSR
#define ETH_PTPTSCR_TSSSR ETH_PTPTSSR_TSSSR
#endif
#ifndef ETH_PTPTSCR_TSSARFE
#define ETH_PTPTSCR_TSSARFE ETH_PTPTSSR_TSSARFE
#endif

/* PTPSSIR is the number of nanoseconds to add onto the sub-second register
* (the one counting the nanoseconds part of the timestamp with the
Expand Down Expand Up @@ -109,7 +106,7 @@ void ptp_init(void)
ptp_clock_set(&initial_time);
if (IS_USED(MODULE_PERIPH_ETH)) {
/* enable timestamping of all received frames */
ETH->PTPTSCR |= ETH_PTPTSSR_TSSARFE;
ETH->PTPTSCR |= ETH_PTPTSCR_TSSARFE;
}
DEBUG("[periph_ptp] Initialized with PTPSAR = %" PRIu32 ", PTPSSIR = %" PRIu32 "\n",
ptptsar, ptpssir);
Expand Down

0 comments on commit 2195937

Please sign in to comment.