File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
TESTS/mbed_hal/lp_us_tickers Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ void wait_cycles(volatile unsigned int cycles)
92
92
}
93
93
94
94
/* Test that ticker_init can be called multiple times and
95
- * ticker_init resets the internal count and disables the ticker interrupt.
95
+ * ticker_init allows the ticker to keep counting and disables the ticker interrupt.
96
96
*/
97
97
void ticker_init_test ()
98
98
{
@@ -118,7 +118,7 @@ void ticker_init_test()
118
118
}
119
119
120
120
TEST_ASSERT (intf->read () >= (ticks_start + 2 * TICKER_INT_VAL));
121
- TEST_ASSERT (ticks_start > ticks_after_reinit);
121
+ TEST_ASSERT (ticks_start <= ticks_after_reinit);
122
122
TEST_ASSERT_EQUAL (0 , intFlag);
123
123
}
124
124
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ extern "C" {
32
32
*
33
33
* Given ticker is initialised and interrupt is set.
34
34
* When ticker is re-initialised.
35
- * Then ticker resets the internal count and disables the ticker interrupt.
35
+ * Then ticker keeps counting and disables the ticker interrupt.
36
36
*/
37
37
void ticker_init_test (void );
38
38
You can’t perform that action at this time.
0 commit comments