mirror of
https://github.com/mist-devel/mist-firmware.git
synced 2026-03-10 04:11:17 +00:00
21 lines
374 B
C
21 lines
374 B
C
// interface between USB timer and minimig timer
|
|
|
|
#ifndef TIMER_H
|
|
#define TIMER_H
|
|
|
|
#include <inttypes.h>
|
|
#include <stdbool.h>
|
|
|
|
#include "hardware.h"
|
|
#include "attrs.h"
|
|
|
|
typedef uint32_t msec_t;
|
|
|
|
void timer_init();
|
|
msec_t timer_get_msec();
|
|
void timer_delay_msec(msec_t t);
|
|
bool timer_check(msec_t ref, msec_t delay);
|
|
RAMFUNC void delay_usec(unsigned int);
|
|
|
|
#endif // TIMER_H
|