flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
Loading...
Searching...
No Matches
ptp_port_mk64f_lwip.c
Go to the documentation of this file.
2
3#include "eth_custom/ethernetif.h"
4#include "fsl_enet.h"
5#include "lwip/netif.h"
6
7void ptphw_gettime(TimestampU * pTime) {
8 enet_ptp_time_t time;
9 ethernetif_ptp_get_time(netif_default, &time);
10
11 pTime->sec = time.second;
12 pTime->nanosec = time.nanosecond;
13}
14
void ptphw_gettime(TimestampU *pTime)
Timestamp (unsigned)
Definition: timeutils.h:24
uint32_t nanosec
nanoseconds
Definition: timeutils.h:26
uint64_t sec
seconds
Definition: timeutils.h:25