rename setBoardConfigurationOverrides (#2479)
* rename * proteus * comments Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
This commit is contained in:
parent
335d55b48d
commit
92d249918b
|
@ -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();
|
||||
|
|
|
@ -40,7 +40,7 @@ void setPinConfigurationOverrides(void) {
|
|||
engineConfiguration->fanPin = GPIO_UNASSIGNED;
|
||||
|
||||
}
|
||||
void setBoardConfigurationOverrides(void) {
|
||||
void setBoardDefaultConfiguration(void) {
|
||||
|
||||
// NOT USED
|
||||
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
|
||||
*
|
||||
* @todo Add your board-specific code, if any.
|
||||
*/
|
||||
void setBoardConfigurationOverrides(void) {
|
||||
void setBoardDefaultConfiguration(void) {
|
||||
setInjectorPins();
|
||||
setIgnitionPins();
|
||||
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.
|
||||
*/
|
||||
void setBoardConfigurationOverrides(void) {
|
||||
void setBoardDefaultConfiguration(void) {
|
||||
setSerialConfigurationOverrides();
|
||||
|
||||
engineConfiguration->runningLedPin = GPIOB_0; //green LED
|
||||
|
|
|
@ -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) {
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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) {
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue