staticInit.c File Reference

Static initialisation of non-zero variables. More...

#include "inc/freeEMS.h"
Include dependency graph for staticInit.c:

Go to the source code of this file.

Variables

unsigned char asyncDatalogType = asyncDatalogBasic
unsigned short tachoPeriod = 65535
unsigned short masterPulseWidth = 10
 * Pointers to main tables to aid readability */
unsigned short totalAngleAfterReferenceIgnition = 540
unsigned short totalAngleAfterReferenceInjection = 180
unsigned long engineCyclePeriod = ticksPerCycleAtOneRPM

Detailed Description

Static initialisation of non-zero variables.

This file contains static initialisations for fields that require a non-zero initial value after reset. Zero fields are taken care of by GCC and doing this here means less init time and init code, both good things. Variables initialised here are placed together by the compiler in flash and copied up to RAM as a linear block before the main method runs. This is significantly more efficient than doing them one-by-one in an init routine.

Author:
Fred Cooke

Definition in file staticInit.c.


Variable Documentation

unsigned char asyncDatalogType = asyncDatalogBasic

Definition at line 46 of file staticInit.c.

Referenced by decodePacketAndRespond(), and main().

unsigned long engineCyclePeriod = ticksPerCycleAtOneRPM

Definition at line 72 of file staticInit.c.

Referenced by ModDownCtrISR(), PrimaryRPMISR(), resetToNonRunningState(), and SecondaryRPMISR().

unsigned short masterPulseWidth = 10

* Pointers to main tables to aid readability */

* Pointers to SmallTablesA */ * Pointers to SmallTablesB */

Definition at line 51 of file staticInit.c.

Referenced by calculateFuelAndIgnition(), and PrimaryRPMISR().

unsigned short tachoPeriod = 65535

Definition at line 48 of file staticInit.c.

Referenced by ModDownCtrISR().

unsigned short totalAngleAfterReferenceIgnition = 540

Definition at line 52 of file staticInit.c.

unsigned short totalAngleAfterReferenceInjection = 180

Definition at line 53 of file staticInit.c.

Referenced by calculateFuelAndIgnition(), and PrimaryRPMISR().

Generated on Sat Oct 16 21:29:20 2010 for FreeEMS by  doxygen 1.6.3