Skip to content

Commit 95559ad

Browse files
committed
Change LPTICKER spec to allow clock freq starting at 4kHz
1 parent e514c2c commit 95559ad

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

TESTS/mbed_hal/lp_ticker/lp_ticker_api_tests.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extern "C" {
3232
*
3333
* Given ticker is available.
3434
* When ticker information data is obtained.
35-
* Then collected data indicates that ticker frequency is between 8KHz and 64KHz and the counter is at least 12 bits wide.
35+
* Then collected data indicates that ticker frequency is between 4KHz and 64KHz and the counter is at least 12 bits wide.
3636
*/
3737
void lp_ticker_info_test(void);
3838

TESTS/mbed_hal/lp_ticker/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void lp_ticker_info_test()
8282
{
8383
const ticker_info_t* p_ticker_info = lp_ticker_get_info();
8484

85-
TEST_ASSERT(p_ticker_info->frequency >= 8000);
85+
TEST_ASSERT(p_ticker_info->frequency >= 4000);
8686
TEST_ASSERT(p_ticker_info->frequency <= 64000);
8787
TEST_ASSERT(p_ticker_info->bits >= 12);
8888
}

hal/lp_ticker_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extern "C" {
3434
* Low level interface to the low power ticker of a target
3535
*
3636
* # Defined behavior
37-
* * Has a reported frequency between 8KHz and 64KHz - verified by ::lp_ticker_info_test
37+
* * Has a reported frequency between 4KHz and 64KHz - verified by ::lp_ticker_info_test
3838
* * Has a counter that is at least 12 bits wide - verified by ::lp_ticker_info_test
3939
* * Continues operating in deep sleep mode - verified by ::lp_ticker_deepsleep_test
4040
* * All behavior defined by the @ref hal_ticker_shared "ticker specification"

0 commit comments

Comments
 (0)