mirror of https://github.com/rusefi/rusefi.git
auto-sync
This commit is contained in:
parent
c35a769d95
commit
72af5eabcd
|
@ -19,6 +19,7 @@
|
||||||
#include "engine_configuration.h"
|
#include "engine_configuration.h"
|
||||||
#include "thermistors.h"
|
#include "thermistors.h"
|
||||||
#include "engine_math.h"
|
#include "engine_math.h"
|
||||||
|
#include "le_functions.h"
|
||||||
|
|
||||||
// setFrankenso_01_LCD
|
// setFrankenso_01_LCD
|
||||||
#include "honda_accord.h"
|
#include "honda_accord.h"
|
||||||
|
@ -273,7 +274,8 @@ void setDodgeNeonNGCEngineConfiguration(engine_configuration_s *engineConfigurat
|
||||||
*/
|
*/
|
||||||
engineConfiguration->cltAdcChannel = EFI_ADC_12;
|
engineConfiguration->cltAdcChannel = EFI_ADC_12;
|
||||||
|
|
||||||
//setFsio(engineConfiguration, 0, GPIO)
|
setFsioExt(engineConfiguration, 0, GPIOE_10, "0.6", 400);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* EFI_SUPPORT_DODGE_NEON */
|
#endif /* EFI_SUPPORT_DODGE_NEON */
|
||||||
|
|
|
@ -57,9 +57,14 @@ float getLEValue(Engine *engine, calc_stack_t *s, le_action_e action) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void setFsio(engine_configuration_s *engineConfiguration, int index, brain_pin_e pin, const char * exp) {
|
void setFsioExt(engine_configuration_s *engineConfiguration, int index, brain_pin_e pin, const char * exp, int freq) {
|
||||||
board_configuration_s *boardConfiguration = &engineConfiguration->bc;
|
board_configuration_s *boardConfiguration = &engineConfiguration->bc;
|
||||||
|
|
||||||
boardConfiguration->fsioPins[index] = pin;
|
boardConfiguration->fsioPins[index] = pin;
|
||||||
strcpy(boardConfiguration->le_formulas[index], exp);
|
strcpy(boardConfiguration->le_formulas[index], exp);
|
||||||
|
boardConfiguration->fsioFrequency[index] = freq;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setFsio(engine_configuration_s *engineConfiguration, int index, brain_pin_e pin, const char * exp) {
|
||||||
|
setFsioExt(engineConfiguration, index, pin, exp, 0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,5 +30,6 @@
|
||||||
|
|
||||||
float getLEValue(Engine *engine, calc_stack_t *s, le_action_e action);
|
float getLEValue(Engine *engine, calc_stack_t *s, le_action_e action);
|
||||||
void setFsio(engine_configuration_s *engineConfiguration, int index, brain_pin_e pin, const char * exp);
|
void setFsio(engine_configuration_s *engineConfiguration, int index, brain_pin_e pin, const char * exp);
|
||||||
|
void setFsioExt(engine_configuration_s *engineConfiguration, int index, brain_pin_e pin, const char * exp, int freq);
|
||||||
|
|
||||||
#endif /* LE_FUNCTIONS_H_ */
|
#endif /* LE_FUNCTIONS_H_ */
|
||||||
|
|
|
@ -394,6 +394,9 @@ static void setUserOutput(const char *indexStr, const char *quotedLine, Engine *
|
||||||
|
|
||||||
scheduleMsg(&logger, "setting user out #%d to [%s]", index + 1, l);
|
scheduleMsg(&logger, "setting user out #%d to [%s]", index + 1, l);
|
||||||
strcpy(engine->engineConfiguration->bc.le_formulas[index], l);
|
strcpy(engine->engineConfiguration->bc.le_formulas[index], l);
|
||||||
|
// this would apply the changes
|
||||||
|
parseUserFsio(PASS_ENGINE_PARAMETER_F);
|
||||||
|
showFsioInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setInt(const char *offsetStr, const char *valueStr) {
|
static void setInt(const char *offsetStr, const char *valueStr) {
|
||||||
|
|
Loading…
Reference in New Issue