Speeduino
|
Go to the source code of this file.
Macros | |
#define | VSS_USES_RPM2() ((configPage2.vssMode > 1U) && (pinVSS == pinTrigger2) && !BIT_CHECK(decoderState, BIT_DECODER_HAS_SECONDARY)) |
#define | FLEX_USES_RPM2() ((configPage2.flexEnabled > 0U) && (pinFlex == pinTrigger2) && !BIT_CHECK(decoderState, BIT_DECODER_HAS_SECONDARY)) |
Functions | |
void | initialiseAll (void) |
void | initialiseTriggers (void) |
void | setPinMapping (byte boardID) |
void | changeHalfToFullSync (void) |
void | changeFullToHalfSync (void) |
#define FLEX_USES_RPM2 | ( | ) | ((configPage2.flexEnabled > 0U) && (pinFlex == pinTrigger2) && !BIT_CHECK(decoderState, BIT_DECODER_HAS_SECONDARY)) |
#define VSS_USES_RPM2 | ( | ) | ((configPage2.vssMode > 1U) && (pinVSS == pinTrigger2) && !BIT_CHECK(decoderState, BIT_DECODER_HAS_SECONDARY)) |
Change injectors or/and ignition angles to 360deg. In semi sequentiol mode req_fuel size is half. Set number of outputs equal to half cylinder count.
Change injectors or/and ignition angles to 720deg. Roll back req_fuel size and set number of outputs equal to cylinder count.
Initialise Speeduino for the main loop. Top level init entry point for all initialisations:
Initialise the chosen trigger decoder.
Call decoder specific setup function triggerSetup_*() (by config4::TrigPattern, set to one of the DECODER_* defines) and do any additional initialisations needed.
Set board / microcontroller specific pin mappings / assignments. The boardID is switch-case compared against raw boardID integers (not enum or defined label, and probably no need for that either) which are originated from tuning SW (e.g. TS) set values and are available in reference/speeduino.ini (See pinLayout, note also that numbering is not contiguous here).