Lines Matching +full:timer +full:- +full:triggered
4 * SPDX-License-Identifier: Apache-2.0
36 req->res = res; in basic_cb()
37 req->state = state; in basic_cb()
38 k_sem_give(&req->sem); in basic_cb()
58 /* Req: 0->1 trigger to on */ in ZTEST()
64 /* Req: 1->2 */ in ZTEST()
80 /* Req: 2->1 */ in ZTEST()
83 /* Req: 1->0 going to off triggered*/ in ZTEST()
90 /* Req: 0->1 triggered to on while in to off. */ in ZTEST()
94 /* Req: 1->0 releases which to off. */ in ZTEST()
102 static void timeout(struct k_timer *timer) in timeout() argument
104 struct test_req *req = k_timer_user_data_get(timer); in timeout()
108 sys_notify_init_callback(&req->cli.notify, basic_cb); in timeout()
110 rv = mram_no_latency_request(&req->cli); in timeout()
117 struct k_timer timer; in ZTEST() local
122 k_timer_init(&timer, timeout, NULL); in ZTEST()
123 k_timer_user_data_set(&timer, &req); in ZTEST()
125 k_timer_start(&timer, K_MSEC(1), K_NO_WAIT); in ZTEST()