mirror of https://github.com/rusefi/rusefi-1.git
Merge pull request #400 from andreika-git/board-configuration
Board configuration
This commit is contained in:
commit
2da6e4f4a4
|
@ -129,8 +129,8 @@ void boardInit(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Board-specific configuration code.
|
* @brief Board-specific configuration code overrides.
|
||||||
* @todo Add your board-specific code, if any.
|
* @todo Add your board-specific code, if any.
|
||||||
*/
|
*/
|
||||||
void setBoardConfiguration(void) {
|
void setBoardConfigurationOverrides(void) {
|
||||||
}
|
}
|
||||||
|
|
|
@ -1342,7 +1342,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
void boardInit(void);
|
void boardInit(void);
|
||||||
void setBoardConfiguration(void);
|
void setBoardConfigurationOverrides(void);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
#include "idle_thread.h"
|
#include "idle_thread.h"
|
||||||
#include "alternatorController.h"
|
#include "alternatorController.h"
|
||||||
#include "hardware.h"
|
#include "hardware.h"
|
||||||
|
#include "board.h"
|
||||||
#endif /* EFI_PROD_CODE */
|
#endif /* EFI_PROD_CODE */
|
||||||
|
|
||||||
#include "hip9011_lookup.h"
|
#include "hip9011_lookup.h"
|
||||||
|
@ -89,8 +90,6 @@
|
||||||
#include "zil130.h"
|
#include "zil130.h"
|
||||||
#include "honda_600.h"
|
#include "honda_600.h"
|
||||||
|
|
||||||
#include "board.h"
|
|
||||||
|
|
||||||
EXTERN_ENGINE;
|
EXTERN_ENGINE;
|
||||||
|
|
||||||
#if EFI_TUNER_STUDIO || defined(__DOXYGEN__)
|
#if EFI_TUNER_STUDIO || defined(__DOXYGEN__)
|
||||||
|
@ -868,9 +867,11 @@ void setDefaultConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
||||||
|
|
||||||
engineConfiguration->tpsAccelLength = 12;
|
engineConfiguration->tpsAccelLength = 12;
|
||||||
engineConfiguration->tpsAccelEnrichmentThreshold = 40; // TPS % change, per engine cycle
|
engineConfiguration->tpsAccelEnrichmentThreshold = 40; // TPS % change, per engine cycle
|
||||||
|
|
||||||
|
#if EFI_PROD_CODE || defined(__DOXYGEN__)
|
||||||
// call overrided board-specific configuration setup, if needed (for custom boards only)
|
// call overrided board-specific configuration setup, if needed (for custom boards only)
|
||||||
setBoardConfiguration();
|
setBoardConfigurationOverrides();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void resetConfigurationExt(Logging * logger, engine_type_e engineType DECLARE_ENGINE_PARAMETER_S) {
|
void resetConfigurationExt(Logging * logger, engine_type_e engineType DECLARE_ENGINE_PARAMETER_S) {
|
||||||
|
|
Loading…
Reference in New Issue