Merge pull request #399 from andreika-git/board-configuration

call-board-configuration pull request
This commit is contained in:
rusefi 2017-04-21 18:46:06 -04:00 committed by GitHub
commit bf172e65ff
4 changed files with 15 additions and 2 deletions

View File

@ -127,3 +127,10 @@ bool mmc_lld_is_write_protected(MMCDriver *mmcp) {
*/
void boardInit(void) {
}
/**
* @brief Board-specific configuration code.
* @todo Add your board-specific code, if any.
*/
void setBoardConfiguration(void) {
}

View File

@ -1342,6 +1342,7 @@
extern "C" {
#endif
void boardInit(void);
void setBoardConfiguration(void);
#ifdef __cplusplus
}
#endif

View File

@ -89,6 +89,8 @@
#include "zil130.h"
#include "honda_600.h"
#include "board.h"
EXTERN_ENGINE;
#if EFI_TUNER_STUDIO || defined(__DOXYGEN__)
@ -866,6 +868,9 @@ void setDefaultConfiguration(DECLARE_ENGINE_PARAMETER_F) {
engineConfiguration->tpsAccelLength = 12;
engineConfiguration->tpsAccelEnrichmentThreshold = 40; // TPS % change, per engine cycle
// call overrided board-specific configuration setup, if needed (for custom boards only)
setBoardConfiguration();
}
void resetConfigurationExt(Logging * logger, engine_type_e engineType DECLARE_ENGINE_PARAMETER_S) {

View File

@ -1,5 +1,5 @@
// This file was generated by Version2Header
// Thu Apr 13 12:43:45 EDT 2017
// Sat Apr 22 01:25:51 EEST 2017
#ifndef VCS_VERSION
#define VCS_VERSION "13823"
#define VCS_VERSION "13886"
#endif