![]() |
Speeduino
|
#include "globals.h"#include "init.h"#include "storage.h"#include "updates.h"#include "timers.h"#include "comms.h"#include "comms_secondary.h"#include "comms_CAN.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_definition.h"#include "pages.h"#include "fuel_calcs.h"Functions | |
| static void | processResetStorageRequest (void) |
| Allow the user to reset the firmware storage (aka EPROM). | |
| void | initialiseAll (void) |
| void | setPinMapping (byte boardID) |
| void | initialiseTriggers (void) |
| static bool | isAnyFuelScheduleRunning (void) |
| static bool | isAnyIgnScheduleRunning (void) |
| void | changeHalfToFullSync (const config2 &page2, const config4 &page4, statuses ¤t) |
| void | changeFullToHalfSync (const config2 &page2, const config4 &page4, statuses ¤t) |
Speeduino Initialisation (called at Arduino setup()).
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.






Allow the user to reset the firmware storage (aka EPROM).
This gives the user the opportunity to clear the permanent storage at start up.
See https://github.com/noisymime/speeduino/pull/657


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).

