mirror of https://github.com/ARMmbed/mbed-os.git
Modify ticker_init_test() to be consistent with the new requirement.
parent
a8eee0fb1a
commit
1bd2e517a0
|
@ -92,7 +92,7 @@ void wait_cycles(volatile unsigned int cycles)
|
|||
}
|
||||
|
||||
/* Test that ticker_init can be called multiple times and
|
||||
* ticker_init resets the internal count and disables the ticker interrupt.
|
||||
* ticker_init allows the ticker to keep counting and disables the ticker interrupt.
|
||||
*/
|
||||
void ticker_init_test()
|
||||
{
|
||||
|
@ -118,7 +118,7 @@ void ticker_init_test()
|
|||
}
|
||||
|
||||
TEST_ASSERT(intf->read() >= (ticks_start + 2 * TICKER_INT_VAL));
|
||||
TEST_ASSERT(ticks_start > ticks_after_reinit);
|
||||
TEST_ASSERT(ticks_start <= ticks_after_reinit);
|
||||
TEST_ASSERT_EQUAL(0, intFlag);
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ extern "C" {
|
|||
*
|
||||
* Given ticker is initialised and interrupt is set.
|
||||
* When ticker is re-initialised.
|
||||
* Then ticker resets the internal count and disables the ticker interrupt.
|
||||
* Then ticker keeps counting and disables the ticker interrupt.
|
||||
*/
|
||||
void ticker_init_test(void);
|
||||
|
||||
|
|
Loading…
Reference in New Issue