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

57 lines
1.6 KiB
C++
Raw Normal View History

2015-07-10 06:01:56 -07:00
/**
* @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
2018-01-20 17:55:31 -08:00
* @author Andrey Belomutskiy, (c) 2012-2018
2015-07-10 06:01:56 -07:00
*
* 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;
2016-01-24 23:03:01 -08:00
#if EFI_ENGINE_SNIFFER || defined(__DOXYGEN__)
2015-07-15 18:01:45 -07:00
#include "engine_sniffer.h"
2015-07-10 06:01:56 -07:00
extern WaveChart waveChart;
2016-08-26 14:02:37 -07:00
#endif /* EFI_ENGINE_SNIFFER */
2015-07-10 06:01:56 -07:00
#include "efiGpio.h"
2017-05-24 04:57:58 -07:00
InjectionSignalPair::InjectionSignalPair() {
2016-09-26 18:03:18 -07:00
isScheduled = false;
2016-11-30 15:02:19 -08:00
memset(outputs, 0, sizeof(outputs));
2016-11-30 19:06:43 -08:00
event = NULL;
2016-09-26 18:03:18 -07:00
}
2016-09-03 16:02:42 -07:00
void initSignalExecutor(void) {
initSignalExecutorImpl();
}
2016-08-26 14:02:37 -07:00
#if FUEL_MATH_EXTREME_LOGGING
extern LoggingWithStorage sharedLogger;
#endif /* FUEL_MATH_EXTREME_LOGGING */