rusefi-1/firmware/hw_layer/microsecond_timer.h

24 lines
358 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
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
void initMicrosecondTimer(void);
2020-01-18 21:16:19 -08:00
void setHardwareUsTimer(int32_t deltaTimeUs);
2015-07-10 06:01:56 -07:00
2020-01-19 00:49:35 -08:00
#define TOO_FAR_INTO_FUTURE_US 10 * US_PER_SECOND
2020-01-18 21:28:58 -08:00
2015-07-10 06:01:56 -07:00
#ifdef __cplusplus
}
#endif /* __cplusplus */