17 lines
313 B
C
17 lines
313 B
C
#ifndef TIMER_H
|
|
#define TIMER_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
bool timer_init(void);
|
|
|
|
uint64_t timer_get_ticks(void);
|
|
|
|
void timer_sleep_ms(uint64_t milliseconds);
|
|
void timer_sleep_us(uint64_t microseconds);
|
|
void timer_sleep_ns(uint64_t nanoseconds);
|
|
|
|
extern volatile uint32_t g_ctrlc_pending;
|
|
|
|
#endif |