1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-28 23:09:46 +01:00
RIOT/sys/Kconfig.newlib
Francisco Molina 0819660303 sys/syscalls: add libc_gettimeofday
Conditionally implement gettimeofday() if module is included, this
avoids including ztimer64 even when not needed
2022-03-24 11:36:49 +01:00

38 lines
921 B
Plaintext

# Copyright (c) 2020 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
if MODULE_NEWLIB
config MODULE_NEWLIB_NANO
bool "NewLib Nano"
config MODULE_NEWLIB_GNU_SOURCE
bool "NewLib GNU source"
config MODULE_NEWLIB_SYSCALLS_DEFAULT
bool
default y
depends on !HAVE_CUSTOM_NEWLIB_SYSCALLS
select MODULE_DIV
help
Default implementation of newlib system calls.
config MODULE_LIBC_GETTIMEOFDAY
bool
select MODULE_NEWLIB_SYSCALLS_DEFAULT if MODULE_NEWLIB
select MODULE_XTIMER
select MODULE_ZTIMER64_XTIMER_COMPAT if MODULE_ZTIMER_XTIMER_COMPAT
help
Support for gettimeofday()
endif # MODULE_NEWLIB
config HAVE_CUSTOM_NEWLIB_SYSCALLS
bool
help
Indicates that a custom newlib syscalls implementation is present.