refactoring

This commit is contained in:
rusefi 2018-09-16 22:25:17 -04:00
parent 4d27109a8d
commit 4868a9fd82
36 changed files with 36 additions and 41 deletions

View File

@ -1,7 +1,6 @@
#include "main.h"
#include "global.h"
#include "hardware.h"
#include "efiGpio.h"
#include "global.h"
#include "flash.h"

View File

@ -1,8 +1,7 @@
#include "main.h"
#include "global.h"
#include "hardware.h"
#include "efiGpio.h"
#include "global.h"
#ifdef __cplusplus
extern "C"

View File

@ -1,7 +1,6 @@
#include "main.h"
#include "global.h"
#include "hardware.h"
#include "efiGpio.h"
#include "global.h"
/*
* We need only a small portion of code from rusEFI codebase in the bootloader.

View File

@ -7,7 +7,7 @@
* @author andreika, (c) 2017
*/
#include "main.h"
#include "global.h"
#include "engine.h"
#include "engine_math.h"
#include "allsensors.h"

View File

@ -7,7 +7,7 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"
#include "GY6_139QMB.h"
#include "engine_math.h"
#include "engine_configuration.h"

View File

@ -8,7 +8,7 @@
#ifndef MINICOOPERR50_H_
#define MINICOOPERR50_H_
#include "main.h"
#include "global.h"
#include "engine_configuration.h"
void setMiniCooperR50(engine_configuration_s *engineConfiguration);

View File

@ -7,7 +7,7 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"
#include "acura_rsx.h"
void setAcuraRSX(engine_configuration_s *engineConfiguration) {

View File

@ -20,7 +20,7 @@
*
*/
#include "main.h"
#include "global.h"
#if EFI_ENGINE_AUDI_AAN || defined(__DOXYGEN__)

View File

@ -8,7 +8,7 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"
#include "daihatsu.h"
EXTERN_ENGINE;

View File

@ -14,7 +14,7 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"
#if EFI_SUPPORT_DODGE_NEON || defined(__DOXYGEN__)

View File

@ -7,7 +7,7 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"
#include "dodge_ram.h"
#include "custom_engine.h"
#include "allsensors.h"

View File

@ -7,7 +7,7 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"
#include "dodge_stratus.h"
#include "engine_math.h"

View File

@ -13,7 +13,7 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"
#include "ford_1995_inline_6.h"
#include "engine_math.h"
#include "allsensors.h"

View File

@ -9,7 +9,7 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"
#include "ford_aspire.h"

View File

@ -9,7 +9,7 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"
#if EFI_SUPPORT_FORD_FIESTA || defined(__DOXYGEN__)

View File

@ -27,7 +27,7 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"
#include "trigger_decoder.h"
#include "thermistors.h"
#include "honda_accord.h"

View File

@ -7,7 +7,7 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"
#include "mazda_626.h"
#include "engine_math.h"
#include "honda_accord.h"

View File

@ -7,7 +7,7 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"
#if EFI_SUPPORT_NISSAN_PRIMERA || defined(__DOXYGEN__)
#include "nissan_primera.h"

View File

@ -13,7 +13,7 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"
#include "rover_v8.h"
#include "engine_math.h"
#include "allsensors.h"

View File

@ -6,4 +6,4 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"

View File

@ -7,7 +7,7 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"
#include "vw.h"
#include "custom_engine.h"
#include "ego.h"

View File

@ -1,4 +1,4 @@
#include "main.h"
#include "global.h"
#include "engine_state.h"
#include "tunerstudio.h"

View File

@ -8,7 +8,7 @@
#ifndef BLUETOOTH_H_
#define BLUETOOTH_H_
#include "main.h"
#include "global.h"
#include "tunerstudio_io.h"

View File

@ -59,7 +59,7 @@
*
*/
#include "main.h"
#include "global.h"
#include "engine_state.h"
#include "tunerstudio.h"

View File

@ -8,7 +8,7 @@
#ifndef TUNERSTUDIO_H_
#define TUNERSTUDIO_H_
#include "main.h"
#include "global.h"
#include "tunerstudio_io.h"
#if EFI_TUNER_STUDIO

View File

@ -5,7 +5,7 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"
#include "tunerstudio_io.h"
#include "console_io.h"
#include "engine.h"

View File

@ -7,7 +7,7 @@
#ifndef CONSOLE_TUNERSTUDIO_TUNERSTUDIO_IO_H_
#define CONSOLE_TUNERSTUDIO_TUNERSTUDIO_IO_H_
#include "main.h"
#include "global.h"
#if EFI_PROD_CODE
#include "usbconsole.h"

View File

@ -18,7 +18,7 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "main.h"
#include "global.h"
#include "console_io.h"
#include "rfiutil.h"
#include "tunerstudio.h"

View File

@ -6,7 +6,7 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"
#include "adc_inputs.h"
#include "can_hw.h"
#include "console_io.h"

View File

@ -7,7 +7,7 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"
#if EFI_HD44780_LCD

View File

@ -12,7 +12,7 @@
* @author Andrey Belomutskiy, (c) 2012-2018
*/
#include "main.h"
#include "global.h"
#include "max31855.h"
#include "hardware.h"

View File

@ -8,7 +8,7 @@
#ifndef HW_LAYER_VEHICLE_SPEED_H_
#define HW_LAYER_VEHICLE_SPEED_H_
#include "main.h"
#include "global.h"
/**
* @return vehicle speed, in kilometers per hour

View File

@ -104,13 +104,12 @@
*
*/
#include "main.h"
#include "global.h"
#include "trigger_structure.h"
#include "hardware.h"
#include "engine_controller.h"
#include "efiGpio.h"
#include "global.h"
#include "rfi_perftest.h"
#include "rusefi.h"
#include "memstreams.h"

View File

@ -17,7 +17,7 @@
#include <stdarg.h>
#include <string.h>
#include <stdbool.h>
#include "main.h"
#include "global.h"
#include "cli_registry.h"
#include "efilib.h"

View File

@ -31,7 +31,7 @@
*/
#include <stdbool.h>
#include "main.h"
#include "global.h"
#if ! EFI_UNIT_TEST || defined(__DOXYGEN__)
#include "chprintf.h"

View File

@ -9,7 +9,7 @@
#define EFILIB2_H_
#include <stdint.h>
#include "main.h"
#include "global.h"
typedef struct {
// todo: would probably be better to keep the high bits as 32 bit field to be sure
@ -32,7 +32,6 @@ class Overflow64Counter
State64 state;
};
#include "main.h"
#if (EFI_PROD_CODE || EFI_SIMULATOR)
#define GET_TIMESTAMP() port_rt_get_counter_value()
#else