auto-sync
This commit is contained in:
parent
b1e8989631
commit
b298f29f14
|
@ -163,6 +163,8 @@ void setDodgeNeonNGCEngineConfiguration(engine_configuration_s *engineConfigurat
|
|||
setFuelLoadBin(engineConfiguration, 0, 100);
|
||||
setTimingLoadBin(engineConfiguration, 0, 100);
|
||||
|
||||
boardConfiguration->malfunctionIndicatorPin = GPIO_NONE;
|
||||
|
||||
/**
|
||||
* D14/W10 O2 Sensor
|
||||
*/
|
||||
|
@ -183,7 +185,7 @@ void setDodgeNeonNGCEngineConfiguration(engine_configuration_s *engineConfigurat
|
|||
boardConfiguration->ignitionPins[2] = GPIOE_8;
|
||||
boardConfiguration->ignitionPins[3] = GPIO_NONE;
|
||||
|
||||
boardConfiguration->idleValvePin = GPIOE_5;
|
||||
boardConfiguration->idleValvePin = GPIO_NONE;
|
||||
|
||||
boardConfiguration->fuelPumpPin = GPIOE_3;
|
||||
boardConfiguration->fuelPumpPinMode = OM_DEFAULT;
|
||||
|
|
|
@ -131,7 +131,8 @@ void printConfiguration(engine_configuration_s *engineConfiguration, engine_conf
|
|||
|
||||
scheduleMsg(&logger, "idlePin: mode %s @ %s", getPin_output_mode_e(boardConfiguration->idleValvePinMode),
|
||||
hwPortname(boardConfiguration->idleValvePin));
|
||||
scheduleMsg(&logger, "malfunctionIndicatorPinMode: %s",
|
||||
scheduleMsg(&logger, "malfunctionIndicatorn: %s mode=%s",
|
||||
hwPortname(boardConfiguration->malfunctionIndicatorPin),
|
||||
pinModeToString(boardConfiguration->malfunctionIndicatorPinMode));
|
||||
|
||||
scheduleMsg(&logger, "fuelPumpPin: mode %s @ %s", getPin_output_mode_e(boardConfiguration->fuelPumpPinMode),
|
||||
|
|
|
@ -31,11 +31,14 @@
|
|||
* @brief Initialize the hardware output pin while also assigning it a logical name
|
||||
*/
|
||||
void initOutputPinExt(const char *msg, OutputPin *outputPin, GPIO_TypeDef *port, uint32_t pinNumber, iomode_t mode) {
|
||||
// if (outputPin->port != NULL) {
|
||||
if (outputPin->port != NULL) {
|
||||
/**
|
||||
* here we check if another physical pin is already assigned to this logical output
|
||||
*/
|
||||
// todo: need to clear '&outputs' in io_pins.c
|
||||
// firmwareError("outputPin already assigned to %x%d", outputPin->port, outputPin->pin);
|
||||
// return;
|
||||
// }
|
||||
firmwareError("outputPin already assigned to %x%d", outputPin->port, outputPin->pin);
|
||||
return;
|
||||
}
|
||||
outputPin->currentLogicValue = INITIAL_PIN_STATE;
|
||||
outputPin->port = port;
|
||||
outputPin->pin = pinNumber;
|
||||
|
|
|
@ -54,7 +54,6 @@ void setDefaultPinState(io_pin_e pin, pin_output_mode_e *outputMode) {
|
|||
setOutputPinValue(pin, FALSE); // initial state
|
||||
}
|
||||
|
||||
|
||||
static void outputPinRegisterExt(const char *msg, io_pin_e ioPin, GPIO_TypeDef *port, uint32_t pin,
|
||||
pin_output_mode_e *outputMode) {
|
||||
efiAssertVoid((int)ioPin < IO_PIN_COUNT, "io pin out of range");
|
||||
|
|
|
@ -158,7 +158,12 @@ void mySetPadMode(const char *msg, ioportid_t port, ioportmask_t pin, iomode_t m
|
|||
int index = portIndex * 16 + pin;
|
||||
|
||||
if (PIN_USED[index] != NULL) {
|
||||
warning(OBD_PCM_Processor_Fault, "%s%d req by %s used by %s", portname(port), pin, msg, PIN_USED[index]);
|
||||
/**
|
||||
* todo: the problem is that this warning happends before the console is even
|
||||
* connected, so the warning is never displayed on the console and that's quite a problem!
|
||||
*/
|
||||
// warning(OBD_PCM_Processor_Fault, "%s%d req by %s used by %s", portname(port), pin, msg, PIN_USED[index]);
|
||||
firmwareError("%s%d req by %s used by %s", portname(port), pin, msg, PIN_USED[index]);
|
||||
return;
|
||||
}
|
||||
markUsed(index, msg);
|
||||
|
|
Loading…
Reference in New Issue