From 9575dd26ec752d2fbcac9397ea28c39915e4587b Mon Sep 17 00:00:00 2001 From: Bartek Szatkowski Date: Tue, 20 Mar 2018 10:16:08 +0000 Subject: [PATCH] Don't use tickless if LPTICKER is not present The current implementation of tickless requires LPTICKER to be present. --- rtos/TARGET_CORTEX/mbed_rtx_idle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtos/TARGET_CORTEX/mbed_rtx_idle.cpp b/rtos/TARGET_CORTEX/mbed_rtx_idle.cpp index 3d0e6a12ab..83db8253aa 100644 --- a/rtos/TARGET_CORTEX/mbed_rtx_idle.cpp +++ b/rtos/TARGET_CORTEX/mbed_rtx_idle.cpp @@ -34,7 +34,7 @@ extern "C" { using namespace mbed; -#ifdef MBED_TICKLESS +#if (defined(MBED_TICKLESS) && defined(DEVICE_LPTICKER)) #include "rtos/TARGET_CORTEX/SysTimer.h" @@ -129,7 +129,7 @@ static void default_idle_hook(void) core_util_critical_section_exit(); } -#endif // MBED_TICKLESS +#endif // (defined(MBED_TICKLESS) && defined(DEVICE_LPTICKER)) static void (*idle_hook_fptr)(void) = &default_idle_hook;