rename setBoardConfigurationOverrides (#2479)

* rename

* proteus

* comments

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
This commit is contained in:
Matthew Kennedy 2021-03-22 11:15:09 -07:00 committed by GitHub
parent 335d55b48d
commit 92d249918b
11 changed files with 20 additions and 20 deletions

View File

@ -129,13 +129,13 @@ void setSerialConfigurationOverrides(void) {
/**
* @brief Board-specific configuration code overrides.
* @brief Board-specific configuration defaults.
*
* See also setDefaultEngineConfiguration
*
* @todo Add your board-specific code, if any.
*/
void setBoardConfigurationOverrides(void) {
void setBoardDefaultConfiguration(void) {
setInjectorPins();
setIgnitionPins();
setLedPins();

View File

@ -40,7 +40,7 @@ void setPinConfigurationOverrides(void) {
engineConfiguration->fanPin = GPIO_UNASSIGNED;
}
void setBoardConfigurationOverrides(void) {
void setBoardDefaultConfiguration(void) {
// NOT USED
engineConfiguration->externalKnockSenseAdc = EFI_ADC_NONE;

View File

@ -190,13 +190,13 @@ void setSerialConfigurationOverrides(void) {
/**
* @brief Board-specific configuration code overrides.
* @brief Board-specific configuration defaults.
*
* See also setDefaultEngineConfiguration
*
* @todo Add your board-specific code, if any.
*/
void setBoardConfigurationOverrides(void) {
void setBoardDefaultConfiguration(void) {
setInjectorPins();
setIgnitionPins();
setLedPins();

View File

@ -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.
*/
void setBoardConfigurationOverrides(void) {
void setBoardDefaultConfiguration(void) {
setSerialConfigurationOverrides();
engineConfiguration->runningLedPin = GPIOB_0; //green LED

View File

@ -1,10 +1,10 @@
#include "adc_inputs.h"
/**
* @brief Board-specific configuration code overrides.
* @brief Board-specific configuration defaults.
* @todo Add your board-specific code, if any.
*/
void setBoardConfigurationOverrides(void) {
void setBoardDefaultConfiguration(void) {
}
/**

View File

@ -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.
*/
void setBoardConfigurationOverrides(void) {
void setBoardDefaultConfiguration(void) {
// give a chance to trigger SWD programmer... Wait for 2 secs (=2000 ms).
// TODO: remove it when the bootloader is ready
chThdSleepMilliseconds(2000);

View File

@ -176,13 +176,13 @@ void setSerialConfigurationOverrides(void) {
/**
* @brief Board-specific configuration code overrides.
* @brief Board-specific configuration defaults.
*
* See also setDefaultEngineConfiguration
*
* @todo Add your board-specific code, if any.
*/
void setBoardConfigurationOverrides(void) {
void setBoardDefaultConfiguration(void) {
setInjectorPins();
setIgnitionPins();
setLedPins();

View File

@ -5,10 +5,10 @@
#include "chconf_common.h"
/**
* @brief Board-specific configuration code overrides.
* @brief Board-specific configuration defaults.
* @todo Add your board-specific code, if any.
*/
void setBoardConfigurationOverrides(void) {
void setBoardDefaultConfiguration(void) {
}
/**

View File

@ -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.
*/
void setBoardConfigurationOverrides(void) {
void setBoardDefaultConfiguration(void) {
setSerialConfigurationOverrides();
/* Battery voltage */

View File

@ -1144,7 +1144,7 @@ void resetConfigurationExt(Logging * logger, configuration_callback_t boardCallb
#if EFI_PROD_CODE
// call overrided board-specific configuration setup, if needed (for custom boards only)
setBoardConfigurationOverrides();
setBoardDefaultConfiguration();
#endif
engineConfiguration->engineType = engineType;
@ -1159,7 +1159,7 @@ void resetConfigurationExt(Logging * logger, configuration_callback_t boardCallb
case PROMETHEUS_DEFAULTS:
case MINIMAL_PINS:
// 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;
case TEST_ENGINE:
setTestEngineConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);

View File

@ -50,7 +50,7 @@ extern "C"
extern "C" {
#endif
void boardInit(void);
void setBoardConfigurationOverrides(void);
void setBoardDefaultConfiguration(void);
void setPinConfigurationOverrides(void);
void setSerialConfigurationOverrides(void);
void setSdCardConfigurationOverrides(void);