Lines Matching refs:ticker
8 ticker_t ticker; in TEST_BEGIN() local
11 ticker_init(&ticker, NTICKS); in TEST_BEGIN()
14 assert_u_eq(ticker_read(&ticker), NTICKS - j, in TEST_BEGIN()
16 assert_false(ticker_tick(&ticker), in TEST_BEGIN()
19 assert_u32_eq(ticker_read(&ticker), 0, in TEST_BEGIN()
21 assert_true(ticker_tick(&ticker), in TEST_BEGIN()
23 assert_u32_eq(ticker_read(&ticker), NTICKS, in TEST_BEGIN()
32 ticker_t ticker; in TEST_BEGIN() local
34 ticker_init(&ticker, NTICKS); in TEST_BEGIN()
36 assert_u_eq(ticker_read(&ticker), NTICKS, "Unexpected ticker value"); in TEST_BEGIN()
37 assert_false(ticker_ticks(&ticker, NTICKS), "Unexpected ticker fire"); in TEST_BEGIN()
38 assert_u_eq(ticker_read(&ticker), 0, "Unexpected ticker value"); in TEST_BEGIN()
39 assert_true(ticker_ticks(&ticker, NTICKS), "Expected ticker fire"); in TEST_BEGIN()
40 assert_u_eq(ticker_read(&ticker), NTICKS, "Unexpected ticker value"); in TEST_BEGIN()
42 assert_true(ticker_ticks(&ticker, NTICKS + 1), "Expected ticker fire"); in TEST_BEGIN()
43 assert_u_eq(ticker_read(&ticker), NTICKS, "Unexpected ticker value"); in TEST_BEGIN()