39 #define FNET_TIMER_PERIOD_MS (10U) 44 #define FNET_TIMER_MS_IN_SEC (1000U) 49 #define FNET_TIMER_MS_IN_MIN (FNET_TIMER_MS_IN_SEC*60U) 54 #define FNET_TIMER_MS_IN_HOUR (FNET_TIMER_MS_IN_MIN*60U) 56 #if defined(__cplusplus) 114 #if FNET_CFG_TIME || defined(__DOXYGEN__) 117 #define fnet_time time 159 #if !FNET_CFG_TIMER_ALT 161 #ifndef FNET_HW_TIMER_INIT 162 #define FNET_HW_TIMER_INIT fnet_cpu_timer_init 164 #ifndef FNET_HW_TIMER_RELEASE 165 #define FNET_HW_TIMER_RELEASE fnet_cpu_timer_release 170 #if defined(__cplusplus) fnet_uint32_t fnet_time_t
Unsigned integer type representing time uinits. It can be seconds or milliseconds.
void fnet_timer_delay(fnet_time_t delay_ms)
Perform a delay for the given number of milliseconds.
void fnet_time_set(time_t sec)
Set time since the Epoch (00:00:00 UTC, January 1, 1970).
fnet_time_t fnet_timer_get_ms(void)
Get the timer counter value in milliseconds.
void fnet_timer_poll(void)
Poll SW timers.
time_t fnet_time(time_t *sec)
Get time since the Epoch (00:00:00 UTC, January 1, 1970).