auto-sync

This commit is contained in:
rusEfi 2014-11-22 17:04:49 -06:00
parent bd14d66161
commit 4ac178e4bf
4 changed files with 24 additions and 10 deletions

View File

@ -50,8 +50,21 @@ void setBmwE34(engine_configuration_s *engineConfiguration) {
bc->injectionPinMode = OM_INVERTED;
// emulating this 60-0 takes some resources, let's keep it slow by default
// rpm 200
bc->injectionPins[0] = GPIOB_9; // #1
bc->injectionPins[1] = GPIOB_8; // #2
/**
* this is a relatively dirty performance hack: with unassigned pin we
* have less stuff to put into wave chart
*/
bc->injectionPins[2] = GPIO_UNASSIGNED; // #3
bc->injectionPins[3] = GPIO_UNASSIGNED; // #4
bc->injectionPins[4] = GPIO_UNASSIGNED; // #5
bc->injectionPins[5] = GPIO_UNASSIGNED; // #6
/**
* emulating the 60-0 trigger takes some resources, let's keep it slow by default
* rpm 200
*/
bc->triggerSimulatorFrequency = 200;
engineConfiguration->map.sensor.sensorType = MT_MPX4250;

View File

@ -346,12 +346,12 @@ void setDefaultConfiguration(engine_configuration_s *engineConfiguration, board_
boardConfiguration->electronicThrottlePin1 = GPIOC_9;
boardConfiguration->o2heaterPin = GPIO_UNASSIGNED;
boardConfiguration->injectionPins[0] = GPIOB_9;
boardConfiguration->injectionPins[1] = GPIOB_8;
boardConfiguration->injectionPins[2] = GPIOE_3;
boardConfiguration->injectionPins[3] = GPIOE_5;
boardConfiguration->injectionPins[4] = GPIOE_6;
boardConfiguration->injectionPins[5] = GPIOC_12;
boardConfiguration->injectionPins[0] = GPIOB_9; // #1
boardConfiguration->injectionPins[1] = GPIOB_8; // #2
boardConfiguration->injectionPins[2] = GPIOE_3; // #3
boardConfiguration->injectionPins[3] = GPIOE_5; // #4
boardConfiguration->injectionPins[4] = GPIOE_6; // #5
boardConfiguration->injectionPins[5] = GPIOC_12; // #6
boardConfiguration->injectionPins[6] = GPIO_UNASSIGNED;
boardConfiguration->injectionPins[7] = GPIO_UNASSIGNED;
boardConfiguration->injectionPins[8] = GPIO_UNASSIGNED;

View File

@ -78,11 +78,11 @@ void turnPinHigh(io_pin_e pin) {
#if EFI_WAVE_CHART
// this is a performance optimization - array index is cheaper then invoking a method with 'switch'
const char *pinName = namedPinsArray[pin];
dbgDurr = hal_lld_get_counter_value() - dbgStart;
// dbgDurr = hal_lld_get_counter_value() - dbgStart;
addWaveChartEvent(pinName, WC_UP);
#endif /* EFI_WAVE_ANALYZER */
dbgDurr = hal_lld_get_counter_value() - dbgStart;
// dbgDurr = hal_lld_get_counter_value() - dbgStart;
}
void turnPinLow(io_pin_e pin) {

View File

@ -20,6 +20,7 @@
#include "crc.h"
#include "fl_stack.h"
#include "io_pins.h"
#include "efiGpio.h"
void testCrc(void) {
assertEquals(4, efiRound(4.4, 1));