RTEMS CPU Kit with SuperCore
4.11.3
|
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <time.h>
#include <limits.h>
#include <rtems.h>
#include <rtems/rtems_bsdnet.h>
#include <rtems/error.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <rtems/bsdnet/servers.h>
Data Structures | |
struct | ntpPacket |
Macros | |
#define | UNIX_BASE_TO_NTP_BASE (uint32_t)(((70UL*365UL)+17UL) * (24UL*60UL*60UL)) |
Functions | |
int | rtems_bsdnet_get_ntp (int sock, rtems_bsdnet_ntp_callback_t callback, void *usr_data) |
int | rtems_bsdnet_synchronize_ntp (int interval, rtems_task_priority priority) |
Variables | |
int | rtems_bsdnet_ntp_retry_count = 5 |
int | rtems_bsdnet_ntp_timeout_secs = 5 |
int | rtems_bsdnet_ntp_bcast_timeout_secs = 80 |