![]() |
flexPTP 1.0
An IEEE 1588 PTP implementation designed for microcontrollers
|
#include "ptp_port_tiva_tm4c1294.h"
#include <stdint.h>
#include <stdbool.h>
#include "driverlib/emac.h"
#include "driverlib/gpio.h"
#include "inc/hw_memmap.h"
#include "driverlib/pin_map.h"
Go to the source code of this file.
Functions | |
void | ptphw_init (uint32_t increment, uint32_t addend) |
void | ptphw_gettime (TimestampU *pTime) |
void ptphw_gettime | ( | TimestampU * | pTime | ) |
Get time right from the hardware clock.
pTime | pointer to a TimestampU object. |
Definition at line 27 of file ptp_port_tiva_tm4c1294.c.
void ptphw_init | ( | uint32_t | increment, |
uint32_t | addend | ||
) |
Initialize PTP hardware.
increment | PTP hardware clock tick increment in nanoseconds |
addend | initialize frequency tuning code word |
Definition at line 11 of file ptp_port_tiva_tm4c1294.c.