28#include <SimplyAtomic.h>
31#include "src/FastCRC/FastCRC.h"
33#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega2561__)
34 #define BOARD_MAX_DIGITAL_PINS 54
35 #define BOARD_MAX_IO_PINS 70
36 #define BOARD_MAX_ADC_PINS 15
38 #define LED_BUILTIN 13
41 #define BOARD_H "board_avr2560.h"
43 #define INJ_CHANNELS 4
46 #define IGN_CHANNELS 5
49 #if defined(__AVR_ATmega2561__)
64#elif defined(CORE_TEENSY)
65 #if defined(__MK64FX512__) || defined(__MK66FX1M0__)
67 #define BOARD_H "board_teensy35.h"
68 #elif defined(__IMXRT1062__)
70 #define BOARD_H "board_teensy41.h"
72 #define INJ_CHANNELS 8
73 #define IGN_CHANNELS 8
75#elif defined(STM32_MCU_SERIES) || defined(ARDUINO_ARCH_STM32) || defined(STM32)
76 #define BOARD_H "board_stm32_official.h"
79 #define BOARD_MAX_ADC_PINS NUM_ANALOG_INPUTS-1
80 #if defined(STM32F407xx)
81 #define INJ_CHANNELS 8
82 #define IGN_CHANNELS 8
84 #define INJ_CHANNELS 4
85 #define IGN_CHANNELS 5
87#elif defined(__SAMD21G18A__)
88 #define BOARD_H "board_samd21.h"
91 #define INJ_CHANNELS 4
92 #define IGN_CHANNELS 4
93#elif defined(__SAMC21J18A__)
94 #define BOARD_H "board_samc21.h"
97#elif defined(__SAME51J19A__)
98 #define BOARD_H "board_same51.h"
101 #define INJ_CHANNELS 8
102 #define IGN_CHANNELS 8
104 #error Incorrect board selected. Please select the correct board (Usually Mega 2560) and upload again
111#define BIT_SET(a,b) ((a) |= (1U<<(b)))
112#define BIT_CLEAR(a,b) ((a) &= ~(1U<<(b)))
113#define BIT_CHECK(var,pos) !!((var) & (1U<<(pos)))
114#define BIT_TOGGLE(var,pos) ((var)^= 1UL << (pos))
115#define BIT_WRITE(var, pos, bitvalue) ((bitvalue) ? BIT_SET((var), (pos)) : bitClear((var), (pos)))
117#define CRANK_ANGLE_MAX (max(CRANK_ANGLE_MAX_IGN, CRANK_ANGLE_MAX_INJ))
119#define interruptSafe(c) (noInterrupts(); {c} interrupts();)
121#define MICROS_PER_SEC INT32_C(1000000)
122#define MICROS_PER_MIN INT32_C(MICROS_PER_SEC*60U)
123#define MICROS_PER_HOUR INT32_C(MICROS_PER_MIN*60U)
125#define SERIAL_PORT_PRIMARY 0
126#define SERIAL_PORT_SECONDARY 3
129#define LOAD_SOURCE_MAP 0
130#define LOAD_SOURCE_TPS 1
131#define LOAD_SOURCE_IMAPEMAP 2
134#define BIT_ENGINE_RUN 0
135#define BIT_ENGINE_CRANK 1
136#define BIT_ENGINE_ASE 2
137#define BIT_ENGINE_WARMUP 3
138#define BIT_ENGINE_ACC 4
139#define BIT_ENGINE_DCC 5
140#define BIT_ENGINE_MAPACC 6
141#define BIT_ENGINE_MAPDCC 7
144#define BIT_STATUS1_INJ1 0
145#define BIT_STATUS1_INJ2 1
146#define BIT_STATUS1_INJ3 2
147#define BIT_STATUS1_INJ4 3
148#define BIT_STATUS1_DFCO 4
149#define BIT_STATUS1_BOOSTCUT 5
150#define BIT_STATUS1_TOOTHLOG1READY 6
151#define BIT_STATUS1_TOOTHLOG2READY 7
154#define BIT_STATUS2_HLAUNCH 0
155#define BIT_STATUS2_SLAUNCH 1
156#define BIT_STATUS2_HRDLIM 2
157#define BIT_STATUS2_SFTLIM 3
158#define BIT_STATUS2_BOOSTCUT 4
159#define BIT_STATUS2_ERROR 5
160#define BIT_STATUS2_IDLE 6
161#define BIT_STATUS2_SYNC 7
163#define BIT_STATUS5_FLATSH 0
164#define BIT_STATUS5_FLATSS 1
165#define BIT_STATUS5_SPARK2_ACTIVE 2
166#define BIT_STATUS5_KNOCK_ACTIVE 3
167#define BIT_STATUS5_KNOCK_PULSE 4
168#define BIT_STATUS5_UNUSED6 5
169#define BIT_STATUS5_UNUSED7 6
170#define BIT_STATUS5_UNUSED8 7
172#define BIT_TIMER_1HZ 0
173#define BIT_TIMER_4HZ 1
174#define BIT_TIMER_10HZ 2
175#define BIT_TIMER_15HZ 3
176#define BIT_TIMER_30HZ 4
177#define BIT_TIMER_50HZ 5
178#define BIT_TIMER_200HZ 6
179#define BIT_TIMER_1KHZ 7
181#define BIT_STATUS3_RESET_PREVENT 0
182#define BIT_STATUS3_NITROUS 1
183#define BIT_STATUS3_FUEL2_ACTIVE 2
184#define BIT_STATUS3_VSS_REFRESH 3
185#define BIT_STATUS3_HALFSYNC 4
186#define BIT_STATUS3_NSQUIRTS1 5
187#define BIT_STATUS3_NSQUIRTS2 6
188#define BIT_STATUS3_NSQUIRTS3 7
190#define BIT_STATUS4_WMI_EMPTY 0
191#define BIT_STATUS4_VVT1_ERROR 1
192#define BIT_STATUS4_VVT2_ERROR 2
193#define BIT_STATUS4_FAN 3
194#define BIT_STATUS4_BURNPENDING 4
195#define BIT_STATUS4_STAGING_ACTIVE 5
196#define BIT_STATUS4_COMMS_COMPAT 6
197#define BIT_STATUS4_ALLOW_LEGACY_COMMS 7
199#define BIT_AIRCON_REQUEST 0
200#define BIT_AIRCON_COMPRESSOR 1
201#define BIT_AIRCON_RPM_LOCKOUT 2
202#define BIT_AIRCON_TPS_LOCKOUT 3
203#define BIT_AIRCON_TURNING_ON 4
204#define BIT_AIRCON_CLT_LOCKOUT 5
205#define BIT_AIRCON_FAN 6
206#define BIT_AIRCON_UNUSED8 7
209#define TOOTH_LOG_SIZE 127U
211#define TOOTH_LOG_SIZE 1U
216#define O2_CALIBRATION_PAGE 2U
217#define IAT_CALIBRATION_PAGE 1U
218#define CLT_CALIBRATION_PAGE 0U
221#define COMPOSITE_LOG_PRI 0
222#define COMPOSITE_LOG_SEC 1
223#define COMPOSITE_LOG_THIRD 2
224#define COMPOSITE_LOG_TRIG 3
225#define COMPOSITE_LOG_SYNC 4
226#define COMPOSITE_ENGINE_CYCLE 5
228#define EGO_TYPE_OFF 0
229#define EGO_TYPE_NARROW 1
230#define EGO_TYPE_WIDE 2
232#define INJ_TYPE_PORT 0
233#define INJ_TYPE_TBODY 1
236#define INJ_SEMISEQUENTIAL 1
238#define INJ_SEQUENTIAL 3
240#define INJ_PAIR_13_24 0
241#define INJ_PAIR_14_23 1
243#define OUTPUT_CONTROL_DIRECT 0
244#define OUTPUT_CONTROL_MC33810 10
246#define IGN_MODE_WASTED 0U
247#define IGN_MODE_SINGLE 1U
248#define IGN_MODE_WASTEDCOP 2U
249#define IGN_MODE_SEQUENTIAL 3U
250#define IGN_MODE_ROTARY 4U
252#define SEC_TRIGGER_SINGLE 0
253#define SEC_TRIGGER_4_1 1
254#define SEC_TRIGGER_POLL 2
255#define SEC_TRIGGER_5_3_2 3
256#define SEC_TRIGGER_TOYOTA_3 4
258#define ROTARY_IGN_FC 0
259#define ROTARY_IGN_FD 1
260#define ROTARY_IGN_RX8 2
262#define BOOST_MODE_SIMPLE 0
263#define BOOST_MODE_FULL 1
265#define EN_BOOST_CONTROL_BARO 0
266#define EN_BOOST_CONTROL_FIXED 1
268#define WMI_MODE_SIMPLE 0
269#define WMI_MODE_PROPORTIONAL 1
270#define WMI_MODE_OPENLOOP 2
271#define WMI_MODE_CLOSEDLOOP 3
273#define HARD_CUT_FULL 0
274#define HARD_CUT_ROLLING 1
279#define EGO_ALGORITHM_SIMPLE 0U
280#define EGO_ALGORITHM_INVALID1 1U
281#define EGO_ALGORITHM_PID 2U
282#define EGO_ALGORITHM_NONE 3U
284#define STAGING_MODE_TABLE 0
285#define STAGING_MODE_AUTO 1
288#define NITROUS_STAGE1 1
289#define NITROUS_STAGE2 2
290#define NITROUS_BOTH 3
292#define PROTECT_CUT_OFF 0
293#define PROTECT_CUT_IGN 1
294#define PROTECT_CUT_FUEL 2
295#define PROTECT_CUT_BOTH 3
296#define PROTECT_IO_ERROR 7
301#define AE_MODE_MULTIPLIER 0
302#define AE_MODE_ADDER 1
304#define KNOCK_MODE_OFF 0U
305#define KNOCK_MODE_DIGITAL 1U
306#define KNOCK_MODE_ANALOG 2U
308#define KNOCK_TRIGGER_HIGH 0
309#define KNOCK_TRIGGER_LOW 1
311#define FUEL2_MODE_OFF 0
312#define FUEL2_MODE_MULTIPLY 1
313#define FUEL2_MODE_ADD 2
314#define FUEL2_MODE_CONDITIONAL_SWITCH 3
315#define FUEL2_MODE_INPUT_SWITCH 4
317#define SPARK2_MODE_OFF 0
318#define SPARK2_MODE_MULTIPLY 1
319#define SPARK2_MODE_ADD 2
320#define SPARK2_MODE_CONDITIONAL_SWITCH 3
321#define SPARK2_MODE_INPUT_SWITCH 4
323#define FUEL2_CONDITION_RPM 0
324#define FUEL2_CONDITION_MAP 1
325#define FUEL2_CONDITION_TPS 2
326#define FUEL2_CONDITION_ETH 3
328#define SPARK2_CONDITION_RPM 0
329#define SPARK2_CONDITION_MAP 1
330#define SPARK2_CONDITION_TPS 2
331#define SPARK2_CONDITION_ETH 3
333#define RESET_CONTROL_DISABLED 0U
334#define RESET_CONTROL_PREVENT_WHEN_RUNNING 1U
335#define RESET_CONTROL_PREVENT_ALWAYS 2U
336#define RESET_CONTROL_SERIAL_COMMAND 3U
338#define OPEN_LOOP_BOOST 0
339#define CLOSED_LOOP_BOOST 1
341#define SOFT_LIMIT_FIXED 0
342#define SOFT_LIMIT_RELATIVE 1
344#define VVT_MODE_ONOFF 0
345#define VVT_MODE_OPEN_LOOP 1
346#define VVT_MODE_CLOSED_LOOP 2
347#define VVT_LOAD_MAP 0
348#define VVT_LOAD_TPS 1
350#define MULTIPLY_MAP_MODE_OFF 0
351#define MULTIPLY_MAP_MODE_BARO 1
352#define MULTIPLY_MAP_MODE_100 2
354#define FOUR_STROKE 0U
360#define BATTV_COR_MODE_WHOLE 0
361#define BATTV_COR_MODE_OPENTIME 1
363#define INJ1_CMD_BIT 0
364#define INJ2_CMD_BIT 1
365#define INJ3_CMD_BIT 2
366#define INJ4_CMD_BIT 3
367#define INJ5_CMD_BIT 4
368#define INJ6_CMD_BIT 5
369#define INJ7_CMD_BIT 6
370#define INJ8_CMD_BIT 7
372#define IGN1_CMD_BIT 0
373#define IGN2_CMD_BIT 1
374#define IGN3_CMD_BIT 2
375#define IGN4_CMD_BIT 3
376#define IGN5_CMD_BIT 4
377#define IGN6_CMD_BIT 5
378#define IGN7_CMD_BIT 6
379#define IGN8_CMD_BIT 7
381#define ENGINE_PROTECT_BIT_RPM 0
382#define ENGINE_PROTECT_BIT_MAP 1
383#define ENGINE_PROTECT_BIT_OIL 2
384#define ENGINE_PROTECT_BIT_AFR 3
385#define ENGINE_PROTECT_BIT_COOLANT 4
388#define CALIBRATION_TABLE_SIZE 512
389#define CALIBRATION_TEMPERATURE_OFFSET 40
391#define OFFSET_FUELTRIM 127U
392#define OFFSET_IGNITION 40
394#define SERIAL_BUFFER_THRESHOLD 32
396#define LOGGER_CSV_SEPARATOR_SEMICOLON 0
397#define LOGGER_CSV_SEPARATOR_COMMA 1
398#define LOGGER_CSV_SEPARATOR_TAB 2
399#define LOGGER_CSV_SEPARATOR_SPACE 3
401#define LOGGER_DISABLED 0
403#define LOGGER_BINARY 2
405#define LOGGER_RATE_1HZ 0
406#define LOGGER_RATE_4HZ 1
407#define LOGGER_RATE_10HZ 2
408#define LOGGER_RATE_30HZ 3
410#define LOGGER_FILENAMING_OVERWRITE 0
411#define LOGGER_FILENAMING_DATETIME 1
412#define LOGGER_FILENAMING_SEQENTIAL 2
539#if defined(CORE_SAMD21)
563#define pinIsInjector(pin) ( ((pin) == pinInjector1) || ((pin) == pinInjector2) || ((pin) == pinInjector3) || ((pin) == pinInjector4) || ((pin) == pinInjector5) || ((pin) == pinInjector6) || ((pin) == pinInjector7) || ((pin) == pinInjector8) )
564#define pinIsIgnition(pin) ( ((pin) == pinCoil1) || ((pin) == pinCoil2) || ((pin) == pinCoil3) || ((pin) == pinCoil4) || ((pin) == pinCoil5) || ((pin) == pinCoil6) || ((pin) == pinCoil7) || ((pin) == pinCoil8) )
566#define pinIsSensor(pin) ( ((pin) == pinCLT) || ((pin) == pinIAT) || ((pin) == pinMAP) || ((pin) == pinTPS) || ((pin) == pinO2) || ((pin) == pinBat) || (((pin) == pinFlex) && (configPage2.flexEnabled != 0)) )
893#define IDLEADVANCE_MODE_OFF 0U
894#define IDLEADVANCE_MODE_ADDED 1U
895#define IDLEADVANCE_MODE_SWITCHED 2U
897#define IDLEADVANCE_ALGO_TPS 0U
898#define IDLEADVANCE_ALGO_CTPS 1U
1099#if defined(CORE_AVR)
1180#if defined(CORE_AVR)
1364#if defined(CORE_AVR)
1425#if defined(CORE_AVR)
1475#if defined(CORE_AVR)
1557#ifdef USE_SPI_EEPROM
volatile PINMASK_TYPE pump_pin_mask
Definition globals.cpp:97
static bool HasAnySync(const statuses &status)
Definition globals.h:709
byte pinTrigger3
the 2nd cam sensor pin
Definition globals.cpp:173
byte pinStepperEnable
Definition globals.cpp:214
volatile uint16_t ignitionCount
Definition globals.cpp:123
byte pinMC33810_2_CS
Definition globals.cpp:227
int CRANK_ANGLE_MAX_IGN
Definition globals.cpp:133
int CRANK_ANGLE_MAX_INJ
The number of crank degrees that the system track over. 360 for wasted / timed batch and 720 for sequ...
Definition globals.cpp:134
byte pinVSS
Definition globals.cpp:218
struct table2D PrimingPulseTable
4 bin Priming pulsewidth map (2D)
Definition globals.cpp:35
byte pinSpareLOut4
Definition globals.cpp:206
byte pinSpareLOut2
Definition globals.cpp:204
byte pinFuelPump
Definition globals.cpp:185
byte pinSpareOut6
Definition globals.cpp:200
byte pinCoil4
Pin for coil 4.
Definition globals.cpp:164
volatile PORT_TYPE * inj7_pin_port
Definition globals.cpp:72
volatile PINMASK_TYPE ign7_pin_mask
Definition globals.cpp:90
struct table3d8RpmLoad stagingTable
8x8 fuel staging table
Definition globals.cpp:15
struct table2D flexFuelTable
6 bin flex fuel correction table for fuel adjustments (2D)
Definition globals.cpp:47
struct table2D fuelTempTable
6 bin flex fuel correction table for fuel adjustments (2D)
Definition globals.cpp:50
struct table2D flexBoostTable
6 bin flex fuel correction table for boost adjustments (2D)
Definition globals.cpp:49
byte pinTrigger2
RPM2 (Typically the Cam Sensor) pin.
Definition globals.cpp:172
volatile PORT_TYPE * inj4_pin_port
Definition globals.cpp:66
byte pinTPS
Definition globals.cpp:174
uint16_t o2Calibration_bins[32]
Definition globals.cpp:255
byte injectorOutputControl
Definition globals.cpp:159
byte maxIgnOutputs
Definition globals.cpp:141
volatile PINMASK_TYPE ign2_pin_mask
Definition globals.cpp:80
struct statuses currentStatus
Definition auxiliaries.cpp:77
trimTable3d trim5Table
6x6 Fuel trim 5 map
Definition globals.cpp:25
const byte data_structure_version
Definition globals.cpp:8
volatile PORT_TYPE * flex_pin_port
Definition globals.cpp:99
byte pinFan
Cooling fan output (on/off? See: auxiliaries.ino)
Definition globals.cpp:211
volatile byte TIMER_mask
Definition globals.cpp:147
struct table2D fanPWMTable
Definition globals.cpp:56
struct table2D o2CalibrationTable
Definition globals.cpp:257
trimTable3d trim3Table
6x6 Fuel trim 3 map
Definition globals.cpp:23
byte pinBat
Definition globals.cpp:182
volatile uint32_t seclx10
Definition globals.cpp:136
byte pinTachOut
Definition globals.cpp:184
volatile PINMASK_TYPE inj5_pin_mask
Definition globals.cpp:69
byte pinO2_2
Definition globals.cpp:181
volatile PINMASK_TYPE flex_pin_mask
Definition globals.cpp:100
volatile PORT_TYPE * inj1_pin_port
volatile inj*_pin_port and inj*_pin_mask vars are for the direct port manipulation of the injectors,...
Definition globals.cpp:60
volatile PORT_TYPE * tach_pin_port
Definition globals.cpp:94
byte pinVVT_2
vvt (variable valve timing) output 2
Definition globals.cpp:210
struct table3d8RpmLoad vvt2Table
8x8 vvt2 map
Definition globals.cpp:19
struct table2D iatCalibrationTable
Definition globals.cpp:254
volatile unsigned int toothHistoryIndex
Current index to toothHistory array.
Definition globals.cpp:121
trimTable3d trim4Table
6x6 Fuel trim 4 map
Definition globals.cpp:24
byte pinAirConComp
Definition globals.cpp:232
struct table2D flexAdvTable
6 bin flex fuel correction table for timing advance (2D)
Definition globals.cpp:48
volatile PORT_TYPE * inj5_pin_port
Definition globals.cpp:68
volatile PINMASK_TYPE ign6_pin_mask
Definition globals.cpp:88
unsigned long currentLoopTime
Definition globals.cpp:122
volatile PINMASK_TYPE ign4_pin_mask
Definition globals.cpp:84
byte ignitionOutputControl
Definition globals.cpp:169
byte pinAirConFan
Definition globals.cpp:233
volatile uint32_t runSecsX10
Definition globals.cpp:135
volatile PINMASK_TYPE inj8_pin_mask
Definition globals.cpp:75
#define TOOTH_LOG_SIZE
Definition globals.h:209
uint16_t fixedCrankingOverride
Definition globals.cpp:116
struct table3d16RpmLoad afrTable
16x16 afr target map
Definition globals.cpp:14
volatile PORT_TYPE * inj2_pin_port
Definition globals.cpp:62
byte pinInjector3
Output pin injector 3.
Definition globals.cpp:153
byte pinInjector2
Output pin injector 2.
Definition globals.cpp:152
struct table2D idleAdvanceTable
6 bin idle advance adjustment table based on RPM difference (2D)
Definition globals.cpp:44
volatile byte HWTest_IGN_Pulsed
Definition globals.cpp:140
byte fpPrimeTime
The time (in seconds, based on statuses::secl) that the fuel pump started priming.
Definition globals.cpp:110
struct table3d16RpmLoad ignitionTable2
16x16 ignition map
Definition globals.cpp:13
volatile PORT_TYPE * ign8_pin_port
Definition globals.cpp:91
byte pinCTPS
Definition globals.cpp:190
byte pinMAP
Definition globals.cpp:175
byte pinCoil5
Pin for coil 5.
Definition globals.cpp:165
volatile PINMASK_TYPE inj4_pin_mask
Definition globals.cpp:67
MAPSamplingMethod
Definition globals.h:716
@ MAPSamplingCycleMinimum
Definition globals.h:719
@ MAPSamplingInstantaneous
Definition globals.h:717
@ MAPSamplingCycleAverage
Definition globals.h:718
@ MAPSamplingIgnitionEventAverage
Definition globals.h:720
bool pinIsOutput(byte pin)
Definition globals.cpp:260
byte pinWMIEnabled
Definition globals.cpp:225
byte maxInjOutputs
Definition globals.cpp:142
byte pinResetControl
Definition globals.cpp:220
byte secondaryTriggerEdge
Definition globals.cpp:130
byte pinSpareOut5
Definition globals.cpp:199
byte pinBoost
Definition globals.cpp:208
volatile PINMASK_TYPE ign5_pin_mask
Definition globals.cpp:86
byte resetControl
resetControl needs to be here (as global) because using the config page (4) directly can prevent burn...
Definition globals.cpp:145
byte pinIdleUp
Definition globals.cpp:188
byte pinIgnBypass
Definition globals.cpp:216
byte pinSpareTemp2
Definition globals.cpp:194
byte pinSpareOut3
Definition globals.cpp:197
byte pinCoil3
Pin for coil 3.
Definition globals.cpp:163
struct table2D knockWindowStartTable
Definition globals.cpp:51
volatile PORT_TYPE * pump_pin_port
Definition globals.cpp:96
volatile byte HWTest_INJ
Definition globals.cpp:137
byte pinBaro
Definition globals.cpp:219
byte pinCoil8
Pin for coil 8.
Definition globals.cpp:168
uint8_t o2Calibration_values[32]
Definition globals.cpp:256
#define BIT_CHECK(var, pos)
Definition globals.h:113
volatile PORT_TYPE * ign5_pin_port
Definition globals.cpp:85
byte pinCLT
Definition globals.cpp:179
struct table3d16RpmLoad fuelTable2
16x16 fuel map
Definition globals.cpp:11
byte pinLaunch
Definition globals.cpp:215
struct table2D crankingEnrichTable
4 bin cranking Enrichment map (2D)
Definition globals.cpp:36
volatile PORT_TYPE * ign7_pin_port
Definition globals.cpp:89
uint16_t iatCalibration_bins[32]
Definition globals.cpp:252
trimTable3d trim6Table
6x6 Fuel trim 6 map
Definition globals.cpp:26
byte pinEMAP
Definition globals.cpp:176
struct table2D ASECountTable
4 bin After Start duration map (2D)
Definition globals.cpp:34
byte pinO2
Definition globals.cpp:180
byte pinTrigger
RPM1 (Typically CAS=crankshaft angle sensor) pin.
Definition globals.cpp:171
struct table2D CLTAdvanceTable
6 bin ignition adjustment based on coolant temperature (2D)
Definition globals.cpp:45
byte pinInjector6
Output pin injector 6.
Definition globals.cpp:156
struct table2D dwellVCorrectionTable
6 bin dwell voltage correction (2D)
Definition globals.cpp:37
byte pinStepperDir
Definition globals.cpp:212
byte pinSpareTemp1
Definition globals.cpp:193
byte pinSpark2Input
Definition globals.cpp:192
struct table2D oilPressureProtectTable
Definition globals.cpp:53
byte pinFlex
Definition globals.cpp:217
#define BIT_STATUS3_HALFSYNC
Definition globals.h:185
struct table2D injectorVCorrectionTable
6 bin injector voltage correction (2D)
Definition globals.cpp:38
byte pinCoil1
Pin for coil 1.
Definition globals.cpp:161
byte pinIAT
Definition globals.cpp:178
byte pinWMIEmpty
Definition globals.cpp:223
byte pinSpareHOut2
Definition globals.cpp:202
struct config15 configPage15
Definition globals.cpp:243
struct table3d8RpmLoad wmiTable
8x8 wmi map
Definition globals.cpp:20
byte pinInjector1
Various pin numbering (Injectors, Ign outputs, CAS, Cam, Sensors. etc.) assignments.
Definition globals.cpp:151
struct config10 configPage10
Definition globals.cpp:241
volatile byte LOOP_TIMER
Definition globals.cpp:148
volatile PORT_TYPE * inj6_pin_port
Definition globals.cpp:70
volatile PORT_TYPE * triggerSec_pin_port
Definition globals.cpp:104
byte pinWMIIndicator
Definition globals.cpp:224
byte pinSpareLOut1
Definition globals.cpp:203
byte pinInjector5
Output pin injector 5.
Definition globals.cpp:155
static bool HasAnySyncUnsafe(const statuses &status)
Non-atomic version of HasAnySync. **Should only be called in an ATOMIC() block***.
Definition globals.h:705
byte pinStepperStep
Definition globals.cpp:213
volatile unsigned long timer5_overflow_count
Definition globals.cpp:114
trimTable3d trim7Table
6x6 Fuel trim 7 map
Definition globals.cpp:27
struct table2D knockWindowDurationTable
Definition globals.cpp:52
byte pinSpareLOut5
Definition globals.cpp:207
byte pinSpareOut4
Definition globals.cpp:198
byte pinIdle1
Definition globals.cpp:186
volatile PINMASK_TYPE inj6_pin_mask
Definition globals.cpp:71
volatile byte HWTest_IGN
Definition globals.cpp:139
struct table3d4RpmLoad dwellTable
4x4 Dwell map
Definition globals.cpp:29
byte pinDisplayReset
Definition globals.cpp:183
struct table2D wmiAdvTable
Definition globals.cpp:54
byte pinVVT_1
vvt (variable valve timing) output 1
Definition globals.cpp:209
struct table3d8RpmLoad boostTable
8x8 boost map
Definition globals.cpp:16
struct config9 configPage9
Definition globals.cpp:240
struct table2D rotarySplitTable
8 bin ignition split curve for rotary leading/trailing (2D)
Definition globals.cpp:46
volatile PINMASK_TYPE inj3_pin_mask
Definition globals.cpp:65
struct table2D IATDensityCorrectionTable
9 bin inlet air temperature density correction (2D)
Definition globals.cpp:40
struct table2D IATRetardTable
6 bin ignition adjustment based on inlet air temperature (2D)
Definition globals.cpp:42
struct table2D coolantProtectTable
Definition globals.cpp:55
struct table2D injectorAngleTable
4 bin injector angle curve (2D)
Definition globals.cpp:39
volatile PORT_TYPE * ign3_pin_port
Definition globals.cpp:81
uint8_t softLimitTime
Definition globals.cpp:111
struct table2D taeTable
4 bin TPS Acceleration Enrichment map (2D)
Definition globals.cpp:30
byte pinIdle2
Definition globals.cpp:187
struct table3d16RpmLoad fuelTable
16x16 fuel map
Definition globals.cpp:10
volatile PINMASK_TYPE triggerThird_pin_mask
Definition globals.cpp:107
volatile PINMASK_TYPE triggerPri_pin_mask
Definition globals.cpp:103
volatile PINMASK_TYPE triggerSec_pin_mask
Definition globals.cpp:105
volatile PORT_TYPE * inj3_pin_port
Definition globals.cpp:64
volatile PORT_TYPE * inj8_pin_port
Definition globals.cpp:74
uint16_t cltCalibration_values[32]
Definition globals.cpp:250
byte pinSpareOut1
Definition globals.cpp:195
volatile byte HWTest_INJ_Pulsed
Definition globals.cpp:138
const char TSfirmwareVersion[]
Definition globals.cpp:6
byte pinCoil6
Pin for coil 6.
Definition globals.cpp:166
volatile uint8_t compositeLogHistory[TOOTH_LOG_SIZE]
Definition globals.cpp:120
byte pinInjector8
Output pin injector 8.
Definition globals.cpp:158
struct table2D maeTable
Definition globals.cpp:31
byte pinInjector7
Output pin injector 7.
Definition globals.cpp:157
volatile PINMASK_TYPE inj7_pin_mask
Definition globals.cpp:73
byte pinAirConRequest
Definition globals.cpp:234
struct config13 configPage13
Definition globals.cpp:242
byte pinSpareLOut3
Definition globals.cpp:205
volatile unsigned long ms_counter
Definition globals.cpp:115
byte primaryTriggerEdge
Definition globals.cpp:129
struct config6 configPage6
Definition globals.cpp:239
volatile uint16_t mainLoopCount
Definition globals.cpp:112
byte pinMAP2
Definition globals.cpp:177
byte pinSpareOut2
Definition globals.cpp:196
struct table2D idleTargetTable
10 bin idle target table for idle timing (2D)
Definition globals.cpp:43
struct config2 configPage2
Definition globals.cpp:237
byte pinMC33810_1_CS
Definition globals.cpp:226
volatile PORT_TYPE * ign2_pin_port
Definition globals.cpp:79
struct table3d8RpmLoad boostTableLookupDuty
8x8 boost map lookup table
Definition globals.cpp:17
byte pinFuel2Input
Definition globals.cpp:191
volatile PORT_TYPE * ign4_pin_port
Definition globals.cpp:83
byte pinFuelPressure
Definition globals.cpp:221
byte pinSDEnable
Definition globals.cpp:228
volatile uint32_t toothHistory[TOOTH_LOG_SIZE]
Tooth trigger history - delta time (in uS) from last tooth (Indexed by toothHistoryIndex)
Definition globals.cpp:119
volatile PINMASK_TYPE inj2_pin_mask
Definition globals.cpp:63
volatile PINMASK_TYPE ign1_pin_mask
Definition globals.cpp:78
bool pinIsUsed(byte pin)
Definition globals.cpp:313
trimTable3d trim2Table
6x6 Fuel trim 2 map
Definition globals.cpp:22
uint16_t cltCalibration_bins[32]
Definition globals.cpp:249
struct config4 configPage4
Definition globals.cpp:238
volatile PINMASK_TYPE tach_pin_mask
Definition globals.cpp:95
byte tertiaryTriggerEdge
Definition globals.cpp:131
volatile PORT_TYPE * ign6_pin_port
Definition globals.cpp:87
byte pinCoil2
Pin for coil 2.
Definition globals.cpp:162
byte pinSpareHOut1
Definition globals.cpp:201
volatile PINMASK_TYPE ign3_pin_mask
Definition globals.cpp:82
volatile PINMASK_TYPE ign8_pin_mask
Definition globals.cpp:92
byte pinOilPressure
Definition globals.cpp:222
volatile PORT_TYPE * triggerThird_pin_port
Definition globals.cpp:106
volatile PORT_TYPE * ign1_pin_port
Definition globals.cpp:77
byte pinIdleUpOutput
Definition globals.cpp:189
struct table2D WUETable
10 bin Warm Up Enrichment map (2D)
Definition globals.cpp:32
volatile PORT_TYPE * triggerPri_pin_port
Definition globals.cpp:102
byte pinInjector4
Output pin injector 4.
Definition globals.cpp:154
struct table2D cltCalibrationTable
Definition globals.cpp:251
struct table3d16RpmLoad ignitionTable
16x16 ignition map
Definition globals.cpp:12
volatile PINMASK_TYPE inj1_pin_mask
Definition globals.cpp:61
byte pinCoil7
Pin for coil 7.
Definition globals.cpp:167
trimTable3d trim1Table
6x6 Fuel trim 1 map
Definition globals.cpp:21
struct table2D rollingCutTable
Definition globals.cpp:57
uint16_t iatCalibration_values[32]
Definition globals.cpp:253
struct table2D ASETable
4 bin After Start Enrichment map (2D)
Definition globals.cpp:33
uint32_t revolutionTime
Definition globals.cpp:113
table3d6RpmLoad trimTable3d
Definition globals.h:430
trimTable3d trim8Table
6x6 Fuel trim 8 map
Definition globals.cpp:28
struct table2D baroFuelTable
8 bin baro correction curve (2D)
Definition globals.cpp:41
struct table3d8RpmLoad vvtTable
8x8 vvt map
Definition globals.cpp:18
static uint32_t rshift(uint32_t a)
Bitwise right shift - generic, unoptimized, case.
Definition bit_shifts.h:349
Definition globals.h:1372
uint8_t firstCompType
First cmp. op (COMPARATOR_* ops, see below)
Definition globals.h:1373
uint8_t bitwise
BITWISE_AND, BITWISE_OR, BITWISE_XOR.
Definition globals.h:1375
uint8_t secondCompType
Second cmp. op (0=COMPARATOR_EQUAL, 1=COMPARATOR_NOT_EQUAL,2=COMPARATOR_GREATER,3=COMPARATOR_GREATER_...
Definition globals.h:1374
Definition globals.h:1190
byte vvtCLKP
Definition globals.h:1286
byte rotaryType
Definition globals.h:1195
byte n2o_maxAFR
Definition globals.h:1224
byte fuelTempValues[6]
Definition globals.h:1343
int16_t flexBoostAdj[6]
Definition globals.h:1209
int8_t wmiOffset
Definition globals.h:1321
byte EMAPPin
Definition globals.h:1198
byte knock_window_angle[6]
Definition globals.h:1260
byte knock_maxRetard
Definition globals.h:1263
byte wmiAdvEnabled
Definition globals.h:1314
byte crankingEnrichValues[4]
Definition globals.h:1192
byte fuel2InputPolarity
Definition globals.h:1282
byte vvt2Pin
Definition globals.h:1338
byte fuel2InputPin
Definition globals.h:1281
byte rotarySplitValues[8]
Definition globals.h:1200
byte oilPressureProtRPM[4]
Definition globals.h:1308
byte spark2SwitchVariable
Definition globals.h:1348
uint16_t stagedInjSizeSec
Definition globals.h:1206
byte oilPressurePin
Definition globals.h:1298
byte spark2Mode
Definition globals.h:1347
byte crankingEnrichTaper
Definition globals.h:1293
byte wmiIAT
Definition globals.h:1320
int8_t fuelPressureMin
Definition globals.h:1303
byte wmiEmptyPolarity
Definition globals.h:1329
uint16_t fuel2SwitchValue
Definition globals.h:1278
byte oilPressureProtEnbl
Definition globals.h:1297
byte unused11_165
Definition globals.h:1301
byte knock_window_rpms[6]
Definition globals.h:1259
byte wmiEnabledPin
Definition globals.h:1331
byte n2o_stage1_retard
Definition globals.h:1234
byte fuelPressureEnable
Enable fuel pressure sensing from an analog pin (pinFuelPressure)
Definition globals.h:1295
uint8_t vvtCLMinAng
Definition globals.h:1290
uint16_t stagedInjSizePri
Definition globals.h:1205
byte fuel2Algorithm
Definition globals.h:1273
byte n2o_stage1_adderMin
Definition globals.h:1232
uint16_t spark2SwitchValue
Definition globals.h:1351
uint8_t flexAdvAdj[6]
Definition globals.h:1213
uint8_t vvtCLMaxAng
Definition globals.h:1291
byte n2o_stage2_unused
Definition globals.h:1238
byte knock_recoveryStepTime
Definition globals.h:1269
byte oilPressureProtTime
Definition globals.h:1359
uint8_t flexAdvBins[6]
Definition globals.h:1212
byte vvtCLholdDuty
Definition globals.h:1285
byte knock_window_dur[6]
Definition globals.h:1261
int8_t oilPressureMin
Definition globals.h:1305
byte knock_trigger
Definition globals.h:1250
byte fuelPressureMax
Definition globals.h:1304
byte knock_firstStep
Definition globals.h:1264
byte fuelTempBins[6]
Definition globals.h:1342
byte n2o_stage2_maxRPM
Definition globals.h:1240
byte wmiTPS
Definition globals.h:1316
byte wmiAdvBins[6]
Definition globals.h:1333
byte knock_unused
Definition globals.h:1253
int16_t vvtCL0DutyAng
Definition globals.h:1289
uint8_t flexFuelAdj[6]
Definition globals.h:1211
byte boostIntv
Definition globals.h:1203
byte n2o_stage2_pin
Definition globals.h:1237
byte wmiIndicatorEnabled
Definition globals.h:1323
byte crankingEnrichBins[4]
Definition globals.h:1191
byte n2o_stage1_unused
Definition globals.h:1229
byte lnchCtrlTPS
Definition globals.h:1218
byte knock_stepSize
Definition globals.h:1265
byte oilPressureMax
Definition globals.h:1306
byte spark2InputPin
Definition globals.h:1354
byte fuel2SwitchVariable
Definition globals.h:1275
byte wmiRPM
Definition globals.h:1317
byte n2o_stage2_adderMin
Definition globals.h:1241
byte vvtCLKI
Definition globals.h:1287
byte knock_threshold
Definition globals.h:1256
byte n2o_stage1_adderMax
Definition globals.h:1233
byte knock_pin
Definition globals.h:1247
byte knock_pullup
Definition globals.h:1251
byte n2o_stage1_minRPM
Definition globals.h:1230
byte n2o_minTPS
Definition globals.h:1223
byte vvt2Enabled
Definition globals.h:1339
uint16_t boostSens
Definition globals.h:1204
byte rotarySplitBins[8]
Definition globals.h:1201
byte knock_duration
Definition globals.h:1268
byte wmiMAP2
Definition globals.h:1319
byte spark2Algorithm
Definition globals.h:1346
byte n2o_stage1_pin
Definition globals.h:1227
byte vvtCLminDuty
Definition globals.h:1336
byte n2o_stage2_adderMax
Definition globals.h:1242
byte n2o_pin_polarity
Definition globals.h:1228
byte oilPressureEnable
Enable oil pressure sensing from an analog pin (pinOilPressure)
Definition globals.h:1296
byte lnchCtrlVss
Definition globals.h:1362
byte wmiAdvAdj[6]
Definition globals.h:1334
byte n2o_maxMAP
Definition globals.h:1222
byte knock_count
Definition globals.h:1254
byte n2o_minCLT
Definition globals.h:1221
byte n2o_enable
Definition globals.h:1219
byte knock_recoveryStep
Definition globals.h:1270
byte n2o_stage1_maxRPM
Definition globals.h:1231
byte n2o_arming_pin
Definition globals.h:1220
uint8_t flexFuelBins[6]
Definition globals.h:1210
byte wmiEnabled
Definition globals.h:1311
byte wmiMode
Definition globals.h:1312
byte n2o_stage2_retard
Definition globals.h:1243
byte n2o_stage2_minRPM
Definition globals.h:1239
byte knock_stepTime
Definition globals.h:1266
byte knock_maxMAP
Definition globals.h:1257
byte oilPressureProtMins[4]
Definition globals.h:1309
byte fuel2Mode
Definition globals.h:1274
byte wmiEmptyEnabled
Definition globals.h:1327
byte stagingMode
Definition globals.h:1197
byte TrigEdgeThrd
Definition globals.h:1340
byte fuel2InputPullup
Definition globals.h:1283
uint8_t flexBoostBins[6]
Definition globals.h:1208
byte knock_limiterDisable
Definition globals.h:1252
byte wmiIndicatorPolarity
Definition globals.h:1325
byte wmiMAP
Definition globals.h:1318
byte wmiEmptyPin
Definition globals.h:1328
byte stagingEnabled
Definition globals.h:1196
byte knock_mode
Definition globals.h:1246
byte knock_maxRPM
Definition globals.h:1258
byte spark2InputPullup
Definition globals.h:1356
byte wmiIndicatorPin
Definition globals.h:1324
byte vvtCLKD
Definition globals.h:1288
byte spark2InputPolarity
Definition globals.h:1355
byte fuelPressurePin
Definition globals.h:1300
byte vvtCLmaxDuty
Definition globals.h:1337
Definition globals.h:1382
byte onboard_log_tr3_thr_RPM
Definition globals.h:1413
byte onboard_log_tr4_thr_off
Definition globals.h:1418
int16_t secondTarget[8]
second target value to compare with bitwise op
Definition globals.h:1392
byte onboard_log_tr3_thr_AFR
Definition globals.h:1416
byte onboard_log_file_style
Definition globals.h:1401
byte hwTestInjDuration
Definition globals.h:1423
int16_t firstTarget[8]
first target value to compare with numeric comp
Definition globals.h:1391
byte onboard_log_tr3_thr_Oil
Definition globals.h:1415
byte onboard_log_trigger_RPM
Definition globals.h:1406
byte onboard_log_file_rate
Definition globals.h:1402
byte onboard_log_storage
Definition globals.h:1404
byte onboard_log_filenaming
Definition globals.h:1403
struct cmpOperation operation[8]
I/O variable comparison operations (See cmpOperation)
Definition globals.h:1394
byte hwTestIgnDuration
Definition globals.h:1422
uint8_t kindOfLimiting
Select which kind of output limiting are active (0 - minimum | 1 - maximum)
Definition globals.h:1384
byte onboard_log_tr3_thr_MAP
Definition globals.h:1414
byte onboard_log_tr4_thr_on
Definition globals.h:1417
byte onboard_log_tr2_thr_off
Definition globals.h:1412
byte onboard_log_tr2_thr_on
Definition globals.h:1411
byte onboard_log_trigger_boot
Definition globals.h:1405
byte onboard_log_tr5_Epin_pin
Definition globals.h:1419
uint8_t outputInverted
Invert (on/off) value before writing to output pin (for all programmable I/O:s).
Definition globals.h:1383
byte unused12_106_116[10]
Definition globals.h:1398
byte onboard_log_csv_separator
Definition globals.h:1400
uint8_t outputDelay[8]
Output write delay for each programmable I/O (Unit: 0.1S)
Definition globals.h:1386
byte onboard_log_trigger_Epin
Definition globals.h:1409
uint8_t firstDataIn[8]
Set of first I/O vars to compare.
Definition globals.h:1387
byte unused13_125_2
Definition globals.h:1420
uint16_t candID[8]
Actual CAN ID need 16bits, this is a placeholder.
Definition globals.h:1396
byte onboard_log_trigger_Vbat
Definition globals.h:1408
uint8_t outputPin[8]
Disable(0) or enable (set to valid pin number) Programmable Pin (output/target pin to set)
Definition globals.h:1385
uint8_t secondDataIn[8]
Set of second I/O vars to compare.
Definition globals.h:1388
uint8_t unused_13[8]
Definition globals.h:1390
byte onboard_log_trigger_prot
Definition globals.h:1407
uint8_t outputTimeLimit[8]
Output delay for each programmable I/O, kindOfLimiting bit dependent(Unit: 0.1S)
Definition globals.h:1389
uint16_t onboard_log_tr1_duration
Definition globals.h:1410
Definition globals.h:1435
byte airConMaxRPMdiv100
Definition globals.h:1457
byte airConUnused1
Definition globals.h:1448
byte airConPwmFanMinDuty
Definition globals.h:1467
byte airConFanPin
Definition globals.h:1464
byte airConEnable
Definition globals.h:1442
byte boostControlEnable
Definition globals.h:1436
byte airConClTempCut
Definition globals.h:1458
byte airConIdleSteps
Definition globals.h:1459
byte airConTurnsFanOn
Definition globals.h:1445
byte unused15_1
Definition globals.h:1437
byte airConFanPol
Definition globals.h:1447
byte airConIdleUpRPMAdder
Definition globals.h:1466
byte airConTPSCutTime
Definition globals.h:1460
byte airConReqPol
Definition globals.h:1444
byte airConFanEnabled
Definition globals.h:1446
byte airConTPSCut
Definition globals.h:1455
int8_t rollingProtRPMDelta[4]
Definition globals.h:1469
byte airConAfterStartDelay
Definition globals.h:1462
byte airConReqPin
Definition globals.h:1453
byte airConUnused3
Definition globals.h:1454
byte airConMinRPMdiv10
Definition globals.h:1456
byte rollingProtCutPercent[4]
Definition globals.h:1470
byte airConCompOnDelay
Definition globals.h:1461
byte airConRPMCutTime
Definition globals.h:1463
byte Unused15_106_255[150]
Definition globals.h:1473
byte boostDCWhenDisabled
Definition globals.h:1438
byte boostControlEnableThreshold
Definition globals.h:1439
byte airConUnused4
Definition globals.h:1465
byte airConCompPin
Definition globals.h:1451
byte airConUnused2
Definition globals.h:1452
byte airConCompPol
Definition globals.h:1443
byte aeColdTaperMax
AE cold modifier, taper end temp (no modifier applied, was primePulse in early versions)
Definition globals.h:790
byte aseCount[4]
Afterstart enrichment cycles. This is the number of ignition cycles that the afterstart enrichment % ...
Definition globals.h:831
byte displayB1
Definition globals.h:754
byte divider
Definition globals.h:758
byte injTiming
Injector timing (aka. injector staging) 0=simultaneous, 1=alternating.
Definition globals.h:759
byte idleUpOutputPin
Definition globals.h:868
byte tpsMax
Definition globals.h:797
byte iacRPMlimitHysteresis
Definition globals.h:874
byte fanEnable
Fan mode. 0=Off, 1=On/Off, 2=PWM.
Definition globals.h:827
byte wueValues[10]
Warm up enrichment array (10 bytes, transferred to WUETable)
Definition globals.h:741
byte dfcoMinCLT
Definition globals.h:851
byte crkngAddCLTAdv
Definition globals.h:760
byte fuelAlgorithm
Fuel algorithm - 0=Manifold pressure/MAP (LOAD_SOURCE_MAP, default, proven), 1=Throttle/TPS (LOAD_SOU...
Definition globals.h:775
byte iacCLminValue
Definition globals.h:814
MAPSamplingMethod mapSample
MAP sampling method (0=Instantaneous, 1=Cycle Average, 2=Cycle Minimum, 4=Ign. event average,...
Definition globals.h:769
byte tachoPin
Custom pin setting for tacho output (if != 0, override copied to pinTachOut, which defaults to board ...
Definition globals.h:744
byte idleUpPin
Definition globals.h:806
byte useDwellMap
Setting to change between fixed dwell value and dwell map (0=Fixed value from configPage4....
Definition globals.h:826
byte fanWhenCranking
Set whether the fan output will stay on when the engine is cranking (0=force off, 1=allow on)
Definition globals.h:825
byte strokes
Engine cycle type: four-stroke (0) / two-stroke (1)
Definition globals.h:770
byte maeMinChange
Definition globals.h:751
uint16_t vssPulsesPerKm
VSS (Vehicle speed sensor) pulses per Km.
Definition globals.h:857
byte dfcoEnabled
Whether or not DFCO (deceleration fuel cut-off) is turned on.
Definition globals.h:788
byte multiplyMAP
MAP value processing: 0 = off, 1 = div by currentStatus.baro, 2 = div by 100 (to gain usable value)
Definition globals.h:740
byte taeMinChange
Definition globals.h:750
byte rtc_mode
Definition globals.h:828
byte aeTaperMin
Definition globals.h:811
uint16_t EMAPMax
Definition globals.h:822
byte mapSwitchPoint
Definition globals.h:878
byte injAngRPM[4]
Definition globals.h:847
byte idleUpOutputInv
Definition globals.h:867
byte crankingPct
Cranking enrichment (See config10, updates.ino)
Definition globals.h:742
byte flexFreqLow
Definition globals.h:792
byte tpsMin
Definition globals.h:796
byte idleAdvVss
Definition globals.h:877
byte vssPin
VSS (Vehicle speed sensor) pin number.
Definition globals.h:855
byte iacTPSlimit
Definition globals.h:873
byte idleUpOutputEnabled
Definition globals.h:866
byte CTPSEnabled
Definition globals.h:838
uint16_t vssRatio4
Definition globals.h:862
byte reqFuel
Definition globals.h:757
uint16_t mapMax
Definition globals.h:799
byte fanWhenOff
Allow running fan with engine off: 0 = Only run fan when engine is running, 1 = Allow even with engin...
Definition globals.h:824
byte aeApplyMode
Acceleration enrichment calc mode: 0 = Multiply | 1 = Add (AE_MODE_ADDER)
Definition globals.h:739
byte idleAdvRPM
Definition globals.h:844
byte legacyMAP
Legacy MAP reading behaviour.
Definition globals.h:783
byte flexFreqHigh
Definition globals.h:793
byte injLayout
Definition globals.h:785
byte aseTaperTime
Definition globals.h:732
byte baroCorr
Definition globals.h:784
byte asePct[4]
Afterstart enrichment values (%)
Definition globals.h:830
byte idleUpAdder
Definition globals.h:810
byte fpPrime
Time (In seconds) that the fuel pump should be primed for on power up.
Definition globals.h:800
uint16_t vssRatio5
Definition globals.h:863
byte dutyLim
Definition globals.h:791
byte SoftLimitMode
Definition globals.h:737
uint16_t oddfire3
The ATDC angle of channel 3 for oddfire.
Definition globals.h:803
byte CTPSPin
Definition globals.h:836
byte boostMaxDuty
Definition globals.h:795
byte maeThresh
Definition globals.h:747
uint16_t injAng[4]
Definition globals.h:766
byte aeTime
Definition globals.h:749
byte aeColdPct
Definition globals.h:733
byte idleUpPolarity
Definition globals.h:807
byte canWBO
Definition globals.h:882
uint16_t oddfire4
The ATDC angle of channel 4 for oddfire.
Definition globals.h:804
byte aeColdTaperMin
Definition globals.h:734
byte pinMapping
The board / ping mapping number / id to be used (See: setPinMapping in init.ino)
Definition globals.h:743
byte vssMode
VSS (Vehicle speed sensor) mode (0=none, 1=CANbus, 2,3=Interrupt driven)
Definition globals.h:854
byte idleAdvAlgorithm
Definition globals.h:841
byte nCylinders
Number of cylinders.
Definition globals.h:772
byte useTachoSweep
Definition globals.h:738
int8_t baroMin
Definition globals.h:818
byte vssSmoothing
Definition globals.h:858
byte tachoSweepMaxRPM
Definition globals.h:870
int8_t EMAPMin
Definition globals.h:821
byte taeThresh
Definition globals.h:748
uint16_t vssRatio2
Definition globals.h:860
byte nInjectors
Number of injectors.
Definition globals.h:777
byte stoich
Stoichiometric ratio (x10, so e.g. 14.7 => 147)
Definition globals.h:801
byte boostMinDuty
Definition globals.h:816
byte iacCLmaxValue
Definition globals.h:815
byte injType
Injector type 0=Port (INJ_TYPE_PORT), 1=Throttle Body / TBI (INJ_TYPE_TBODY)
Definition globals.h:771
byte engineType
Engine crank/ign phasing type: 0=even fire, 1=odd fire.
Definition globals.h:781
uint16_t vssRatio3
Definition globals.h:861
byte idleAdvTPS
Definition globals.h:845
byte ignAlgorithm
Definition globals.h:763
byte fixAngEnable
Whether fixed/locked timing is enabled (0=disable, 1=enable, See configPage4.FixAng)
Definition globals.h:776
byte aseBins[4]
Afterstart enrichment temperatures (x-axis) for (target) enrichment values.
Definition globals.h:832
byte flexEnabled
Enable Flex fuel sensing (pin / interrupt)
Definition globals.h:782
byte battVCorMode
Definition globals.h:736
byte CTPSPolarity
Definition globals.h:837
byte tachoDiv
Whether to change the tacho speed ("half speed tacho" ?)
Definition globals.h:745
byte idleAdvEnabled
Definition globals.h:840
byte incorporateAFR
Enable AFR target (stoich/afrtgt) compensation in PW calculation.
Definition globals.h:829
byte indInjAng
Definition globals.h:764
int8_t mapMin
Definition globals.h:798
int8_t rtc_trim
Definition globals.h:876
byte idleUpEnabled
Definition globals.h:808
byte unused1_126_1
Definition globals.h:880
byte injOpen
Injector opening time (ms * 10)
Definition globals.h:765
byte primePulse[4]
Definition globals.h:833
byte aeTaperMax
Definition globals.h:812
uint16_t vssRatio6
Definition globals.h:864
byte tachoDuration
Definition globals.h:746
byte primingDelay
Definition globals.h:871
uint16_t vssRatio1
Definition globals.h:859
byte idleTaperTime
Definition globals.h:849
uint16_t oddfire2
The ATDC angle of channel 2 for oddfire.
Definition globals.h:802
byte aeMode
Definition globals.h:735
byte primeBins[4]
Definition globals.h:834
byte unused1_126_2
Definition globals.h:881
byte vssAuxCh
Definition globals.h:883
byte perToothIgn
Experimental / New ignition mode ... (?) (See decoders.ino)
Definition globals.h:787
byte idleAdvDelay
Definition globals.h:842
uint16_t baroMax
Definition globals.h:819
byte displayB2
Definition globals.h:755
byte hardCutType
Definition globals.h:762
byte dfcoDelay
Definition globals.h:850
byte includeAFR
Definition globals.h:761
byte decelAmount
Definition globals.h:885
uint8_t ADCFILTER_O2
Definition globals.h:965
int8_t CrankAng
Fixed start-up/cranking ignition angle (See: corrections.ino)
Definition globals.h:907
byte idleAdvBins[6]
Definition globals.h:981
uint8_t ADCFILTER_MAP
Definition globals.h:967
byte dwellErrCorrect
Definition globals.h:989
byte ignBypassHiLo
Definition globals.h:960
byte dfcoRPM
RPM at which DFCO turns off/on at.
Definition globals.h:954
byte resetControlPin
Definition globals.h:926
byte fuelPumpPin
Fuel pump pin (copied as override to pinFuelPump, defaults to board default, See: init....
Definition globals.h:916
byte vvtMinClt
Definition globals.h:994
byte engineProtectMaxRPM
Definition globals.h:984
byte taeBins[4]
TPS based acceleration enrichment bins (Unit: %/s)
Definition globals.h:947
byte StgCycles
Definition globals.h:928
uint8_t bootloaderCaps
Definition globals.h:922
byte dfcoTPSThresh
Definition globals.h:956
uint8_t ADCFILTER_BAT
Definition globals.h:966
byte triggerTeeth
The full count of teeth on the trigger wheel if there were no gaps.
Definition globals.h:939
byte TrigEdge
Primary (RPM1) Trigger Edge - 0 - RISING, 1 = FALLING (Copied from this config to primaryTriggerEdge)
Definition globals.h:910
byte IgInv
Ignition signal invert (?) (GOING_LOW=0 (default by init.ino) / GOING_HIGH=1 )
Definition globals.h:912
byte wueBins[10]
Warmup Enrichment bins (Values are in configPage2.wueValues OLD:configTable1)
Definition globals.h:949
uint8_t ADCFILTER_TPS
Definition globals.h:962
byte SoftLimMax
Time the soft limit can run (units 0.1S)
Definition globals.h:945
uint8_t ADCFILTER_BARO
Definition globals.h:968
byte crankRPM
RPM below which the engine is considered to be cranking.
Definition globals.h:941
byte floodClear
TPS (raw adc count? % ?) value that triggers flood clear mode (No fuel whilst cranking,...
Definition globals.h:942
byte vvtDelay
Definition globals.h:995
byte maeRates[4]
Definition globals.h:974
byte idleAdvValues[6]
Definition globals.h:982
byte cltAdvBins[6]
Definition globals.h:970
byte sparkDur
Spark duration in ms * 10.
Definition globals.h:919
byte vvt2PWMdir
Definition globals.h:987
byte dfcoHyster
Definition globals.h:955
byte taeValues[4]
TPS based acceleration enrichment rates (Unit: % to add), values matched to thresholds of taeBins.
Definition globals.h:948
byte iatRetBins[6]
Inlet Air Temp timing retard curve bins (Unit: ...)
Definition globals.h:952
uint8_t dwellCrank
Dwell time whilst cranking.
Definition globals.h:937
byte cltAdvValues[6]
Definition globals.h:971
byte SoftRevLim
Soft rev limit (RPM/100)
Definition globals.h:943
byte baroFuelValues[8]
Definition globals.h:979
byte baroFuelBins[8]
Definition globals.h:978
byte HardRevLim
Hard rev limit (RPM/100)
Definition globals.h:946
byte SoftLimRetard
Amount soft limit (ignition) retard (degrees)
Definition globals.h:944
byte useDwellLim
Definition globals.h:931
int16_t triggerAngle
Angle (ATDC) when tooth No:1 on the primary wheel sends signal (-360 to +360 deg.)
Definition globals.h:905
byte TrigAngMul
Multiplier for non evenly divisible tooth counts.
Definition globals.h:908
uint8_t ADCFILTER_CLT
Definition globals.h:963
byte ignBypassEnabled
Definition globals.h:958
byte boostType
Boost Control type: 0=Open loop (OPEN_LOOP_BOOST), 1=closed loop (CLOSED_LOOP_BOOST)
Definition globals.h:930
uint8_t ADCFILTER_IAT
Definition globals.h:964
byte maeBins[4]
Definition globals.h:973
byte FILTER_FLEX
Definition globals.h:993
byte sparkMode
Definition globals.h:932
int8_t batVoltCorrect
Definition globals.h:976
byte TrigSpeed
Primary (RPM1) Trigger speed - 0 = crank speed (CRANK_SPEED), 1 = cam speed (CAM_SPEED),...
Definition globals.h:911
byte unusedBits4
Definition globals.h:991
byte dwellLimit
Definition globals.h:950
uint8_t dwellRun
Dwell time whilst running.
Definition globals.h:938
byte iatRetValues[6]
Inlet Air Temp timing retard curve values (Unit: ...)
Definition globals.h:953
byte triggerMissingTeeth
The size of the tooth gap (ie number of missing teeth)
Definition globals.h:940
int16_t vvt2CL0DutyAng
Definition globals.h:986
byte trigPatternSec
Mode for Missing tooth secondary trigger - 0=single tooth cam wheel (SEC_TRIGGER_SINGLE),...
Definition globals.h:920
byte triggerFilter
Definition globals.h:934
byte useResync
Definition globals.h:917
byte TrigPattern
Decoder configured (DECODER_MISSING_TOOTH, DECODER_BASIC_DISTRIBUTOR, DECODER_GM7X,...
Definition globals.h:913
byte PollLevelPolarity
Definition globals.h:921
byte TrigEdgeSec
Secondary (RPM2) Trigger Edge (See RPM1)
Definition globals.h:915
byte ignCranklock
Definition globals.h:935
byte ignBypassPin
Definition globals.h:959
byte dwellCorrectionValues[6]
Correction table for dwell vs battery voltage.
Definition globals.h:951
byte inj4cylPairing
Definition globals.h:988
byte CANBroadcastProtocol
Definition globals.h:990
int8_t FixAng
Fixed Ignition angle value (enabled by configPage2.fixAngEnable, copied to ignFixValue,...
Definition globals.h:906
byte resetControlConfig
Definition globals.h:924
byte ANGLEFILTER_VVT
Definition globals.h:992
Definition globals.h:1006
byte egoTemp
The temperature above which closed loop is enabled.
Definition globals.h:1017
byte flatSArm
Definition globals.h:1071
byte vvtFreq
Frequency of the boost PWM valve.
Definition globals.h:1042
byte iacCLValues[10]
Definition globals.h:1073
byte egoTPSMax
RPM must be above this for closed loop to function.
Definition globals.h:1030
byte tachoMode
Definition globals.h:1035
byte boostEnabled
Boost control enabled 0 =off, 1 = on.
Definition globals.h:1010
byte idleFreq
Frequency of the vvt PWM valve.
Definition globals.h:1043
byte boostFreq
Definition globals.h:1041
byte boostMode
Definition globals.h:1033
byte iacBins[10]
Definition globals.h:1076
byte flatSEnable
Flat shift enable.
Definition globals.h:1067
byte fanFreq
Definition globals.h:1096
byte fanSP
Definition globals.h:1094
byte vvtLoadSource
Load source for VVT (TPS or MAP)
Definition globals.h:1020
byte lnchSoftLim
Definition globals.h:1049
byte egoType
EGO Sensor Type 0=Disabled/None, 1=Narrowband, 2=Wideband.
Definition globals.h:1009
byte lnchHardLim
Definition globals.h:1051
byte egoLimit
Definition globals.h:1025
byte boostKI
Definition globals.h:1061
byte iacCrankSteps[4]
Definition globals.h:1077
byte vvt1Pin
TPS must be below this for closed loop to function.
Definition globals.h:1031
byte lnchPullRes
Definition globals.h:1064
byte egoRPM
Time in seconds after engine starts that closed loop becomes available.
Definition globals.h:1029
byte airDenRates[9]
Definition globals.h:1040
byte iacFastTemp
Definition globals.h:1086
byte idleKD
Definition globals.h:1057
byte iacAlgorithm
Definition globals.h:1081
byte voltageCorrectionBins[6]
Definition globals.h:1037
byte egoKP
Definition globals.h:1014
byte egoKI
Definition globals.h:1015
byte idleKI
Definition globals.h:1056
byte fanPin
Definition globals.h:1093
byte useEMAP
Whether to use fixed tacho pulse duration or match to dwell duration.
Definition globals.h:1036
byte fanInv
Definition globals.h:1091
byte egoAlgorithm
EGO Algorithm - Simple, PID, No correction.
Definition globals.h:1008
byte engineProtectType
Definition globals.h:1012
byte iacStepHyster
Definition globals.h:1089
byte boostKD
Definition globals.h:1062
byte fanHyster
Definition globals.h:1095
byte iacOLStepVal[10]
Definition globals.h:1074
byte iacCrankBins[4]
Definition globals.h:1079
byte fanUnused
Definition globals.h:1092
byte vvtCLAlterFuelTiming
Definition globals.h:1023
byte baroPin
Definition globals.h:1068
byte ego_max
AFR must be above this for closed loop to function.
Definition globals.h:1027
byte iacPWMrun
Run the PWM idle valve before engine is cranked over (0 = off, 1 = on)
Definition globals.h:1065
byte vvtPWMdir
VVT direction (normal or reverse)
Definition globals.h:1021
byte launchPin
Launch (control ?) pin.
Definition globals.h:1045
byte egoCount
The number of ignition cycles per (ego AFR ?) step.
Definition globals.h:1018
byte lnchFuelAdd
Definition globals.h:1052
byte launchHiLo
Definition globals.h:1047
byte iacPWMdir
Definition globals.h:1084
byte iacOLPWMVal[10]
Definition globals.h:1075
byte useExtBaro
Definition globals.h:1032
byte iacChannels
Definition globals.h:1083
byte fuelTrimEnabled
Definition globals.h:1066
byte iacStepTime
Definition globals.h:1082
byte iacCrankDuty[4]
Definition globals.h:1078
byte vvtMode
Valid VVT modes are 'on/off', 'open loop' and 'closed loop'.
Definition globals.h:1019
byte ego_min
Maximum amount the closed loop EGO control will vary the fuelling.
Definition globals.h:1026
byte flatSSoftWin
Definition globals.h:1069
byte vvtEnabled
Definition globals.h:1011
byte boostCutEnabled
Definition globals.h:1024
int8_t lnchRetard
Definition globals.h:1050
byte boostKP
Definition globals.h:1060
byte launchEnabled
Launch ...???... (control?) enabled.
Definition globals.h:1046
int8_t flatSRetard
Definition globals.h:1070
byte vvtCLUseHold
Definition globals.h:1022
byte egoKD
Definition globals.h:1016
byte fanPWMBins[4]
Definition globals.h:1097
byte injVoltageCorrectionValues[6]
Definition globals.h:1038
byte idleKP
Definition globals.h:1055
byte airDenBins[9]
Definition globals.h:1039
byte boostLimit
Boost limit (Kpa). Stored value is actual (kPa) value divided by 2, allowing kPa values up to 511.
Definition globals.h:1059
byte ego_sdelay
AFR must be below this for closed loop to function.
Definition globals.h:1028
byte iacStepHome
Definition globals.h:1088
byte boostPin
Boost control mode: 0=Simple (BOOST_MODE_SIMPLE) or 1=full (BOOST_MODE_FULL)
Definition globals.h:1034
Definition globals.h:1108
byte afrProtectMinMAP
Definition globals.h:1173
byte afrProtectDeviation
Definition globals.h:1176
byte unused10_179
Definition globals.h:1163
uint16_t caninput_source_can_address[16]
Definition globals.h:1116
byte enable_secondarySerial
Definition globals.h:1109
byte dfcoTaperFuel
Definition globals.h:1165
uint16_t canoutput_param_group[8]
Definition globals.h:1126
byte coolantProtTemp[6]
Definition globals.h:1161
byte afrProtectReactivationTPS
Definition globals.h:1178
byte boostByGear2
Definition globals.h:1152
byte iacCoolTime
Definition globals.h:1142
byte unused10_183
Definition globals.h:1168
byte speeduino_tsCanId
Definition globals.h:1134
byte coolantProtRPM[6]
Definition globals.h:1160
byte afrProtectEnabled
Definition globals.h:1172
byte hardRevMode
Definition globals.h:1159
byte dfcoTaperTime
Definition globals.h:1164
byte boostByGear4
Definition globals.h:1154
byte afrProtectMinTPS
Definition globals.h:1175
byte unused10_68
Definition globals.h:1123
byte boostByGear6
Definition globals.h:1156
byte afrProtectCutTime
Definition globals.h:1177
uint8_t canoutput_param_start_byte[8]
Definition globals.h:1127
byte idleAdvStartDelay
Definition globals.h:1149
byte unused10_111
Definition globals.h:1131
byte enable_intcan
Definition globals.h:1111
byte blankField
Definition globals.h:1145
uint16_t caninput_source_num_bytes
Definition globals.h:1118
uint8_t caninput_source_start_byte[16]
Definition globals.h:1117
byte secondarySerialProtocol
Definition globals.h:1112
byte iacStepperPower
Definition globals.h:1146
byte boostByGear5
Definition globals.h:1155
byte iacStepperInv
Definition globals.h:1141
uint8_t Auxinpina[16]
Definition globals.h:1138
byte canoutput_param_num_bytes[8]
Definition globals.h:1128
uint16_t obd_address
Definition globals.h:1137
byte PWMFanDuty[4]
Definition globals.h:1158
byte unused10_184
Definition globals.h:1170
byte canoutput_sel[8]
Definition globals.h:1125
byte unused9_0
Definition globals.h:1113
byte unused10_110
Definition globals.h:1130
byte caninput_sel[16]
Definition globals.h:1115
byte boostByGear1
Definition globals.h:1151
uint8_t Auxinpinb[16]
Definition globals.h:1139
byte intcan_available
Definition globals.h:1110
byte dfcoTaperEnable
Definition globals.h:1167
byte boostByGearEnabled
Definition globals.h:1144
uint16_t realtime_base_address
Definition globals.h:1136
byte egoMAPMax
Definition globals.h:1132
byte boostByGear3
Definition globals.h:1153
byte caninputEndianess
Definition globals.h:1120
byte afrProtectMinRPM
Definition globals.h:1174
uint16_t true_address
Definition globals.h:1135
byte iacMaxSteps
Definition globals.h:1148
byte enable_candata_out
Definition globals.h:1124
byte dfcoTaperAdvance
Definition globals.h:1166
byte egoMAPMin
Definition globals.h:1133
byte dwellCorrection
Definition globals.h:612
uint16_t baroADC
Definition globals.h:589
volatile byte syncLossCounter
Definition globals.h:675
byte ASEValue
Definition globals.h:684
int16_t vvt2Angle
Definition globals.h:693
byte testOutputs
Test Output bits (only first bit used/tested ?)
Definition globals.h:659
volatile bool hasSync
Definition globals.h:576
uint16_t canin[16]
16bit raw value of selected canin data for channels 0-15
Definition globals.h:663
byte oilPressure
Definition globals.h:689
uint8_t current_caninchannel
Definition globals.h:664
bool launchingSoft
Definition globals.h:652
int16_t EMAP
EMAP ... (See config6::useEMAP for EMAP enablement)
Definition globals.h:591
unsigned int PW3
In uS.
Definition globals.h:643
byte launchCorrection
Definition globals.h:624
unsigned int PW6
In uS.
Definition globals.h:646
bool idleUpActive
Definition globals.h:630
long vvt1Duty
Definition globals.h:682
bool CTPSActive
Definition globals.h:631
unsigned int PW8
In uS.
Definition globals.h:648
byte CLIdleTarget
Definition globals.h:629
byte vvt2TargetAngle
Definition globals.h:694
volatile byte status5
Status 5 ... (See also config10 Status 5* members and BIT_STATU5_* defines)
Definition globals.h:639
byte TPSlast
Definition globals.h:596
bool clutchTrigger
Definition globals.h:579
bool testActive
Definition globals.h:660
bool idleUpOutputActive
Definition globals.h:686
unsigned long AEEndTime
Definition globals.h:634
byte baroCorrection
Definition globals.h:623
bool flatShiftingHard
Definition globals.h:656
int16_t vvt1Angle
Definition globals.h:680
unsigned int PW4
In uS.
Definition globals.h:644
byte VE2
Definition globals.h:601
byte flexCorrection
Definition globals.h:625
volatile uint16_t loopsPerSecond
Definition globals.h:651
bool toothLogEnabled
Definition globals.h:678
byte VE1
Definition globals.h:600
int IAT
Definition globals.h:606
int16_t mapDOT
Definition globals.h:597
byte wueCorrection
Definition globals.h:620
byte batCorrection
Definition globals.h:621
int8_t advance
Definition globals.h:614
unsigned int PW1
In uS.
Definition globals.h:641
uint16_t dwell
dwell (coil primary winding/circuit on) time (in ms * 10 ? See correctionsDwell)
Definition globals.h:610
uint8_t tpsADC
Definition globals.h:594
uint8_t engine
Engine status bits (See BIT_ENGINE_* defines on top of this file)
Definition globals.h:640
volatile byte knockCount
Definition globals.h:677
byte nSquirts
Number of injector squirts per cycle (per injector)
Definition globals.h:668
int8_t advance2
Definition globals.h:616
volatile byte status4
Status bits (See BIT_STATUS4_* defines on top of this file)
Definition globals.h:638
uint16_t vss
Definition globals.h:685
byte knockRetard
Definition globals.h:676
byte TS_SD_Status
Definition globals.h:697
uint16_t boostTarget
Definition globals.h:658
bool fuelPumpOn
Definition globals.h:674
byte gear
Definition globals.h:687
volatile bool injPrimed
Definition globals.h:582
volatile byte secl
Definition globals.h:650
byte airConStatus
Definition globals.h:698
int coolant
Definition globals.h:604
byte VE
Definition globals.h:599
volatile uint16_t actualDwell
actual dwell time if new ignition mode is used (in uS)
Definition globals.h:611
byte fuelPressure
Definition globals.h:688
unsigned int clutchEngagedRPM
Definition globals.h:655
volatile uint32_t startRevolutions
Definition globals.h:657
unsigned int PW5
In uS.
Definition globals.h:645
volatile bool tachoAlt
Definition globals.h:584
uint16_t boostDuty
Boost Duty percentage value * 100 to give 2 points of precision.
Definition globals.h:661
bool previousClutchTrigger
Definition globals.h:580
byte battery10
Definition globals.h:613
volatile byte runSecs
Definition globals.h:649
uint16_t iatADC
Definition globals.h:607
int8_t advance1
Definition globals.h:615
uint16_t RPM
RPM - Current Revs per minute.
Definition globals.h:586
long longRPM
RPM as long int (gets assigned to / maintained in statuses.RPM as well)
Definition globals.h:588
byte wmiPW
Definition globals.h:692
volatile int8_t fuelTemp
Definition globals.h:633
byte vvt1TargetAngle
Definition globals.h:681
byte RPMdiv100
RPM value scaled (divided by 100) to fit a byte (0-255, e.g. 12000 => 120)
Definition globals.h:587
uint16_t corrections
Definition globals.h:617
long vvt2Duty
Definition globals.h:695
byte fanDuty
Definition globals.h:691
uint8_t TPS
Definition globals.h:593
byte outputsStatus
Definition globals.h:696
int16_t fuelLoad2
Definition globals.h:671
byte afrTarget
Definition globals.h:628
volatile byte status3
Status bits (See BIT_STATUS3_* defines on top of this file)
Definition globals.h:637
bool launchingHard
Definition globals.h:653
volatile int rpmDOT
Definition globals.h:598
byte fuelTempCorrection
Definition globals.h:626
int16_t fuelLoad
Definition globals.h:670
byte nChannels
Definition globals.h:669
byte nitrous_status
Definition globals.h:667
unsigned int PW2
In uS.
Definition globals.h:642
int16_t ignLoad2
Definition globals.h:673
volatile bool fpPrimed
Definition globals.h:581
int16_t tpsDOT
Definition globals.h:595
uint8_t O2_2
Definition globals.h:603
uint16_t freeRAM
Definition globals.h:654
int16_t ignLoad
Definition globals.h:672
byte compositeTriggerUsed
Definition globals.h:679
byte egoCorrection
Definition globals.h:619
int16_t flexBoostCorrection
Definition globals.h:666
bool initialisationComplete
Definition globals.h:578
int8_t flexIgnCorrection
Definition globals.h:627
byte idleLoad
Either the current steps or current duty cycle for the idle control.
Definition globals.h:662
uint16_t O2_2ADC
Definition globals.h:609
byte iatCorrection
Definition globals.h:622
uint8_t O2
Definition globals.h:602
uint16_t injAngle
Definition globals.h:683
long MAP
Manifold absolute pressure. Has to be a long for PID calcs (Boost control)
Definition globals.h:590
volatile bool tachoSweepEnabled
Definition globals.h:583
uint16_t crankRPM
Definition globals.h:665
uint8_t baro
Barometric pressure is simply the initial MAP reading, taken before the engine is running....
Definition globals.h:592
volatile byte ethanolPct
Definition globals.h:632
unsigned int PW7
In uS.
Definition globals.h:647
uint16_t AEamount
Definition globals.h:618
byte engineProtectStatus
Definition globals.h:690
volatile byte status2
status 2/control indicator bits (launch control, boost cut, spark errors, See BIT_STATUS2_* defines)
Definition globals.h:636
uint16_t cltADC
Definition globals.h:605
uint16_t O2ADC
Definition globals.h:608
volatile byte status1
Status bits (See BIT_STATUS1_* defines on top of this file)
Definition globals.h:635
3D table data types and functions