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
|
|
|
|
2020-11-16 15:50:13 -08:00
|
|
|
void initMicrosecondTimer();
|
|
|
|
void setHardwareSchedulerTimer(efitick_t nowNt, efitick_t setTimeNt);
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2020-10-16 08:04:27 -07:00
|
|
|
#define TOO_FAR_INTO_FUTURE_US (10 * US_PER_SECOND)
|
|
|
|
#define TOO_FAR_INTO_FUTURE_NT US2NT(TOO_FAR_INTO_FUTURE_US)
|