refactoring

This commit is contained in:
rusefi 2018-12-24 22:17:13 -05:00
parent c17b7eeb5c
commit fe85582767
4 changed files with 5 additions and 9 deletions

View File

@ -13,6 +13,10 @@
#include "crc.h"
#include "engine_configuration_generated_structures.h"
#ifndef DEFAULT_ENGINE_TYPE
#define DEFAULT_ENGINE_TYPE CUSTOM_ENGINE
#endif
#define CLT_MANUAL_IDLE_CORRECTION config->cltIdleCorrBins, config->cltIdleCorr, CLT_CURVE_SIZE
#define WARMUP_CLT_EXTRA_FUEL_CURVE config->cltFuelCorrBins, config->cltFuelCorr, CLT_CURVE_SIZE
#define IAT_FUEL_CORRECTION_CURVE config->iatFuelCorrBins, config->iatFuelCorr, IAT_CURVE_SIZE

View File

@ -1,7 +1,7 @@
/*
* @file global.h
*
* Global header file for firmware
* Global utility header file for firmware
*
* @date May 27, 2013
* @author Andrey Belomutskiy, (c) 2012-2017
@ -18,10 +18,6 @@ extern "C"
#include <ch.h>
#include <hal.h>
#ifndef DEFAULT_ENGINE_TYPE
#define DEFAULT_ENGINE_TYPE CUSTOM_ENGINE
#endif
// this is about MISRA not liking 'time.h'. todo: figure out something
#if defined __GNUC__
// GCC

View File

@ -10,8 +10,6 @@
#ifndef GLOBAL_H_
#define GLOBAL_H_
#define DEFAULT_ENGINE_TYPE FORD_ESCORT_GT
#include <ch.h>
#include <hal.h>

View File

@ -10,8 +10,6 @@
#ifndef GLOBAL_H_
#define GLOBAL_H_
#define DEFAULT_ENGINE_TYPE CUSTOM_ENGINE
#include <stdio.h>
#include <time.h>