fome-fw/unit_tests/global_mocks.cpp

32 lines
448 B
C++
Raw Normal View History

2021-12-03 21:46:34 -08:00
/**
* @file global_mocks.cpp
*/
2021-05-07 14:43:24 -07:00
#include "pch.h"
2021-05-07 14:43:24 -07:00
#include "trigger_central.h"
#include "map_resize.h"
bool verboseMode = false;
static int timeNowUs = 0;
2021-05-07 14:43:24 -07:00
efitick_t getTimeNowNt() {
2024-04-25 22:01:46 -07:00
return (efitimeus_t)timeNowUs * US_TO_NT_MULTIPLIER;
2021-05-07 14:43:24 -07:00
}
void setTimeNowUs(int us) {
timeNowUs = us;
}
void advanceTimeUs(int us) {
timeNowUs += us;
}
2021-05-07 14:43:24 -07:00
void initLogging(LoggingWithStorage *logging, const char *name) {
}
void setBoardConfigOverrides() {
}