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.
1
#include "
ptp_port_mk64f_lwip.h
"
2
3
#include "eth_custom/ethernetif.h"
4
#include "fsl_enet.h"
5
#include "lwip/netif.h"
6
7
void
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
ptphw_gettime
void ptphw_gettime(TimestampU *pTime)
Definition:
ptp_port_mk64f_lwip.c:7
ptp_port_mk64f_lwip.h
TimestampU
Timestamp (unsigned)
Definition:
timeutils.h:24
TimestampU::nanosec
uint32_t nanosec
nanoseconds
Definition:
timeutils.h:26
TimestampU::sec
uint64_t sec
seconds
Definition:
timeutils.h:25
src
flexptp
port
example_ports
ptp_port_mk64f_lwip.c
Generated by
1.9.6