diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-05-28 15:17:20 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-05-28 15:17:20 +0200 |
commit | 460ecf074d133cbe026cbddb7cf5fad1180c9831 (patch) | |
tree | 2beb0cfa84698dbb723c7c62acec703fad3437da /src/arch/posix | |
parent | cf3ba89c46301bb8c0a1eda470c353801117fc0b (diff) |
Set loop/wakeup/ostream either via .config or via app/commandline
Diffstat (limited to 'src/arch/posix')
-rw-r--r-- | src/arch/posix/arch.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/posix/arch.cc b/src/arch/posix/arch.cc index 83bf845..69dfeac 100644 --- a/src/arch/posix/arch.cc +++ b/src/arch/posix/arch.cc @@ -7,11 +7,11 @@ #include <time.h> #include <unistd.h> -#if defined(WITH_LOOP) || defined(TIMER_S) +#if defined(CONFIG_loop) || defined(TIMER_S) #include "driver/uptime.h" void loop(); #endif -#ifdef WITH_WAKEUP +#ifdef CONFIG_wakeup void wakeup(); #endif @@ -21,10 +21,10 @@ void Arch::idle_loop(void) { while (1) { sleep(1); -#ifdef WITH_LOOP +#ifdef CONFIG_loop loop(); #endif -#ifdef WITH_WAKEUP +#ifdef CONFIG_wakeup wakeup(); #endif #ifdef TIMER_S |