2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file board.cpp
|
|
|
|
*
|
|
|
|
* @date Nov 15, 2013
|
2016-04-02 20:01:58 -07:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2016
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "main.h"
|
|
|
|
#include "boards.h"
|
2016-01-23 15:01:40 -08:00
|
|
|
#include "engine.h"
|
2015-07-10 06:01:56 -07:00
|
|
|
#include "adc_math.h"
|
2016-01-22 23:01:34 -08:00
|
|
|
#include "engine_sniffer.h"
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
static LoggingWithStorage logger("simulator board");
|
|
|
|
extern engine_configuration_s *engineConfiguration;
|
2016-01-23 15:01:40 -08:00
|
|
|
extern Engine *engine;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
int getAdcValue(const char *msg, int hwChannel) {
|
2016-01-23 15:01:40 -08:00
|
|
|
return engine->engineState.mockAdcState.getMockAdcValue(hwChannel);
|
2015-07-10 06:01:56 -07:00
|
|
|
}
|