cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
baremetal_time.c File Reference

clock_gettime(), nanosleep() and timegm() for CWIST_BAREMETAL. More...

Include dependency graph for baremetal_time.c:

Go to the source code of this file.

Detailed Description

clock_gettime(), nanosleep() and timegm() for CWIST_BAREMETAL.

newlib declares these once -D_POSIX_TIMERS / -D_POSIX_MONOTONIC_CLOCK are set (see BAREMETAL_CFLAGS) but implements none of them:

Kept apart from baremetal.c so tests/test_baremetal_port.c can build it on the host with the three names renamed (-Dclock_gettime=... etc.).

Definition in file baremetal_time.c.