Searched refs:cb_cnt (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/tests/drivers/gpio/gpio_basic_api/src/ |
D | test_callback_manage.c | 11 static int cb_cnt[2]; variable 16 TC_PRINT("%s triggered: %d\n", __func__, ++cb_cnt[0]); in callback_1() 23 TC_PRINT("%s triggered: %d\n", __func__, ++cb_cnt[1]); in callback_2() 31 TC_PRINT("%s triggered: %d\n", __func__, ++cb_cnt[1]); in callback_remove_self() 72 cb_cnt[0] = 0; in trigger_callback() 73 cb_cnt[1] = 0; in trigger_callback() 102 if (cb_cnt[0] != 1 || cb_cnt[1] != 1) { in test_callback_add_remove() 112 if (cb_cnt[0] != 0 || cb_cnt[1] != 1) { in test_callback_add_remove() 121 if (cb_cnt[0] != 0 || cb_cnt[1] != 0) { in test_callback_add_remove() 159 if (cb_cnt[0] != 1 || cb_cnt[1] != 1) { in test_callback_self_remove() [all …]
|
D | test_callback_trigger.c | 11 static int cb_cnt; variable 23 ++cb_cnt; in callback() 24 TC_PRINT("callback triggered: %d\n", cb_cnt); in callback() 25 if ((cb_cnt == 1) in callback() 29 if (cb_cnt >= MAX_INT_CNT) { in callback() 77 cb_cnt = 0; in test_callback() 92 TC_PRINT("OUT init %x, IN cfg %x, cnt %d\n", out_flags, mode, cb_cnt); in test_callback() 94 if (cb_cnt != 2) { in test_callback() 101 if (cb_cnt != 1) { in test_callback() 107 if (cb_cnt != MAX_INT_CNT) { in test_callback()
|
D | test_config_trigger.c | 11 static int cb_cnt; variable 20 ++cb_cnt; in callback() 30 cb_cnt = 0; in ZTEST() 69 zassert_between_inclusive(cb_cnt, 0, 1, "Got %d interrupts", cb_cnt); in ZTEST() 81 cb_cnt = 0; in ZTEST() 116 zassert_between_inclusive(cb_cnt, 0, 1, "Got %d interrupts", cb_cnt); in ZTEST()
|
/Zephyr-latest/tests/subsys/debug/cs_trace_defmt/src/ |
D | main.c | 12 static uint8_t cb_cnt; variable 16 zassert_equal(exp_id[cb_cnt], id, NULL); in callback() 17 zassert_equal(len, exp_len[cb_cnt], NULL); in callback() 18 zassert_equal(memcmp(data, exp_data[cb_cnt], len), 0, NULL); in callback() 19 cb_cnt++; in callback() 61 cb_cnt = 0; in ZTEST() 69 zassert_equal(cb_cnt, 1); in ZTEST() 82 cb_cnt = 0; in ZTEST() 96 zassert_equal(cb_cnt, 3); in ZTEST()
|