mirror of
https://github.com/apache/nuttx.git
synced 2026-10-02 03:46:25 +00:00
arch/arm/stm32: fix the comment of the RX timestamp conversion.
The comment of stm32_eth_ptp_convert_rxtime() said that it converts to CLOCK_REALTIME. Since the timestamp is delivered as the value of the PTP counter of the MAC, which is the time base of /dev/ptp0, say that. Signed-off-by: Daniel P. Carvalho <danieloak@gmail.com> Assisted-by: Claude:claude-sonnet-5
This commit is contained in:
parent
f7e3b0fa89
commit
392107954b
1 changed files with 4 additions and 1 deletions
|
|
@ -3987,7 +3987,10 @@ static inline void ptp_to_timespec(uint64_t timestamp, struct timespec *ts)
|
|||
ts->tv_nsec = ((uint32_t)timestamp * (uint64_t)NSEC_PER_SEC) >> 32;
|
||||
}
|
||||
|
||||
/* Convert RX timestamp to CLOCK_REALTIME */
|
||||
/* Convert the RX timestamp of the MAC to a timespec. It is the value of the
|
||||
* PTP counter of the MAC, which is the time base of /dev/ptp0, and not a
|
||||
* value of CLOCK_REALTIME.
|
||||
*/
|
||||
#ifdef CONFIG_STM32_ETH_TIMESTAMP_RX
|
||||
static void stm32_eth_ptp_convert_rxtime(struct stm32_ethmac_s *priv)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue