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.
|
||||
*/
|
||||
void setBoardConfiguration(void) {
|
||||
void setBoardConfigurationOverrides(void) {
|
||||
}
|
||||
|
|
|
@ -1342,7 +1342,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
void boardInit(void);
|
||||
void setBoardConfiguration(void);
|
||||
void setBoardConfigurationOverrides(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include "idle_thread.h"
|
||||
#include "alternatorController.h"
|
||||
#include "hardware.h"
|
||||
#include "board.h"
|
||||
#endif /* EFI_PROD_CODE */
|
||||
|
||||
#include "hip9011_lookup.h"
|
||||
|
@ -89,8 +90,6 @@
|
|||
#include "zil130.h"
|
||||
#include "honda_600.h"
|
||||
|
||||
#include "board.h"
|
||||
|
||||
EXTERN_ENGINE;
|
||||
|
||||
#if EFI_TUNER_STUDIO || defined(__DOXYGEN__)
|
||||
|
@ -868,9 +867,11 @@ void setDefaultConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
|||
|
||||
engineConfiguration->tpsAccelLength = 12;
|
||||
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)
|
||||
setBoardConfiguration();
|
||||
setBoardConfigurationOverrides();
|
||||
#endif
|
||||
}
|
||||
|
||||
void resetConfigurationExt(Logging * logger, engine_type_e engineType DECLARE_ENGINE_PARAMETER_S) {
|
||||
|
|
Loading…
Reference in New Issue