![]() |
Speeduino
|
#include "globals.h"
#include "init.h"
#include "storage.h"
#include "updates.h"
#include "speeduino.h"
#include "timers.h"
#include "comms_secondary.h"
#include "utilities.h"
#include "scheduledIO.h"
#include "scheduler.h"
#include "schedule_calcs.h"
#include "auxiliaries.h"
#include "sensors.h"
#include "decoders.h"
#include "corrections.h"
#include "idle.h"
#include "table2d.h"
#include "acc_mc33810.h"
#include <BOARD_H>
#include <EEPROM_LIB_H>
Functions | |
void | initialiseAll (void) |
void | setPinMapping (byte boardID) |
void | initialiseTriggers (void) |
void | changeHalfToFullSync (void) |
void | changeFullToHalfSync (void) |
Speeduino Initialisation (called at Arduino setup()).
void changeFullToHalfSync | ( | void | ) |
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.
void changeHalfToFullSync | ( | void | ) |
Change injectors or/and ignition angles to 720deg. Roll back req_fuel size and set number of outputs equal to cylinder count.
void initialiseAll | ( | void | ) |
Initialise Speeduino for the main loop. Top level init entry point for all initialisations:
void initialiseTriggers | ( | void | ) |
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.
void setPinMapping | ( | byte | boardID | ) |
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).