rusefi/unit_tests/boards.cpp

35 lines
643 B
C++
Raw Normal View History

2015-07-10 06:01:56 -07:00
/**
* @file board.c
*
* @date Nov 15, 2013
2018-01-20 17:42:19 -08:00
* @author Andrey Belomutskiy, (c) 2012-2018
2015-07-10 06:01:56 -07:00
*/
#include "boards.h"
float testMafValue = 0;
float testCltValue = 0;
float testIatValue = 0;
2015-07-10 06:01:56 -07:00
float getVoltageDivided(const char *msg, adc_channel_e channel DECLARE_ENGINE_PARAMETER_SUFFIX) {
2015-07-10 06:01:56 -07:00
switch(channel) {
case TEST_MAF_CHANNEL:
return testMafValue;
case TEST_CLT_CHANNEL:
return testCltValue;
case TEST_IAT_CHANNEL:
return testIatValue;
2015-07-10 06:01:56 -07:00
}
return 0;
}
float getVoltage(const char *msg, adc_channel_e channel DECLARE_ENGINE_PARAMETER_SUFFIX) {
2015-07-10 06:01:56 -07:00
return 0;
}
int getAdcValue(const char *msg, adc_channel_e channel) {
2015-07-10 06:01:56 -07:00
return 0;
}