1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 10:12:45 +01:00

cpu/stm32/ptp: drop vendor file typo workaround

This commit is contained in:
Alexandre Abadie 2023-08-28 09:55:26 +02:00
parent 2cc12798bc
commit b7d0080d86
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -33,14 +33,6 @@
#define DEBUG_VERBOSE 0
#include "debug.h"
/* Workaround for typos in vendor files; drop when fixed upstream */
#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
* configuration we chose here). It is therefore the resolution of the clock
@ -109,7 +101,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);