From 0079b0c52fce81712b8b2fabb86ecf981eedcb1a Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Tue, 20 Sep 2022 09:49:30 +0200 Subject: [PATCH] event_periodic_callback: remove unnecessary dependency --- sys/Makefile.dep | 1 - sys/include/event/periodic_callback.h | 1 - tests/event_periodic_callback/Makefile | 1 + tests/event_periodic_callback/main.c | 1 + 4 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/Makefile.dep b/sys/Makefile.dep index e15977a0bb08..b24eef8d08e3 100644 --- a/sys/Makefile.dep +++ b/sys/Makefile.dep @@ -528,7 +528,6 @@ endif ifneq (,$(filter event_periodic_callback,$(USEMODULE))) USEMODULE += event_callback USEMODULE += event_periodic - USEMODULE += event_thread endif ifneq (,$(filter emcute,$(USEMODULE))) diff --git a/sys/include/event/periodic_callback.h b/sys/include/event/periodic_callback.h index 40c9677faefa..98ed61a17496 100644 --- a/sys/include/event/periodic_callback.h +++ b/sys/include/event/periodic_callback.h @@ -27,7 +27,6 @@ #include "event/callback.h" #include "event/periodic.h" -#include "event/thread.h" #ifdef __cplusplus extern "C" { diff --git a/tests/event_periodic_callback/Makefile b/tests/event_periodic_callback/Makefile index d9b69a6e4afa..2d3e6c14d18d 100644 --- a/tests/event_periodic_callback/Makefile +++ b/tests/event_periodic_callback/Makefile @@ -1,6 +1,7 @@ include ../Makefile.tests_common USEMODULE += event_periodic_callback +USEMODULE += event_thread USEMODULE += ztimer_msec include $(RIOTBASE)/Makefile.include diff --git a/tests/event_periodic_callback/main.c b/tests/event_periodic_callback/main.c index fb07e69f55e3..ef4d08131054 100644 --- a/tests/event_periodic_callback/main.c +++ b/tests/event_periodic_callback/main.c @@ -21,6 +21,7 @@ #include #include "event/periodic_callback.h" +#include "event/thread.h" static void _event_cb(void *ctx) {