mirror of https://github.com/rusefi/rusefi.git
auto-sync
This commit is contained in:
parent
f27f86d1cb
commit
bc3b7a1eb6
|
@ -69,7 +69,6 @@ extern bool hasFirmwareErrorFlag;
|
||||||
extern LEElementPool sysPool;
|
extern LEElementPool sysPool;
|
||||||
extern LEElementPool userPool;
|
extern LEElementPool userPool;
|
||||||
|
|
||||||
|
|
||||||
static SimplePwm fsioPwm[LE_COMMAND_COUNT] CCM_OPTIONAL;
|
static SimplePwm fsioPwm[LE_COMMAND_COUNT] CCM_OPTIONAL;
|
||||||
|
|
||||||
persistent_config_container_s persistentState CCM_OPTIONAL;
|
persistent_config_container_s persistentState CCM_OPTIONAL;
|
||||||
|
@ -327,7 +326,7 @@ static void printAnalogInfo(void) {
|
||||||
static THD_WORKING_AREA(csThreadStack, UTILITY_THREAD_STACK_SIZE); // declare thread stack
|
static THD_WORKING_AREA(csThreadStack, UTILITY_THREAD_STACK_SIZE); // declare thread stack
|
||||||
|
|
||||||
static void showFsio(const char *msg, LEElement *element) {
|
static void showFsio(const char *msg, LEElement *element) {
|
||||||
if(msg!=NULL)
|
if (msg != NULL)
|
||||||
scheduleMsg(&logger, "%s:", msg);
|
scheduleMsg(&logger, "%s:", msg);
|
||||||
while (element != NULL) {
|
while (element != NULL) {
|
||||||
scheduleMsg(&logger, "action %d: fValue=%f iValue=%d", element->action, element->fValue, element->iValue);
|
scheduleMsg(&logger, "action %d: fValue=%f iValue=%d", element->action, element->fValue, element->iValue);
|
||||||
|
@ -344,16 +343,31 @@ static void showFsioInfo(void) {
|
||||||
for (int i = 0; i < LE_COMMAND_COUNT; i++) {
|
for (int i = 0; i < LE_COMMAND_COUNT; i++) {
|
||||||
char * exp = boardConfiguration->le_formulas[i];
|
char * exp = boardConfiguration->le_formulas[i];
|
||||||
if (exp[0] != 0) {
|
if (exp[0] != 0) {
|
||||||
scheduleMsg(&logger, "FSIO #%d [%s] at %s@%dHz = %f", (i + 1), exp, hwPortname(boardConfiguration->fsioPins[i]),
|
scheduleMsg(&logger, "FSIO #%d [%s] at %s@%dHz = %f", (i + 1), exp,
|
||||||
boardConfiguration->fsioFrequency[i],
|
hwPortname(boardConfiguration->fsioPins[i]), boardConfiguration->fsioFrequency[i],
|
||||||
engineConfiguration2->fsioLastValue[i]);
|
engineConfiguration2->fsioLastValue[i]);
|
||||||
scheduleMsg(&logger, "user-defined #%d value=%f", (i + 1), engine->engineConfiguration2->fsioLastValue[i]);
|
scheduleMsg(&logger, "user-defined #%d value=%f", (i + 1), engine->engineConfiguration2->fsioLastValue[i]);
|
||||||
showFsio(NULL, fsioLogics[i]);
|
showFsio(NULL, fsioLogics[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for (int i = 0; i < LE_COMMAND_COUNT; i++) {
|
||||||
|
float v = boardConfiguration->fsio_setting[i];
|
||||||
|
if (!cisnan(v)) {
|
||||||
|
scheduleMsg(&logger, "user property #%d: %f", i + 1, v);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void setFsioSetting(float indexF, float value) {
|
||||||
|
int index = indexF;
|
||||||
|
if (index < 0 || index >= LE_COMMAND_COUNT) {
|
||||||
|
scheduleMsg(&logger, "invalid index %d", index);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
engineConfiguration->bc.fsio_setting[index] = value;
|
||||||
|
}
|
||||||
|
|
||||||
static void setFsioFrequency(int index, int frequency) {
|
static void setFsioFrequency(int index, int frequency) {
|
||||||
index--;
|
index--;
|
||||||
if (index < 0 || index >= LE_COMMAND_COUNT) {
|
if (index < 0 || index >= LE_COMMAND_COUNT) {
|
||||||
|
|
|
@ -265,5 +265,5 @@ int getRusEfiVersion(void) {
|
||||||
return 1; // this is here to make the compiler happy about the unused array
|
return 1; // this is here to make the compiler happy about the unused array
|
||||||
if (UNUSED_CCM_SIZE == 0)
|
if (UNUSED_CCM_SIZE == 0)
|
||||||
return 1; // this is here to make the compiler happy about the unused array
|
return 1; // this is here to make the compiler happy about the unused array
|
||||||
return 20141208;
|
return 20141209;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue