Don't use tickless if LPTICKER is not present

The current implementation of tickless requires LPTICKER to be present.
pull/7009/head
Bartek Szatkowski 2018-03-20 10:16:08 +00:00
parent 2d19ac1d60
commit 9575dd26ec
1 changed files with 2 additions and 2 deletions

View File

@ -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;