fome-fw/firmware/hw_layer/microsecond_timer/microsecond_timer.h

15 lines
335 B
C
Raw Normal View History

2015-07-10 06:01:56 -07:00
/**
* @file microsecond_timer.h
*
* @date Apr 14, 2014
2020-01-13 18:57:43 -08:00
* @author Andrey Belomutskiy, (c) 2012-2020
2015-07-10 06:01:56 -07:00
*/
2020-01-18 21:16:19 -08:00
#pragma once
2015-07-10 06:01:56 -07:00
void initMicrosecondTimer();
void setHardwareSchedulerTimer(efitick_t nowNt, efitick_t setTimeNt);
2015-07-10 06:01:56 -07:00
#define TOO_FAR_INTO_FUTURE_US (10 * US_PER_SECOND)
#define TOO_FAR_INTO_FUTURE_NT US2NT(TOO_FAR_INTO_FUTURE_US)