Home
last modified time | relevance | path

Searched refs:usbc_timer (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.4.0/subsys/usb/usb_c/
Dusbc_timer.c19 struct usbc_timer_t *usbc_timer = k_timer_user_data_get(timer); in usbc_timer_handler() local
21 atomic_set_bit(&usbc_timer->flags, TIMER_EXPIRED); in usbc_timer_handler()
24 void usbc_timer_init(struct usbc_timer_t *usbc_timer, uint32_t timeout_ms) in usbc_timer_init() argument
26 k_timer_init(&usbc_timer->timer, usbc_timer_handler, NULL); in usbc_timer_init()
27 k_timer_user_data_set(&usbc_timer->timer, usbc_timer); in usbc_timer_init()
28 usbc_timer->timeout_ms = timeout_ms; in usbc_timer_init()
31 void usbc_timer_start(struct usbc_timer_t *usbc_timer) in usbc_timer_start() argument
33 atomic_clear_bit(&usbc_timer->flags, TIMER_EXPIRED); in usbc_timer_start()
34 atomic_set_bit(&usbc_timer->flags, TIMER_STARTED); in usbc_timer_start()
35 k_timer_start(&usbc_timer->timer, K_MSEC(usbc_timer->timeout_ms), K_NO_WAIT); in usbc_timer_start()
[all …]
Dusbc_timer.h30 void usbc_timer_init(struct usbc_timer_t *usbc_timer, uint32_t timeout_ms);
37 void usbc_timer_start(struct usbc_timer_t *usbc_timer);
45 bool usbc_timer_expired(struct usbc_timer_t *usbc_timer);
53 bool usbc_timer_running(struct usbc_timer_t *usbc_timer);
60 void usbc_timer_stop(struct usbc_timer_t *usbc_timer);
DCMakeLists.txt8 usbc_timer.c