esp-open-rtos/extras/timekeeping/tests/sntp-run/Makefile
Jeff Kletsky 6902615525 extras/timekeeping -- provide POSIX-like interface
Provide POSIX-like timekeeping utilities using system clock
to support monotonic, accurate, timezone-aware time

Implements settimeofday(), gettimeofday(), and adjtime()
Utilizes setenv() and tzset()

See README.timekeeping.md for more details
2018-02-22 17:21:18 -08:00

20 lines
553 B
Makefile

PROGRAM=timekeeping_sntp_run
# Test the use of extras/timekeeping with LWIP SNTP
EXTRA_COMPONENTS = extras/timekeeping
# Can work for broadcast or poll
# (assuming you have NTP broadcast already configured on the network)
# Broadcast / poll and hosts for poll set in timekeeping_sntp_run.c
# SNTP parameters set at the top of lwipopts.h
# To set then only log time difference (rather than correct the clock)
# define TIMEKEEPING_SET_AND_MEASURE_ONLY
# PROGRAM_CFLAGS = $(CFLAGS) -DTIMEKEEPING_SET_AND_MEASURE_ONLY
include ../../../../common.mk