mirror of https://github.com/rusefi/wideband.git
avoid 64 bit divide (!) exploding binary size (#293)
fixing unit tests Co-authored-by: rusefillc <sdfsdfqsf2334234234>
This commit is contained in:
parent
fa042fb6f5
commit
f784d5d5b9
|
@ -9,6 +9,8 @@ Timer::Timer() {
|
||||||
|
|
||||||
#ifdef MOCK_TIMER
|
#ifdef MOCK_TIMER
|
||||||
|
|
||||||
|
#define CH_CFG_ST_FREQUENCY 1000000
|
||||||
|
|
||||||
// in mock land, ticks == microseconds
|
// in mock land, ticks == microseconds
|
||||||
#define TIME_US2I(us) (us)
|
#define TIME_US2I(us) (us)
|
||||||
#define TIME_I2US(ticks) (ticks)
|
#define TIME_I2US(ticks) (ticks)
|
||||||
|
|
Loading…
Reference in New Issue