rename setBoardConfigurationOverrides (#2479)
* rename * proteus * comments Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
This commit is contained in:
parent
2eaa6de822
commit
51a5b4d6d5
|
@ -24,7 +24,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
void boardInit(void);
|
void boardInit(void);
|
||||||
void setBoardConfigurationOverrides(void);
|
void setBoardDefaultConfiguration(void);
|
||||||
void setPinConfigurationOverrides(void);
|
void setPinConfigurationOverrides(void);
|
||||||
void setSerialConfigurationOverrides(void);
|
void setSerialConfigurationOverrides(void);
|
||||||
void setSdCardConfigurationOverrides(void);
|
void setSdCardConfigurationOverrides(void);
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
EXTERN_ENGINE;
|
EXTERN_ENGINE;
|
||||||
|
|
||||||
void setBoardConfigurationOverrides(void) {
|
void setBoardDefaultConfiguration(void) {
|
||||||
setOperationMode(engineConfiguration, FOUR_STROKE_CRANK_SENSOR);
|
setOperationMode(engineConfiguration, FOUR_STROKE_CRANK_SENSOR);
|
||||||
|
|
||||||
engineConfiguration->trigger.type = TT_TOOTHED_WHEEL_60_2;
|
engineConfiguration->trigger.type = TT_TOOTHED_WHEEL_60_2;
|
||||||
|
|
|
@ -129,13 +129,13 @@ void setSerialConfigurationOverrides(void) {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Board-specific configuration code overrides.
|
* @brief Board-specific configuration defaults.
|
||||||
*
|
*
|
||||||
* See also setDefaultEngineConfiguration
|
* See also setDefaultEngineConfiguration
|
||||||
*
|
*
|
||||||
* @todo Add your board-specific code, if any.
|
* @todo Add your board-specific code, if any.
|
||||||
*/
|
*/
|
||||||
void setBoardConfigurationOverrides(void) {
|
void setBoardDefaultConfiguration(void) {
|
||||||
setInjectorPins();
|
setInjectorPins();
|
||||||
setIgnitionPins();
|
setIgnitionPins();
|
||||||
setLedPins();
|
setLedPins();
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
void boardInit(void);
|
void boardInit(void);
|
||||||
void setBoardConfigurationOverrides(void);
|
void setBoardDefaultConfiguration(void);
|
||||||
void setPinConfigurationOverrides(void);
|
void setPinConfigurationOverrides(void);
|
||||||
void setSerialConfigurationOverrides(void);
|
void setSerialConfigurationOverrides(void);
|
||||||
void setSdCardConfigurationOverrides(void);
|
void setSdCardConfigurationOverrides(void);
|
||||||
|
|
|
@ -21,7 +21,7 @@ char __debugBuffer[80];
|
||||||
int __debugEnabled = 0;
|
int __debugEnabled = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void setBoardConfigurationOverrides(void) {
|
void setBoardDefaultConfiguration(void) {
|
||||||
setOperationMode(engineConfiguration, FOUR_STROKE_CRANK_SENSOR);
|
setOperationMode(engineConfiguration, FOUR_STROKE_CRANK_SENSOR);
|
||||||
engineConfiguration->trigger.type = TT_TOOTHED_WHEEL_60_2;
|
engineConfiguration->trigger.type = TT_TOOTHED_WHEEL_60_2;
|
||||||
engineConfiguration->useOnlyRisingEdgeForTrigger = true;
|
engineConfiguration->useOnlyRisingEdgeForTrigger = true;
|
||||||
|
|
|
@ -40,7 +40,7 @@ void setPinConfigurationOverrides(void) {
|
||||||
engineConfiguration->fanPin = GPIO_UNASSIGNED;
|
engineConfiguration->fanPin = GPIO_UNASSIGNED;
|
||||||
|
|
||||||
}
|
}
|
||||||
void setBoardConfigurationOverrides(void) {
|
void setBoardDefaultConfiguration(void) {
|
||||||
|
|
||||||
// NOT USED
|
// NOT USED
|
||||||
engineConfiguration->externalKnockSenseAdc = EFI_ADC_NONE;
|
engineConfiguration->externalKnockSenseAdc = EFI_ADC_NONE;
|
||||||
|
|
|
@ -190,13 +190,13 @@ void setSerialConfigurationOverrides(void) {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Board-specific configuration code overrides.
|
* @brief Board-specific configuration defaults.
|
||||||
*
|
*
|
||||||
* See also setDefaultEngineConfiguration
|
* See also setDefaultEngineConfiguration
|
||||||
*
|
*
|
||||||
* @todo Add your board-specific code, if any.
|
* @todo Add your board-specific code, if any.
|
||||||
*/
|
*/
|
||||||
void setBoardConfigurationOverrides(void) {
|
void setBoardDefaultConfiguration(void) {
|
||||||
setInjectorPins();
|
setInjectorPins();
|
||||||
setIgnitionPins();
|
setIgnitionPins();
|
||||||
setLedPins();
|
setLedPins();
|
||||||
|
|
|
@ -37,10 +37,10 @@ void setSdCardConfigurationOverrides(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Board-specific configuration code overrides.
|
* @brief Board-specific configuration defaults.
|
||||||
* @todo Add your board-specific code, if any.
|
* @todo Add your board-specific code, if any.
|
||||||
*/
|
*/
|
||||||
void setBoardConfigurationOverrides(void) {
|
void setBoardDefaultConfiguration(void) {
|
||||||
setSerialConfigurationOverrides();
|
setSerialConfigurationOverrides();
|
||||||
|
|
||||||
engineConfiguration->runningLedPin = GPIOB_0; //green LED
|
engineConfiguration->runningLedPin = GPIOB_0; //green LED
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#include "adc_inputs.h"
|
#include "adc_inputs.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Board-specific configuration code overrides.
|
* @brief Board-specific configuration defaults.
|
||||||
* @todo Add your board-specific code, if any.
|
* @todo Add your board-specific code, if any.
|
||||||
*/
|
*/
|
||||||
void setBoardConfigurationOverrides(void) {
|
void setBoardDefaultConfiguration(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -128,10 +128,10 @@ void setSdCardConfigurationOverrides(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Board-specific configuration code overrides.
|
* @brief Board-specific configuration defaults.
|
||||||
* @todo Add your board-specific code, if any.
|
* @todo Add your board-specific code, if any.
|
||||||
*/
|
*/
|
||||||
void setBoardConfigurationOverrides(void) {
|
void setBoardDefaultConfiguration(void) {
|
||||||
// give a chance to trigger SWD programmer... Wait for 2 secs (=2000 ms).
|
// give a chance to trigger SWD programmer... Wait for 2 secs (=2000 ms).
|
||||||
// TODO: remove it when the bootloader is ready
|
// TODO: remove it when the bootloader is ready
|
||||||
chThdSleepMilliseconds(2000);
|
chThdSleepMilliseconds(2000);
|
||||||
|
|
|
@ -176,13 +176,13 @@ void setSerialConfigurationOverrides(void) {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Board-specific configuration code overrides.
|
* @brief Board-specific configuration defaults.
|
||||||
*
|
*
|
||||||
* See also setDefaultEngineConfiguration
|
* See also setDefaultEngineConfiguration
|
||||||
*
|
*
|
||||||
* @todo Add your board-specific code, if any.
|
* @todo Add your board-specific code, if any.
|
||||||
*/
|
*/
|
||||||
void setBoardConfigurationOverrides(void) {
|
void setBoardDefaultConfiguration(void) {
|
||||||
setInjectorPins();
|
setInjectorPins();
|
||||||
setIgnitionPins();
|
setIgnitionPins();
|
||||||
setLedPins();
|
setLedPins();
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
*
|
*
|
||||||
* These initialization functions are called from
|
* These initialization functions are called from
|
||||||
* firmware/controllers/algo/engine_configuration.cpp
|
* firmware/controllers/algo/engine_configuration.cpp
|
||||||
* void setBoardConfigurationOverrides(void);
|
* void setBoardDefaultConfiguration(void);
|
||||||
* void setPinConfigurationOverrides(void);
|
* void setPinConfigurationOverrides(void);
|
||||||
* void setSerialConfigurationOverrides(void);
|
* void setSerialConfigurationOverrides(void);
|
||||||
*
|
*
|
||||||
|
@ -134,7 +134,7 @@ void setSerialConfigurationOverrides(void) {
|
||||||
*
|
*
|
||||||
* @todo Add any board-specific code
|
* @todo Add any board-specific code
|
||||||
*/
|
*/
|
||||||
void setBoardConfigurationOverrides(void) {
|
void setBoardDefaultConfiguration(void) {
|
||||||
|
|
||||||
// Set indicator LED pins.
|
// Set indicator LED pins.
|
||||||
// This is often redundant with efifeatures.h or the run-time config
|
// This is often redundant with efifeatures.h or the run-time config
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
#include "chconf_common.h"
|
#include "chconf_common.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Board-specific configuration code overrides.
|
* @brief Board-specific configuration defaults.
|
||||||
* @todo Add your board-specific code, if any.
|
* @todo Add your board-specific code, if any.
|
||||||
*/
|
*/
|
||||||
void setBoardConfigurationOverrides(void) {
|
void setBoardDefaultConfiguration(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -40,10 +40,10 @@ void setSdCardConfigurationOverrides(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Board-specific configuration code overrides.
|
* @brief Board-specific configuration defaults.
|
||||||
* @todo Add your board-specific code, if any.
|
* @todo Add your board-specific code, if any.
|
||||||
*/
|
*/
|
||||||
void setBoardConfigurationOverrides(void) {
|
void setBoardDefaultConfiguration(void) {
|
||||||
setSerialConfigurationOverrides();
|
setSerialConfigurationOverrides();
|
||||||
|
|
||||||
/* Battery voltage */
|
/* Battery voltage */
|
||||||
|
|
|
@ -1144,7 +1144,7 @@ void resetConfigurationExt(Logging * logger, configuration_callback_t boardCallb
|
||||||
|
|
||||||
#if EFI_PROD_CODE
|
#if EFI_PROD_CODE
|
||||||
// call overrided board-specific configuration setup, if needed (for custom boards only)
|
// call overrided board-specific configuration setup, if needed (for custom boards only)
|
||||||
setBoardConfigurationOverrides();
|
setBoardDefaultConfiguration();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
engineConfiguration->engineType = engineType;
|
engineConfiguration->engineType = engineType;
|
||||||
|
@ -1159,7 +1159,7 @@ void resetConfigurationExt(Logging * logger, configuration_callback_t boardCallb
|
||||||
case PROMETHEUS_DEFAULTS:
|
case PROMETHEUS_DEFAULTS:
|
||||||
case MINIMAL_PINS:
|
case MINIMAL_PINS:
|
||||||
// all basic settings are already set in prepareVoidConfiguration(), no need to set anything here
|
// all basic settings are already set in prepareVoidConfiguration(), no need to set anything here
|
||||||
// nothing to do - we do it all in setBoardConfigurationOverrides
|
// nothing to do - we do it all in setBoardDefaultConfiguration
|
||||||
break;
|
break;
|
||||||
case TEST_ENGINE:
|
case TEST_ENGINE:
|
||||||
setTestEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
setTestEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);
|
||||||
|
|
|
@ -50,7 +50,7 @@ extern "C"
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
void boardInit(void);
|
void boardInit(void);
|
||||||
void setBoardConfigurationOverrides(void);
|
void setBoardDefaultConfiguration(void);
|
||||||
void setPinConfigurationOverrides(void);
|
void setPinConfigurationOverrides(void);
|
||||||
void setSerialConfigurationOverrides(void);
|
void setSerialConfigurationOverrides(void);
|
||||||
void setSdCardConfigurationOverrides(void);
|
void setSdCardConfigurationOverrides(void);
|
||||||
|
|
Loading…
Reference in New Issue