mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
cpu/stm32/ptp: drop vendor file typo workaround
This commit is contained in:
parent
2cc12798bc
commit
b7d0080d86
@ -33,14 +33,6 @@
|
|||||||
#define DEBUG_VERBOSE 0
|
#define DEBUG_VERBOSE 0
|
||||||
#include "debug.h"
|
#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
|
/* PTPSSIR is the number of nanoseconds to add onto the sub-second register
|
||||||
* (the one counting the nanoseconds part of the timestamp with the
|
* (the one counting the nanoseconds part of the timestamp with the
|
||||||
* configuration we chose here). It is therefore the resolution of the clock
|
* 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);
|
ptp_clock_set(&initial_time);
|
||||||
if (IS_USED(MODULE_PERIPH_ETH)) {
|
if (IS_USED(MODULE_PERIPH_ETH)) {
|
||||||
/* enable timestamping of all received frames */
|
/* 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",
|
DEBUG("[periph_ptp] Initialized with PTPSAR = %" PRIu32 ", PTPSSIR = %" PRIu32 "\n",
|
||||||
ptptsar, ptpssir);
|
ptptsar, ptpssir);
|
||||||
|
Loading…
Reference in New Issue
Block a user