mirror of https://github.com/ARMmbed/mbed-os.git
Skip deep sleep test when running from US ticker
Skip the systimer deep sleep test when running from the microsecond ticker, since the microsecond ticker doesn't support operation in deep sleep mode.pull/9785/head
parent
4bead9220d
commit
8d880bb63e
|
@ -288,7 +288,7 @@ void test_sleep(void)
|
|||
TEST_ASSERT_UINT64_WITHIN(DELAY_DELTA_US, DELAY_US, timer.read_high_resolution_us());
|
||||
}
|
||||
|
||||
#if DEVICE_LPTICKER
|
||||
#if DEVICE_LPTICKER && !MBED_CONF_TARGET_TICKLESS_FROM_US_TICKER
|
||||
/** Test wake up from deepsleep
|
||||
*
|
||||
* Given a SysTimer with a tick scheduled in the future
|
||||
|
@ -342,7 +342,7 @@ Case cases[] = {
|
|||
Case("Handler called once", test_handler_called_once),
|
||||
#if DEVICE_SLEEP
|
||||
Case("Wake up from sleep", test_sleep),
|
||||
#if DEVICE_LPTICKER
|
||||
#if DEVICE_LPTICKER && !MBED_CONF_TARGET_TICKLESS_FROM_US_TICKER
|
||||
Case("Wake up from deep sleep", test_deepsleep),
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue