PicoWAN SDK Documentation
tick.h
Go to the documentation of this file.
1 
31 #ifndef _TICK_H_
32 #define _TICK_H_
33 
34 #include <stdint.h>
35 #include <arch.h>
36 
37 typedef enum latency {
38  NO_LATENCY,
39  LOW_LATENCY,
40  HIGH_LATENCY,
41 } latency_t;
42 
43 
49 void tick_init(void);
50 
58 uint64_t tick_get_count(void);
59 
73 latency_t tick_handle_next_wakeup(uint64_t time, uint8_t lp_blocked);
74 
75 #endif /* _TICK_H_ */
uint64_t tick_get_count(void)
Gets the number of elapsed ticks since the device has been powered up.
Definition: tick.c:72
latency_t tick_handle_next_wakeup(uint64_t time, uint8_t lp_blocked)
Handles the next scheduled event.
Definition: tick.c:93
void tick_init(void)
Initializes the system tick.
Definition: tick.c:44