refactoring: reducing header tree hell

This commit is contained in:
rusefi 2019-01-20 23:44:05 -05:00
parent e1687b30ca
commit db80801191
2 changed files with 10 additions and 5 deletions

View File

@ -10,7 +10,7 @@
#ifndef ACC_ENRICHMENT_H_
#define ACC_ENRICHMENT_H_
#include "engine_configuration.h"
#include "global.h"
#include "cyclic_buffer.h"
#include "table_helper.h"

View File

@ -17,6 +17,15 @@
#include "boards.h"
// this is needed by all DECLARE_ENGINE_PARAMETER_* usages
#include "engine_configuration_generated_structures.h"
#ifdef __cplusplus
// this is needed by all DECLARE_ENGINE_PARAMETER_* usages
class Engine;
#endif /* __cplusplus */
#ifdef __cplusplus
// todo: include it right here? #include "unit_test_framework.h"
extern "C"
@ -60,10 +69,6 @@ void print(const char *fmt, ...);
#define EXTERN_ENGINE extern EnginePins enginePins
#define EXTERN_CONFIG
#ifdef __cplusplus
class Engine;
#endif /* __cplusplus */
/**
* @see firmware/global.h for explanation
*/