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 2eaa6de822
commit 51a5b4d6d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 26 additions and 26 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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();

View File

@ -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);

View File

@ -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;

View File

@ -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;

View File

@ -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();

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. * @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

View File

@ -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) {
} }
/** /**

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. * @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);

View File

@ -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();

View File

@ -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

View File

@ -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) {
} }
/** /**

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. * @todo Add your board-specific code, if any.
*/ */
void setBoardConfigurationOverrides(void) { void setBoardDefaultConfiguration(void) {
setSerialConfigurationOverrides(); setSerialConfigurationOverrides();
/* Battery voltage */ /* Battery voltage */

View File

@ -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);

View File

@ -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);