injectionISRs.c File Reference

#include "inc/freeEMS.h"
#include "inc/interrupts.h"
#include "inc/injectionISRs.h"
#include "inc/injectorISR.c"

Include dependency graph for injectionISRs.c:

Go to the source code of this file.

Defines

#define INJECTIONISRS_C
#define INJECTOR_CHANNEL_NUMBER   0
#define InjectorXISR   Injector1ISR
#define STAGEDXOFF   STAGED1OFF
#define STAGEDXON   STAGED1ON
#define INJECTOR_CHANNEL_NUMBER   1
#define InjectorXISR   Injector2ISR
#define STAGEDXOFF   STAGED2OFF
#define STAGEDXON   STAGED2ON
#define INJECTOR_CHANNEL_NUMBER   2
#define InjectorXISR   Injector3ISR
#define STAGEDXOFF   STAGED3OFF
#define STAGEDXON   STAGED3ON
#define INJECTOR_CHANNEL_NUMBER   3
#define InjectorXISR   Injector4ISR
#define STAGEDXOFF   STAGED4OFF
#define STAGEDXON   STAGED4ON
#define INJECTOR_CHANNEL_NUMBER   4
#define InjectorXISR   Injector5ISR
#define STAGEDXOFF   STAGED5OFF
#define STAGEDXON   STAGED5ON
#define INJECTOR_CHANNEL_NUMBER   5
#define InjectorXISR   Injector6ISR
#define STAGEDXOFF   STAGED6OFF
#define STAGEDXON   STAGED6ON

Functions

void StagedOnISR (void)
void StagedOffISR (void)


Define Documentation

#define INJECTIONISRS_C

Definition at line 24 of file injectionISRs.c.

#define INJECTOR_CHANNEL_NUMBER   5

Definition at line 126 of file injectionISRs.c.

#define INJECTOR_CHANNEL_NUMBER   4

Definition at line 126 of file injectionISRs.c.

#define INJECTOR_CHANNEL_NUMBER   3

Definition at line 126 of file injectionISRs.c.

#define INJECTOR_CHANNEL_NUMBER   2

Definition at line 126 of file injectionISRs.c.

#define INJECTOR_CHANNEL_NUMBER   1

Definition at line 126 of file injectionISRs.c.

#define INJECTOR_CHANNEL_NUMBER   0

Definition at line 126 of file injectionISRs.c.

Referenced by InjectorXISR().

#define InjectorXISR   Injector6ISR

Definition at line 127 of file injectionISRs.c.

#define InjectorXISR   Injector5ISR

Definition at line 127 of file injectionISRs.c.

#define InjectorXISR   Injector4ISR

Definition at line 127 of file injectionISRs.c.

#define InjectorXISR   Injector3ISR

Definition at line 127 of file injectionISRs.c.

#define InjectorXISR   Injector2ISR

Definition at line 127 of file injectionISRs.c.

#define InjectorXISR   Injector1ISR

Definition at line 127 of file injectionISRs.c.

#define STAGEDXOFF   STAGED6OFF

Definition at line 128 of file injectionISRs.c.

#define STAGEDXOFF   STAGED5OFF

Definition at line 128 of file injectionISRs.c.

#define STAGEDXOFF   STAGED4OFF

Definition at line 128 of file injectionISRs.c.

#define STAGEDXOFF   STAGED3OFF

Definition at line 128 of file injectionISRs.c.

#define STAGEDXOFF   STAGED2OFF

Definition at line 128 of file injectionISRs.c.

#define STAGEDXOFF   STAGED1OFF

Definition at line 128 of file injectionISRs.c.

Referenced by InjectorXISR().

#define STAGEDXON   STAGED6ON

Definition at line 129 of file injectionISRs.c.

#define STAGEDXON   STAGED5ON

Definition at line 129 of file injectionISRs.c.

#define STAGEDXON   STAGED4ON

Definition at line 129 of file injectionISRs.c.

#define STAGEDXON   STAGED3ON

Definition at line 129 of file injectionISRs.c.

#define STAGEDXON   STAGED2ON

Definition at line 129 of file injectionISRs.c.

#define STAGEDXON   STAGED1ON

Definition at line 129 of file injectionISRs.c.

Referenced by InjectorXISR().


Function Documentation

void StagedOffISR ( void   ) 

Definition at line 52 of file injectionISRs.c.

References PITINTE.

00052                        {
00053         // clear the flag
00054         PITINTE |= 0x08;
00055 
00056         // bit bang off the correct injector channel
00057         // TODO figure out which channel and switch it
00058         // TODO set the flag for that channel
00059 
00060         // if there are other staged channels pending, schedule them and adjust the data
00061         // TODO
00062 
00063         /* Clear the PIT3 flag */
00064         // TODO
00065 }

void StagedOnISR ( void   ) 

Definition at line 31 of file injectionISRs.c.

References fixedConfig1::coreSettingsA, fixedConfigs1, PITINTE, and STAGED_END.

00031                       {
00032         // clear the flag
00033         PITINTE |= 0x04;
00034 
00035         // bit bang on the correct injector channel
00036         // TODO figure out which channel and switch it
00037         // TODO set the flag for that channel
00038 
00039         // if there are other staged channels pending, schedule them and adjust the data
00040         // TODO
00041 
00042         /* If staged injection needs the end point scheduled, do it now (otherwise it will turn off naturally with the main injector) */
00043         if(!(fixedConfigs1.coreSettingsA & STAGED_END)){
00044                 // TODO schedule the end of staged injection with PIT 3
00045         }
00046 
00047         /* Clear the PIT2 flag */
00048         // TODO
00049 }


Generated on Mon Dec 22 21:30:10 2008 for freeems by  doxygen 1.5.2