1
0
mirror of https://github.com/mist-devel/mist-firmware.git synced 2026-03-10 04:11:17 +00:00
Files
mist-devel.mist-firmware/usb/timer.h
Eugene Azarov 7930c18d52 mcp2221: i2c state change waiting loop is improved
* ds3231: 12h to 24h time convertion fix
* pcf85263: small fix for get/set time
2026-02-02 01:06:21 +03:00

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