mirror of https://github.com/rusefi/rusefi-1.git
stop VSS pin
This commit is contained in:
parent
a1fb0bd72f
commit
d2581fcdba
|
@ -231,6 +231,7 @@ void applyNewHardwareSettings(void) {
|
||||||
stopIgnitionPins();
|
stopIgnitionPins();
|
||||||
stopCanPins();
|
stopCanPins();
|
||||||
stopETBPins();
|
stopETBPins();
|
||||||
|
stopVSSPins();
|
||||||
|
|
||||||
if (engineConfiguration->bc.is_enabled_spi_1 != activeConfiguration.bc.is_enabled_spi_1)
|
if (engineConfiguration->bc.is_enabled_spi_1 != activeConfiguration.bc.is_enabled_spi_1)
|
||||||
stopSpi(SPI_DEVICE_1);
|
stopSpi(SPI_DEVICE_1);
|
||||||
|
@ -288,6 +289,7 @@ void applyNewHardwareSettings(void) {
|
||||||
startIgnitionPins();
|
startIgnitionPins();
|
||||||
startCanPins();
|
startCanPins();
|
||||||
startETBPins();
|
startETBPins();
|
||||||
|
startVSSPins();
|
||||||
|
|
||||||
adcConfigListener(engine);
|
adcConfigListener(engine);
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,6 +66,15 @@ bool hasVehicleSpeedSensor() {
|
||||||
return boardConfiguration->vehicleSpeedSensorInputPin != GPIO_UNASSIGNED;
|
return boardConfiguration->vehicleSpeedSensorInputPin != GPIO_UNASSIGNED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void stopVSSPins(void) {
|
||||||
|
unmarkPin(activeConfiguration.bc.vehicleSpeedSensorInputPin);
|
||||||
|
// todo: remove driver from registeredIcus
|
||||||
|
}
|
||||||
|
|
||||||
|
void startVSSPins(void) {
|
||||||
|
// todo
|
||||||
|
}
|
||||||
|
|
||||||
void initVehicleSpeed(Logging *l) {
|
void initVehicleSpeed(Logging *l) {
|
||||||
logger = l;
|
logger = l;
|
||||||
addConsoleAction("speedinfo", speedInfo);
|
addConsoleAction("speedinfo", speedInfo);
|
||||||
|
|
|
@ -17,5 +17,7 @@ float getVehicleSpeed(void);
|
||||||
void initVehicleSpeed(Logging *logger);
|
void initVehicleSpeed(Logging *logger);
|
||||||
void setMockVehicleSpeed(float speedKPH);
|
void setMockVehicleSpeed(float speedKPH);
|
||||||
bool hasVehicleSpeedSensor();
|
bool hasVehicleSpeedSensor();
|
||||||
|
void stopVSSPins(void);
|
||||||
|
void startVSSPins(void);
|
||||||
|
|
||||||
#endif /* HW_LAYER_VEHICLE_SPEED_H_ */
|
#endif /* HW_LAYER_VEHICLE_SPEED_H_ */
|
||||||
|
|
Loading…
Reference in New Issue