mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
d19e885fb9
The `arm_common` syscalls implement `_gettimeofday()` for the benefit of newlib. The syscall call only work if the `rtc` module or the `vtimer` modules is transcluded. If neither module is used, a warning is printed by means of `#warning`. This warning is useless if the user does not invoke `gettimeofday()`. Further this warning prevents the use of `-Werror`. This PR puts the function in its own file, that will only be linked if it was used. And if the function was used, then a link time error occur if neither `rtc` nor `vtimer` was transcluded. |
||
---|---|---|
.. | ||
include | ||
arm_cpu.c | ||
atomic.s | ||
bootloader.c | ||
common.s | ||
crash.c | ||
gettimeofday.c | ||
Makefile | ||
Makefile.include | ||
syscalls.c | ||
VIC.c |