Todo List

Global calculateFuelAndIgnition (void) FPAGE_FE

TODO implement the all of the ignition stuff and finish off all of the fuel injection stuff.

TODO change the way configuration is done and make sure the most common options are after the first if().

TODO add actual configuration options to the fixed config blocks for these items.

TODO figure out what the correct "temperature" is to make MAF work correctly!

TODO make injector channels come from config, not defines.

TODO make injector channels come from config, not defines.

TODO work needs to be done on scheduling before this can be completed.

TODO x 6 main pulsewidths, x 6 staged pulsewidths, x 6 flags for staged channels if(coreSettingsA & STAGED_ON){}

TODO determine the requirement for staged based on some sort of map and or complex load based configuration.

TODO Calculate the fuel advances (six of)

TODO Calculate the dwell period (one of)

TODO Calculate the ignition advances (twelve of)

Global changeSyncStatus (unsigned char)

TODO Decide if an explicit parameter is necessary if not use a existing status var instead for now it's explicit.

TODO the register below does not exist and I couldn't figure out what you meant to do...

Global checksumAndSend (void) FPAGE_FE
TODO fix the double/none start byte bug and remove the hack!

File commsCore.c

TODO function to setup a packet and send it fn(populateBodyFunctionPointer(), header, other, fields, here, and, use, or, not, within){}

TODO factor many things into functions and move the receive delegator to its own file

File commsISRs.c

TODO SCI0ISR() needs to be split into some hash defines and an include file that formats it to be the ISR for a specific channel.

Global decodePacketAndRespond (void) TEXT

TODO implement default return of empty packet.

TODO implement default return of empty packet.

TODO implement default return of empty packet.

TODO implement default return of empty packet.

TODO implement default return of empty packet.

TODO implement default return of empty packet.

TODO implement default return of empty packet.

TODO implement default return of empty packet.

TODO implement default return of empty packet.

File decodePacketAndRespond.c

TODO Split the functionality out for 0.0.20

Global EXTERN
TODO we should define the register masks that we use in one place, but probably not in the main device header.

Global FIXEDCONF1

TODO for coreSettingsA masks See definitions in freeEMS.h OR is it in structs.h ???

TODO divide fixedConfig1 into useful chunks

TODO create presets sensor values struct

TODO create engine setup struct

TODO create ranges struct

TODO add userTextField1 to the dictionary/address lookup

Global FIXEDCONF2

TODO divide fixedConfig2 into useful chunks

TODO create engine hardware config chunk

TODO create random stuff chunk

TODO add the userTextField2 to the dictionary/address lookup

Class fixedConfig1
TODO add doxy comments for each element of the struct

File flashGlobals.h

TODO integrate this file with the rest of the masks and other global constants and hash defines etc

Page General Strategies
TODO TBC (other strategies)

Global generateCoreVars ()

TODO incorporate averaging code, right now its a straight copy.

TODO change the way configuration is done and make sure the most common options are after the first if().

TODO add actual configuration options to the fixed config blocks for these items.

TODO average the generated values here

File globalDefines.h

TODO Some investigation as to whether it is best to use consts or defines is required

TODO Break this up into smaller chunks that are included into this file

Global IgnitionDwellISR (void) INT TEXT1
TODO make this actually work.

Global IgnitionFireISR (void) INT TEXT1
TODO make this actually work.

Global InjectorXISR ()

TODO *maybe* instead of checking min and increasing pulse, just force it straight off if diff between start and now+const is greater than desired pulsewidth

TODO PIT scheduling of staged start

File LT1-360-8.c

TODO This file contains SFA but Sean Keys is going to fill it up with

TODO wonderful goodness very soon ;-)

Global LT1PTInit (void)

TODO Put this in the correct place

Global MAFFuelConstant
TODO Determine what the value of MAF fuel constant should be

Global MASS_ERASE
TODO add mass erase function and replace ?? with the real value

File MiataNB.c

TODO This file contains SFA but Abe Mara is going to fill it up with

TODO wonderful goodness very soon ;-)

File NipponDenso.c
TODO make this generic for evenly spaced teeth with a pulse per revolution from the second input.

Global NO_PROBLEMO
TODO Introduce some structure to the numbering such that they can be interpreted somewhat without a chart

Global PrimaryRPMISR (void)

TODO Docs here!

TODO possibly add code to make sure we are in divide mode, if not error out

TODO fill in or remove the else

TODO Docs here!

TODO Docs here!

TODO Docs here!

Global PrimaryRPMISR ()

TODO bring the above docs up to date with reality

TODO finish this off to a usable standard

TODO discard narrow ones! test for tooth width and tooth period the width should be based on how the hardware is setup. IE the LM1815 is adjusted to have a pulse output of a particular width. This noise filter should be matched to that width as should the hardware filter.

TODO make this code more general and robust such that it can be used for real simple applications

Global resetReceiveState (unsigned char sourceIDState)

TODO this is in the wrong file!! Either move the header declaration or move the function!

TODO CAN0CTL1 &= CANCTL1_RX_DISABLE;

TODO CAN0CTL1 &= CANCTL1_RX_ISR_DISABLE;

TODO CAN0CTL1 |= CANCTL1_RX_ENABLE;

TODO CAN0CTL1 |= CANCTL1_RX_ISR_ENABLE;

Global resetToNonRunningState (void) FPAGE_F8

TODO bring this up to date and/or find a better way to do it.

Global sampleLoopADC (ADCArray *) FPAGE_F8
TODO this needs to be split into two loops one for the small block and one for the big one for the future chips.

Global SCI0ISR (void) INT TEXT1

TODO Move this code into an include file much like the fuel interrupts such that it can be used for multiple UART SCI devices without duplication.

TODO Remove the debug code that uses the IO ports to light LEDs during specific actions.

Global SecondaryRPMISR (void)

TODO Docs here!

TODO Add a check for 1 skip pulse of the 8x track, to prevent possible incorrect sync.

TODO Possibly make virtual CAS 16-bit so was can get rid of floating points and use for syncing

TODO fill in or remove the else

TODO Docs here!

TODO Docs here!

TODO Docs here!

Global SecondaryRPMISR ()

TODO bring this documentation up to date.

TODO finish this off to a usable standard.

TODO discard narrow ones! test for tooth width and tooth period the width should be based on how the hardware is setup. IE the LM1815 is adjusted to have a pulse output of a particular width. This noise filter should be matched to that width as should the hardware filter.

TODO discard narrow ones! test for tooth width and tooth period the width should be based on how the hardware is setup. IE the LM1815 is adjusted to have a pulse output of a particular width. This noise filter should be matched to that width as should the hardware filter.

Global sendDebugInternal (unsigned char *message)

TODO clean up the mess of commented out crap in here!

Global sendErrorInternal (unsigned short errorCode)

TODO clean up the mess of commented out crap in here!

TODO decide on errorCode or errorID and consistencise it everywhere.

Global setupPagedRAM (unsigned char) FPAGE_F8

TODO change parameter style to be a pointer to a register and a mask?

Class SmallTables1
TODO add doxy comments for each element of the struct

Global SmallTables1::primingVolumeTable
TODO define units. perhaps micro litres (cubic milli meters) would be good, 5 - 100 seem to be the norm 327.68 = 65535/200

File Subaru-36-2-2-2.c

TODO This file contains SFA but [anon] is going to fill it up with

TODO wonderful goodness very soon ;-)

Page Tune Switching

TODO insert discussion about various uses of tune switching here.

Page Unlisted Files

TODO add a description for each item with an anchor above it. Reference the anchor from the above list.

Global validateMainTable (mainTable *) TEXT

more detail here....

Global writeSector (unsigned char, unsigned short *, unsigned char, unsigned short *) TEXT
TODO Decide if we need to disable interrupts since we are manually setting Flash/RAM pages.

Global writeWord (unsigned short *, unsigned short) TEXT
TODO CBEIF mask hash define - is this still needed?
Generated on Sat Oct 16 21:29:24 2010 for FreeEMS by  doxygen 1.6.3