Commit e63500c8 authored by Alessandro Rubini's avatar Alessandro Rubini

include/ppsi-wrappers.h: provide some missing bits

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent c1eee4db
......@@ -68,6 +68,7 @@ obj-$(CONFIG_PTP_NOPOSIX) += wrc_ptp.o \
cflags-$(CONFIG_PPSI) += \
-ffreestanding \
-include include/ppsi-wrappers.h \
-Iinclude \
-I$(PPSI)/include \
-I$(PPSI)/arch-spec/include \
......
/*
* This includes stuff that is needed to link ppsi into wrpc-sw
*
* It is included by the command line (-include) like ptp-noposix's
* ptpd-wrappers.h is. It is a subset of that file, with only needed stuff
*/
#include <sys/types.h>
#include <stdlib.h>
#include <stdint.h>
#ifndef __IEEE_BIG_ENDIAN
#error "Not big endian, or unknown endianness"
#endif
static inline uint16_t ntohs(uint16_t x) {return x;}
static inline int usleep(useconds_t useconds)
{
while(useconds--)
asm volatile("nop");
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment