From a6163888f3c56123b1db313743c6147ba498732c Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Fri, 8 Aug 2014 14:42:07 +0300 Subject: Add third_party libs --- third_party/ptpd-1.1.0/src/ptpd.h | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 third_party/ptpd-1.1.0/src/ptpd.h (limited to 'third_party/ptpd-1.1.0/src/ptpd.h') diff --git a/third_party/ptpd-1.1.0/src/ptpd.h b/third_party/ptpd-1.1.0/src/ptpd.h new file mode 100644 index 0000000..b0abe7e --- /dev/null +++ b/third_party/ptpd-1.1.0/src/ptpd.h @@ -0,0 +1,49 @@ +/** + * @file ptpd.h + * @mainpage Ptpd Documentation + * @authors Martin Burnicki, Alexandre van Kempen, Steven Kreuzer, + * George Neville-Neil + * @version 1.0 + * @date Tue Jul 20 16:15:04 2010 + * + * + */ + +#ifndef PTPD_H +#define PTPD_H + +/* Definitions and dependencies for the TI TivaWare port */ +#include "constants.h" +#include "dep-tiva/constants_dep.h" +#include "dep-tiva/datatypes_dep.h" +#include "datatypes.h" +#include "dep-tiva/ptpd_dep.h" + +/* arith.c */ +UInteger32 crc_algorithm(Octet *, Integer16); +UInteger32 sum(Octet *, Integer16); +void fromInternalTime(TimeInternal *, TimeRepresentation *, Boolean); +void toInternalTime(TimeInternal *, TimeRepresentation *, Boolean *); +void normalizeTime(TimeInternal *); +void addTime(TimeInternal *, TimeInternal *, TimeInternal *); +void subTime(TimeInternal *, TimeInternal *, TimeInternal *); + +/* bmc.c */ +UInteger8 bmc(ForeignMasterRecord *, RunTimeOpts *, PtpClock *); +void m1 (PtpClock *); +void s1 (MsgHeader *, MsgSync *, PtpClock *); +void initData(RunTimeOpts *, PtpClock *); + +/* probe.c */ +void probe(RunTimeOpts *, PtpClock *); + +/* protocol.c */ +void protocol(RunTimeOpts *, PtpClock *); + +/* Split versions of protocol() that may be used when no RTOS is present. + * These functions were added by TI. + */ +void protocol_first(RunTimeOpts*,PtpClock*); +void protocol_loop(RunTimeOpts*,PtpClock*); + +#endif -- cgit v1.3.1