3 Copyright 2008 Fred Cooke
5 This file is part of the FreeEMS project.
7 FreeEMS software is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
12 FreeEMS software is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with any FreeEMS software. If not, see http://www.gnu.org/licenses/
20 We ask that if you make any changes to this file you email them upstream to
21 us at admin(at)diyefi(dot)org or, even better, fork the code on github.com!
23 Thank you for choosing FreeEMS to run your engine! */
26 /* Header file multiple inclusion protection courtesy eclipse Header Template */
27 /* and http://gcc.gnu.org/onlinedocs/gcc-3.1.1/cpp/ C pre processor manual */
28 #ifndef FILE_MAIN_H_SEEN
29 #define FILE_MAIN_H_SEEN
33 #include "interrupts.h"
36 #include "commsISRs.h"
37 #include "commsCore.h"
38 #include "coreVarsGenerator.h"
39 #include "derivedVarsGenerator.h"
40 #include "fuelAndIgnitionCalcs.h"
43 /* Computer Operating Properly reset sequence MC9S12XDP512V2.PDF Section 2.4.1.5 */
44 #define COP_RESET1 0x55
45 #define COP_RESET2 0xAA
48 // temp method of ensuring logs sent only once per second
49 //unsigned short lastTime = 65535;
50 //unsigned short lastCalcCount;
54 /* let us know if we are being untidy with headers */
55 #warning "Header file MAIN_H seen before, sort it out!"
56 /* end of the wrapper ifdef from the very top */