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
Russ Butler 2019-02-28 10:57:00 -06:00
parent 4bead9220d
commit 8d880bb63e
1 changed files with 2 additions and 2 deletions

View File

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