mirror of https://github.com/ARMmbed/mbed-os.git
Don't use tickless if LPTICKER is not present
The current implementation of tickless requires LPTICKER to be present.pull/7009/head
parent
2d19ac1d60
commit
9575dd26ec
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue