1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

posix: move time functions to their own module

This commit is contained in:
Martine Lenders 2017-11-06 11:20:43 +01:00
parent 772ee47e28
commit 0a0bb86f4a
7 changed files with 13 additions and 2 deletions

View File

@ -434,6 +434,10 @@ ifneq (,$(filter posix_semaphore,$(USEMODULE)))
USEMODULE += xtimer
endif
ifneq (,$(filter posix_time,$(USEMODULE)))
USEMODULE += xtimer
endif
ifneq (,$(filter lwip_sixlowpan,$(USEMODULE)))
USEMODULE += lwip_ipv6_autoconfig
endif

View File

@ -22,6 +22,7 @@ USEMODULE += gnrc_ipv6_default
USEMODULE += gnrc_udp
USEMODULE += gnrc_sock_udp
USEMODULE += posix_sockets
USEMODULE += posix_time
# Add also the shell, some shell commands
USEMODULE += shell
USEMODULE += shell_commands

View File

@ -7,6 +7,9 @@ endif
ifneq (,$(filter posix_sockets,$(USEMODULE)))
DIRS += posix/sockets
endif
ifneq (,$(filter posix_time,$(USEMODULE)))
DIRS += posix/time
endif
ifneq (,$(filter pthread,$(USEMODULE)))
DIRS += posix/pthread
endif

3
sys/posix/time/Makefile Normal file
View File

@ -0,0 +1,3 @@
MODULE = posix_time
include $(RIOTBASE)/Makefile.base

View File

@ -1,6 +1,6 @@
APPLICATION = posix_sleep
APPLICATION = posix_time
include ../Makefile.tests_common
USEMODULE += posix
USEMODULE += posix_time
include $(RIOTBASE)/Makefile.include