rusefi-1/firmware/controllers/algo/signal_executor.cpp

57 lines
1.6 KiB
C++

/**
* @file signal_executor.cpp
*
* todo: we should split this file into two:
* one for pure scheduling and another one for signal output which would
* use the scheduling
*
* @date Dec 4, 2013
* @author Andrey Belomutskiy, (c) 2012-2017
*
* This file is part of rusEfi - see http://rusefi.com
*
* rusEfi is free software; you can redistribute it and/or modify it under the terms of
* the GNU General Public License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* rusEfi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "main.h"
#include "signal_executor.h"
#include "efiGpio.h"
#include "engine.h"
/**
* Signal executors feed digital events right into WaveChart used by Sniffer tab of Dev Console
*/
#include "rpm_calculator.h"
EXTERN_ENGINE;
#if EFI_ENGINE_SNIFFER || defined(__DOXYGEN__)
#include "engine_sniffer.h"
extern WaveChart waveChart;
#endif /* EFI_ENGINE_SNIFFER */
#include "efiGpio.h"
OutputSignalPair::OutputSignalPair() {
isScheduled = false;
memset(outputs, 0, sizeof(outputs));
event = NULL;
}
void initSignalExecutor(void) {
initSignalExecutorImpl();
}
#if FUEL_MATH_EXTREME_LOGGING
extern LoggingWithStorage sharedLogger;
#endif /* FUEL_MATH_EXTREME_LOGGING */