auto-sync
This commit is contained in:
parent
f2cc8a60c5
commit
328b13f751
|
@ -500,6 +500,8 @@ void setDefaultConfiguration(engine_configuration_s *engineConfiguration, board_
|
|||
boardConfiguration->spi3misoPin = GPIOB_4;
|
||||
boardConfiguration->spi3sckPin = GPIOB_3;
|
||||
|
||||
boardConfiguration->hip9011Gain = 1;
|
||||
|
||||
boardConfiguration->isSdCardEnabled = false;
|
||||
boardConfiguration->isFastAdcEnabled = false;
|
||||
boardConfiguration->isEngineControlEnabled = true;
|
||||
|
|
|
@ -259,7 +259,8 @@ typedef struct {
|
|||
brain_pin_e spi3misoPin;
|
||||
brain_pin_e spi3sckPin;
|
||||
|
||||
int unusedbs[13];
|
||||
float hip9011Gain;
|
||||
int unusedbs[12];
|
||||
|
||||
le_formula_t le_formulas[LE_COMMAND_COUNT];
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
extern pin_output_mode_e DEFAULT_OUTPUT;
|
||||
|
||||
static int bandIndex;
|
||||
static int gainIndex;
|
||||
static int intergratorIndex = -1;
|
||||
static bool_t isHip9011Busy = false;
|
||||
|
||||
|
@ -268,6 +269,10 @@ static void intHoldCallback(trigger_event_e ckpEventType,
|
|||
NULL);
|
||||
}
|
||||
|
||||
static void setGain(float value) {
|
||||
|
||||
}
|
||||
|
||||
void initHip9011(void) {
|
||||
if (!boardConfiguration->isHip9011Enabled)
|
||||
return;
|
||||
|
@ -318,6 +323,7 @@ void initHip9011(void) {
|
|||
// palSetPadMode(GPIOB, 15, PAL_MODE_ALTERNATE(EFI_SPI2_AF) | PAL_STM32_OTYPE_OPENDRAIN);
|
||||
|
||||
addConsoleAction("hipinfo", showHipInfo);
|
||||
addConsoleActionF("set_gain", setGain);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -264,5 +264,5 @@ int getRusEfiVersion(void) {
|
|||
return 1; // this is here to make the compiler happy about the unused array
|
||||
if (UNUSED_CCM_SIZE == 0)
|
||||
return 1; // this is here to make the compiler happy about the unused array
|
||||
return 20150101;
|
||||
return 20150102;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue