refactoring
This commit is contained in:
parent
0244509d79
commit
38d21215ab
|
@ -1,6 +1,8 @@
|
|||
/*
|
||||
* @file global.h
|
||||
*
|
||||
* Global header file for firmware
|
||||
*
|
||||
* @date May 27, 2013
|
||||
* @author Andrey Belomutskiy, (c) 2012-2017
|
||||
*/
|
||||
|
@ -37,9 +39,7 @@ typedef unsigned int time_t;
|
|||
#include "efifeatures.h"
|
||||
#include "rusefi_types.h"
|
||||
#include "rusefi_enums.h"
|
||||
#if EFI_PROD_CODE
|
||||
#include "io_pins.h"
|
||||
#endif
|
||||
#include "auto_generated_enums.h"
|
||||
#include "obd_error_codes.h"
|
||||
#include "error_handling.h"
|
||||
|
|
|
@ -21,14 +21,13 @@
|
|||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "engine.h"
|
||||
#include "main.h"
|
||||
#include "board_test.h"
|
||||
#include "rusefi_enums.h"
|
||||
#include "pin_repository.h"
|
||||
#include "efiGpio.h"
|
||||
#include "adc_inputs.h"
|
||||
#include "AdcConfiguration.h"
|
||||
#include "engine.h"
|
||||
|
||||
static volatile int stepCoutner = 0;
|
||||
static volatile brain_pin_e currentPin = GPIO_UNASSIGNED;
|
||||
|
|
|
@ -31,7 +31,7 @@ extern "C"
|
|||
#include "datalogging.h"
|
||||
#include "loggingcentral.h"
|
||||
#include "eficonsole.h"
|
||||
#endif
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#include "chprintf.h"
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
#include "global.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include "datalogging.h"
|
||||
#include "loggingcentral.h"
|
||||
#include "eficonsole.h"
|
||||
#include "cli_registry.h"
|
||||
#include "chprintf.h"
|
||||
#endif
|
||||
#include "cli_registry.h"
|
||||
#include "datalogging.h"
|
||||
#include "eficonsole.h"
|
||||
#include "loggingcentral.h"
|
||||
#endif /* __cplusplus */
|
||||
|
|
|
@ -1,28 +1,36 @@
|
|||
/*
|
||||
* @file global.h
|
||||
*
|
||||
* Global header file for win32 or posix simulator
|
||||
*
|
||||
* @date May 27, 2013
|
||||
* @author Andrey Belomutskiy, (c) 2012-2017
|
||||
*/
|
||||
|
||||
#ifndef GLOBAL_H_
|
||||
#define GLOBAL_H_
|
||||
|
||||
#define DEFAULT_ENGINE_TYPE FORD_ESCORT_GT
|
||||
|
||||
#include <ch.h>
|
||||
#include <hal.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
|
||||
#include "efifeatures.h"
|
||||
|
||||
#if EFI_SIMULATOR
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#include "rusefi_enums.h"
|
||||
#include "auto_generated_enums.h"
|
||||
#include "obd_error_codes.h"
|
||||
#include "error_handling.h"
|
||||
|
||||
#include "boards.h"
|
||||
#include "efilib.h"
|
||||
#include "efitime.h"
|
||||
#include "error_handling.h"
|
||||
#include "rusefi_enums.h"
|
||||
#include "obd_error_codes.h"
|
||||
|
||||
#define EFI_UNIT_TEST FALSE
|
||||
|
||||
|
@ -40,9 +48,6 @@
|
|||
|
||||
#define MY_US2ST(x) ((x) / 10)
|
||||
|
||||
#ifndef GLOBAL_FT_H_
|
||||
#define GLOBAL_FT_H_
|
||||
|
||||
#define EFI_ERROR_CODE 0xffffffff
|
||||
|
||||
#define DL_OUTPUT_BUFFER 9000
|
||||
|
@ -69,10 +74,6 @@ typedef struct {
|
|||
|
||||
extern TestStream testStream;
|
||||
|
||||
//##define TRUE 1
|
||||
//#define FALSE 0
|
||||
#endif /* GLOBAL_FT_H_ */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
|
@ -114,3 +115,5 @@ void applyNewConfiguration(void);
|
|||
#define CONFIG(x) persistentState.persistentConfiguration.engineConfiguration.x
|
||||
#define ENGINE(x) engine->x
|
||||
#define TRIGGER_SHAPE(x) engine->triggerCentral.triggerShape.x
|
||||
|
||||
#endif /* GLOBAL_H_ */
|
||||
|
|
Loading…
Reference in New Issue