31#ifndef _TUSB_TIMEOUT_H_
32#define _TUSB_TIMEOUT_H_
48extern uint32_t tusb_hal_millis(
void);
50static inline void tu_timeout_set(
tu_timeout_t* tt, uint32_t msec)
53 tt->start = tusb_hal_millis();
58 return ( tusb_hal_millis() - tt->start ) >= tt->interval;
64 tt->start += tt->interval;
69 tt->start = tusb_hal_millis();
Definition tusb_timeout.h:41