FreeEMS
0.2.0-SNAPSHOT-282-g9efc524
|
Precision timed output scheduling. More...
#include "inc/freeEMS.h"
#include "inc/interrupts.h"
#include "inc/decoderInterface.h"
#include "inc/outputScheduler.h"
Go to the source code of this file.
Macros | |
#define | OUTPUTSCHEDULER_C |
Functions | |
void | scheduleOutputs () |
Precision timed output scheduling. |
Precision timed output scheduling.
This file contains all of the mathematics and logic that lead to precise ignition and injection events being output based on configuration parameters.
Definition in file outputScheduler.c.
#define OUTPUTSCHEDULER_C |
Definition at line 38 of file outputScheduler.c.
void scheduleOutputs | ( | void | ) |
Precision timed output scheduling.
Calculates which input tooth and post tooth delay any given event should used based on the configuration provided.
TODO
Definition at line 48 of file outputScheduler.c.
References DerivedVar::Advance, schedulingSetting::anglesOfTDC, ATOMIC_END, ATOMIC_START, CoreVars, Counters, schedulingSetting::decoderEngineOffset, decoderMaxCodeTime, DerivedVars, DerivedVar::Dwell, ectSwitchOnCodeTime, eventAngles, fixedConfigs1, KeyUserDebug::ignitionCuts, KeyUserDebug::injectionCuts, KeyUserDebugs, LONGMAX, masterPulseWidth, MAX_NUMBER_OF_OUTPUT_EVENTS, schedulingSetting::numberOfConfiguredOutputEvents, numberOfRealEvents, numberOfVirtualEvents, ONES, outputEventDelayFinalPeriod, outputEventDelayTotalPeriod, outputEventExtendNumberOfRepeats, outputEventExtendRepeatPeriod, outputEventInputEventNumbers, outputEventPulseWidthsMath, CoreVar::RPM, schedulingSetting::schedulingConfigurationBits, fixedConfig1::schedulingSettings, SHORTMAX, skipEventFlags, ticks_per_degree_multiplier, ticksPerDegree, Counter::timerStretchedToSchedule, and totalEventAngleRange.
Referenced by main().