![]() |
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 "programmableIOControl.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"#include "decoder_init.h"#include "scheduledIO_ign.h"#include "scheduledIO_inj.h"#include "scheduledIO_direct_ign.h"#include "scheduledIO_direct_inj.h"#include "src/pins/pinMapping.h"#include "resetControl.h"#include "scheduler_ignition_controller.h"#include "maths.h"Functions | |
| static void | processResetStorageRequest (void) |
| Allow the user to reset the firmware storage (aka EPROM). | |
| void | initialiseAll (void) |
| void | setPinMapping (byte boardID) |
Speeduino Initialisation (called at Arduino setup()).
Initialise Speeduino for the main loop. Top level init entry point for all initialisations:


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

