The sleep HAL tests ensure driver conformance to defined behaviour. More...
Functions | |
void | sleep_usticker_test () |
High frequency ticker interrupt can wake up from sleep (locked deep-sleep). More... | |
void | deepsleep_lpticker_test () |
Low power ticker interrupt to wake up from deep-sleep (unlocked deep-sleep). More... | |
void | deepsleep_high_speed_clocks_turned_off_test () |
High speed clocks are turned off in deep-sleep (unlocked deep-sleep) More... | |
The sleep HAL tests ensure driver conformance to defined behaviour.
To run the sleep hal tests use the command:
mbed test -t <toolchain> -m <target> -n tests-mbed_hal-sleep*
void deepsleep_high_speed_clocks_turned_off_test | ( | ) |
High speed clocks are turned off in deep-sleep (unlocked deep-sleep)
Given is an environment with high frequency ticker. When the board enters deep-sleep mode. Then high frequency ticker does not count while the board is in the deep-sleep mode.
void deepsleep_lpticker_test | ( | ) |
Low power ticker interrupt to wake up from deep-sleep (unlocked deep-sleep).
Given is an environment with low power ticker. When the board enters deep-sleep mode. Then the board can be wake up from the sleep by low power ticker interrupt and wake-up time should be less than 10 ms.
void sleep_usticker_test | ( | ) |
High frequency ticker interrupt can wake up from sleep (locked deep-sleep).
Given is an environment with high frequency ticker. When the board enters sleep mode. Then the board can be wake up from the sleep by high frequency ticker interrupt and wake-up time should be less than 10 us.