Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Low Power Ticker tests
[Low Power Ticker]
Tests to validate the proper implementation of the low power ticker. More...
Functions | |
void | lp_ticker_info_test (void) |
Test that the ticker has the correct frequency and number of bits. | |
void | lp_ticker_deepsleep_test (void) |
Test that the ticker continues operating in deep sleep mode. | |
void | lp_ticker_glitch_test (void) |
Test that the ticker does not glitch backwards due to an incorrectly implemented ripple counter driver. |
Detailed Description
Tests to validate the proper implementation of the low power ticker.
To run the low power ticker hal tests use the command:
mbed test -t <toolchain> -m <target> -n tests-mbed_hal-common_ticker*,tests-mbed_hal-lp_ticker*
Function Documentation
void lp_ticker_deepsleep_test | ( | void | ) |
Test that the ticker continues operating in deep sleep mode.
Given ticker is available. When ticker has interrupt set and board enters deep-sleep mode. Then ticker continues operating.
Definition at line 115 of file mbed-os/TESTS/mbed_hal/lp_ticker/main.cpp.
void lp_ticker_glitch_test | ( | void | ) |
Test that the ticker does not glitch backwards due to an incorrectly implemented ripple counter driver.
Given ticker is available. When ticker is enabled and counts. Then ticker does not glitch backwards due to an incorrectly implemented ripple counter driver.
Definition at line 145 of file mbed-os/TESTS/mbed_hal/lp_ticker/main.cpp.
void lp_ticker_info_test | ( | void | ) |
Test that the ticker has the correct frequency and number of bits.
Given ticker is available. When ticker information data is obtained. Then collected data indicates that ticker frequency is between 4KHz and 64KHz and the counter is at least 12 bits wide.
Definition at line 104 of file mbed-os/TESTS/mbed_hal/lp_ticker/main.cpp.
Generated on Tue Aug 9 2022 00:37:30 by
