FreeEMS Issues - Firmware
View Issue Details
0000106FirmwareScheduler (Inj/Ign)public2010-09-30 15:542011-09-24 21:30
davec 
Fred 
normalminorN/A
closedfixed 
0.0.17-SpudEchoes 
0.2.00.2.0 
Improvement
low
0000106: Optimization of Fuel Injection ISR
current code is

TFLG = injectorMainOnMasks[INJECTOR_CHANNEL_NUMBER];

due to the fact that the injectorISR is a macro, the bit can be calculated by the compiler as

TFLG = BIT2<<INJECTOR_CHANNEL_NUMBER;
No tags attached.

Notes
(0000287)
Fred   
2011-09-24 21:30   
This affected 3 code locations per instance. I made the change and verified the output in ppc and the functionality of the code. Thanks for the tip! :-)