00001 /* FreeEMS - the open source engine management system 00002 * 00003 * Copyright 2008, 2009, 2010 Fred Cooke 00004 * 00005 * This file is part of the FreeEMS project. 00006 * 00007 * FreeEMS software is free software: you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation, either version 3 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * FreeEMS software is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with any FreeEMS software. If not, see http://www.gnu.org/licenses/ 00019 * 00020 * We ask that if you make any changes to this file you email them upstream to 00021 * us at admin(at)diyefi(dot)org or, even better, fork the code on github.com! 00022 * 00023 * Thank you for choosing FreeEMS to run your engine! 00024 */ 00025 00026 00032 /* Header file multiple inclusion protection courtesy eclipse Header Template */ 00033 /* and http://gcc.gnu.org/onlinedocs/gcc-3.1.1/cpp/ C pre processor manual */ 00034 #ifndef FILE_MAIN_H_SEEN 00035 #define FILE_MAIN_H_SEEN 00036 00037 00038 #include "freeEMS.h" 00039 #include "interrupts.h" 00040 #include "utils.h" 00041 #include "init.h" 00042 #include "commsISRs.h" 00043 #include "commsCore.h" 00044 #include "coreVarsGenerator.h" 00045 #include "derivedVarsGenerator.h" 00046 #include "fuelAndIgnitionCalcs.h" 00047 #include "DecoderInterface.h" 00048 00049 00050 /* Computer Operating Properly reset sequence MC9S12XDP512V2.PDF Section 2.4.1.5 */ 00051 #define COP_RESET1 0x55 00052 #define COP_RESET2 0xAA 00053 00054 00055 // temp method of ensuring logs sent only once per second 00056 //unsigned short lastTime = 65535; 00057 //unsigned short lastCalcCount; 00058 00059 00060 #else 00061 /* let us know if we are being untidy with headers */ 00062 #warning "Header file MAIN_H seen before, sort it out!" 00063 /* end of the wrapper ifdef from the very top */ 00064 #endif