From 34f2334652a840078984e8d63e3c294f46fcc853 Mon Sep 17 00:00:00 2001 From: Andrey B Date: Sat, 23 Aug 2014 18:37:21 -0400 Subject: [PATCH] fresh version --- firmware/.cproject | 9 +- firmware/Makefile | 1 + firmware/config/boards/arro_board.h | 4 - firmware/config/efifeatures.h | 5 +- firmware/config/engines/engines.mk | 3 +- .../config/engines/ford_1995_inline_6.cpp | 24 +- firmware/config/engines/ford_aspire.cpp | 20 +- firmware/config/engines/ford_escort_gt.cpp | 6 +- firmware/config/engines/honda_accord.cpp | 169 +- firmware/config/engines/honda_accord.h | 4 +- firmware/config/engines/mazda_miata_nb.cpp | 12 +- firmware/config/engines/mitsubishi.cpp | 95 ++ firmware/config/engines/mitsubishi.h | 16 + firmware/console/console_io.c | 13 +- firmware/console/console_io.h | 4 +- firmware/console/eficonsole.c | 9 +- firmware/console/eficonsole.h | 1 - firmware/console/status_loop.cpp | 128 +- firmware/console/status_loop.h | 2 +- firmware/console/tunerstudio/tunerstudio.cpp | 38 +- .../console/tunerstudio/tunerstudio_algo.cpp | 4 +- .../tunerstudio/tunerstudio_configuration.h | 26 +- firmware/console_util/datalogging.c | 31 +- firmware/console_util/rfiutil.c | 9 +- firmware/controllers/PwmTester.cpp | 6 +- firmware/controllers/algo/advance_map.cpp | 2 +- firmware/controllers/algo/ec2.h | 11 +- .../controllers/algo/engine_configuration.cpp | 68 +- .../controllers/algo/engine_configuration.h | 53 +- firmware/controllers/algo/error_handling.h | 2 + firmware/controllers/algo/event_registry.h | 2 +- firmware/controllers/algo/fuel_math.h | 1 + firmware/controllers/algo/idle_controller.c | 8 +- firmware/controllers/algo/io_pins.h | 14 + firmware/controllers/algo/rusefi_enums.h | 75 +- firmware/controllers/algo/wave_chart.c | 26 +- firmware/controllers/alternatorController.cpp | 1 - firmware/controllers/controllers.mk | 1 + firmware/controllers/core/EfiWave.cpp | 2 +- firmware/controllers/core/EfiWave.h | 8 +- firmware/controllers/core/avg_values.c | 18 +- firmware/controllers/core/table_helper.h | 3 +- firmware/controllers/engine_controller.cpp | 60 +- firmware/controllers/engine_controller.h | 2 +- firmware/controllers/error_handling.c | 20 +- firmware/controllers/flash_main.cpp | 33 +- firmware/controllers/flash_main.h | 14 +- firmware/controllers/idle_thread.cpp | 25 +- firmware/controllers/injector_central.cpp | 91 +- firmware/controllers/lcd_controller.cpp | 193 +++ firmware/controllers/lcd_controller.h | 13 + firmware/controllers/map_averaging.cpp | 2 +- .../controllers/map_multiplier_thread.cpp | 1 - firmware/controllers/math/engine_math.cpp | 41 +- firmware/controllers/math/engine_math.h | 2 +- firmware/controllers/math/speed_density.cpp | 2 +- firmware/controllers/math/speed_density.h | 2 +- firmware/controllers/sensors/map.cpp | 7 +- firmware/controllers/sensors/sensor_types.h | 4 +- firmware/controllers/sensors/thermistors.cpp | 21 +- firmware/controllers/sensors/thermistors.h | 4 +- firmware/controllers/sensors/tps.cpp | 13 +- firmware/controllers/sensors/voltage.c | 1 + firmware/controllers/settings.cpp | 199 ++- .../system/pwm_generator_logic.cpp | 8 +- .../trigger/main_trigger_callback.cpp | 11 +- .../controllers/trigger/rpm_calculator.cpp | 29 +- firmware/controllers/trigger/rpm_calculator.h | 6 +- firmware/controllers/trigger/trigger.mk | 1 + firmware/controllers/trigger/trigger_bmw.cpp | 14 +- .../controllers/trigger/trigger_central.cpp | 30 +- .../controllers/trigger/trigger_central.h | 4 +- .../controllers/trigger/trigger_chrysler.cpp | 2 +- .../controllers/trigger/trigger_decoder.cpp | 132 +- .../controllers/trigger/trigger_decoder.h | 44 +- .../trigger/trigger_emulator_algo.cpp | 17 +- firmware/controllers/trigger/trigger_gm.cpp | 14 +- .../controllers/trigger/trigger_mazda.cpp | 48 +- .../trigger/trigger_mitsubishi.cpp | 35 + .../controllers/trigger/trigger_mitsubishi.h | 14 + .../controllers/trigger/trigger_structure.cpp | 268 ++- .../controllers/trigger/trigger_structure.h | 84 +- firmware/emulation/analog_chart.c | 11 +- firmware/emulation/emulation.mk | 6 +- firmware/emulation/hw_layer/poten.c | 29 +- firmware/emulation/rfi_perftest.cpp | 2 +- firmware/emulation/trigger_emulator.cpp | 59 +- firmware/emulation/trigger_emulator.h | 22 +- .../{wave_analyzer.c => wave_analyzer.cpp} | 518 +++--- firmware/emulation/wave_analyzer.h | 13 +- firmware/global.h | 10 +- firmware/hw_layer/AdcConfiguration.h | 10 +- firmware/hw_layer/adc_inputs.cpp | 114 +- firmware/hw_layer/adc_inputs.h | 13 +- firmware/hw_layer/board_test.cpp | 64 +- firmware/hw_layer/can_hw.cpp | 2 +- firmware/hw_layer/flash.c | 2 +- firmware/hw_layer/gpio_helper.c | 2 +- firmware/hw_layer/gpio_helper.h | 3 + firmware/hw_layer/hardware.cpp | 2 +- firmware/hw_layer/hw_layer.mk | 4 +- firmware/hw_layer/io_pins.c | 39 +- firmware/hw_layer/microsecond_timer.c | 2 +- firmware/hw_layer/mmc_card.c | 16 +- firmware/hw_layer/mmc_card.h | 1 + firmware/hw_layer/neo6m.c | 25 +- firmware/hw_layer/pin_repository.c | 31 +- firmware/hw_layer/pin_repository.h | 3 +- firmware/hw_layer/pwm_generator.cpp | 1 - firmware/hw_layer/rtc_helper.c | 9 +- .../hw_layer/serial_over_usb/usbconsole.c | 2 +- .../hw_layer/serial_over_usb/usbconsole.h | 2 +- firmware/hw_layer/stm32f4/mpu_util.cpp | 50 + firmware/hw_layer/stm32f4/mpu_util.h | 29 + firmware/hw_layer/trigger_input.cpp | 44 +- firmware/hw_layer/wave_analyzer_hw.c | 70 +- firmware/hw_layer/wave_analyzer_hw.h | 2 +- firmware/iar/ch.ewp | 40 +- firmware/main.cpp | 13 +- firmware/main.h | 1 - firmware/rusefi.cpp | 58 +- firmware/rusefi.h | 16 - firmware/svnversion.h | 4 +- firmware/tunerstudio/rusefi.ini | 110 +- firmware/util/cli_registry.c | 115 +- firmware/util/cli_registry.h | 12 +- firmware/util/crc.c | 3 +- firmware/util/efilib.cpp | 26 +- firmware/util/efilib.h | 7 +- firmware/util/efilib2.cpp | 2 +- firmware/util/histogram.c | 15 +- firmware/util/util.mk | 3 +- firmware/util/wave_math.c | 32 - firmware/util/wave_math.h | 21 - java_console/.idea/misc.xml | 2 +- java_console/.idea/workspace.xml | 1447 +++++++++++++---- .../autotest/src/com/rusefi/AutoTest.java | 41 +- .../autotest/src/com/rusefi/ExecHelper.java | 3 + java_console/build.xml | 2 +- .../io/src/com/rusefi/io/CommandQueue.java | 20 +- .../src/com/rusefi/io/tcp/TcpConnector.java | 39 +- .../src/com/irnems/core/MessagesCentral.java | 2 + .../src/com/irnems/models/MafValue.java | 4 +- .../models/src/com/irnems/models/Range.java | 4 + .../src/com/irnems/waves/ZoomProvider.java | 4 + .../src/com/rusefi/waves/RevolutionLog.java | 8 +- .../src/com/rusefi/waves/WaveChart.java | 3 + .../src/com/rusefi/waves/WaveReport.java | 15 +- java_console/ui/src/com/irnems/Launcher.java | 26 +- java_console/ui/src/com/irnems/LogViewer.java | 2 +- .../src/com/irnems/ui/test/UpDownSandbox.java | 2 +- .../com/irnems/ui/test/WavePanelSandbox.java | 2 +- .../ui/src/com/rusefi/AnalogChartPanel.java | 4 +- .../com/{irnems => rusefi}/EcuStimulator.java | 202 ++- .../ui/src/com/rusefi/PortLookupFrame.java | 31 +- .../ui/src/com/rusefi/SimulatorHelper.java | 69 + .../ui/src/com/rusefi/StimulationInputs.java | 58 + .../ui/src/com/rusefi/VersionChecker.java | 114 ++ .../com/rusefi/test/EcuStimulatorSandbox.java | 14 + .../src/com/rusefi/test/MsgPanelSandbox.java | 17 + .../ui/src/com/rusefi/ui/ChartHelper.java | 14 +- .../src/com/rusefi/ui/ChartScrollControl.java | 2 + .../rusefi/ui/DefaultExceptionHandler.java | 29 +- .../ui/src/com/rusefi/ui/GaugesPanel.java | 36 +- .../ui/src/com/rusefi/ui/Live3DReport.java | 2 +- .../ui/src/com/rusefi/ui/MsgPanel.java | 43 +- .../ui/src/com/rusefi/ui/RecentCommands.java | 109 ++ .../ui/src/com/rusefi/ui/RpmPanel.java | 37 +- .../ui/src/com/rusefi/ui/UiUtils.java | 7 + .../ui/src/com/rusefi/ui/WarningPanel.java | 55 + .../ui/src/com/rusefi/ui/WavePanel.java | 117 +- .../ui/src/com/rusefi/ui/ZoomControl.java | 30 +- .../ui/widgets/AdcDebugControl.java | 2 +- .../ui/widgets/AnyCommand.java | 13 +- .../ui/widgets/BooleanFlagControlPanel.java | 2 +- .../ui/widgets/IdleLabel.java | 2 +- .../ui/widgets/InjectorControl.java | 2 +- .../ui/widgets/JTextFieldWithWidth.java | 2 +- .../ui/widgets/LogModeWidget.java | 2 +- .../ui/widgets/MafCommand.java | 4 +- .../ui/widgets/PotCommand.java | 6 +- .../ui/widgets/RpmCommand.java | 5 +- .../ui/widgets/URLLabel.java | 2 +- .../ui/widgets/UpDownImage.java | 33 +- .../ui/widgets/WaveInfoPanel.java | 2 +- unit_tests/boards.c | 6 + unit_tests/boards.h | 2 + unit_tests/engine_test_helper.cpp | 7 + unit_tests/engine_test_helper.h | 1 + unit_tests/global.h | 2 + unit_tests/main.cpp | 2 +- unit_tests/test_fuel_map.cpp | 57 +- unit_tests/test_signal_executor.cpp | 2 +- unit_tests/test_speed_density.cpp | 2 +- unit_tests/test_trigger_decoder.cpp | 57 +- unit_tests/test_util.cpp | 6 +- win32_functional_tests/Makefile | 3 +- win32_functional_tests/simulator/boards.c | 5 + win32_functional_tests/simulator/global.h | 2 + .../simulator/rusEfiFunctionalTest.cpp | 41 +- win32_functional_tests/simulator/svnversion.h | 4 +- 201 files changed, 5174 insertions(+), 1853 deletions(-) create mode 100644 firmware/config/engines/mitsubishi.cpp create mode 100644 firmware/config/engines/mitsubishi.h create mode 100644 firmware/controllers/lcd_controller.cpp create mode 100644 firmware/controllers/lcd_controller.h create mode 100644 firmware/controllers/trigger/trigger_mitsubishi.cpp create mode 100644 firmware/controllers/trigger/trigger_mitsubishi.h rename firmware/emulation/{wave_analyzer.c => wave_analyzer.cpp} (76%) create mode 100644 firmware/hw_layer/stm32f4/mpu_util.cpp create mode 100644 firmware/hw_layer/stm32f4/mpu_util.h delete mode 100644 firmware/util/wave_math.c delete mode 100644 firmware/util/wave_math.h rename java_console/ui/src/com/{irnems => rusefi}/EcuStimulator.java (52%) create mode 100644 java_console/ui/src/com/rusefi/SimulatorHelper.java create mode 100644 java_console/ui/src/com/rusefi/StimulationInputs.java create mode 100644 java_console/ui/src/com/rusefi/VersionChecker.java create mode 100644 java_console/ui/src/com/rusefi/test/EcuStimulatorSandbox.java create mode 100644 java_console/ui/src/com/rusefi/test/MsgPanelSandbox.java create mode 100644 java_console/ui/src/com/rusefi/ui/RecentCommands.java create mode 100644 java_console/ui/src/com/rusefi/ui/WarningPanel.java rename java_console/ui/src/com/{irnems => rusefi}/ui/widgets/AdcDebugControl.java (90%) rename java_console/ui/src/com/{irnems => rusefi}/ui/widgets/AnyCommand.java (88%) rename java_console/ui/src/com/{irnems => rusefi}/ui/widgets/BooleanFlagControlPanel.java (97%) rename java_console/ui/src/com/{irnems => rusefi}/ui/widgets/IdleLabel.java (94%) rename java_console/ui/src/com/{irnems => rusefi}/ui/widgets/InjectorControl.java (91%) rename java_console/ui/src/com/{irnems => rusefi}/ui/widgets/JTextFieldWithWidth.java (94%) rename java_console/ui/src/com/{irnems => rusefi}/ui/widgets/LogModeWidget.java (96%) rename java_console/ui/src/com/{irnems => rusefi}/ui/widgets/MafCommand.java (94%) rename java_console/ui/src/com/{irnems => rusefi}/ui/widgets/PotCommand.java (94%) rename java_console/ui/src/com/{irnems => rusefi}/ui/widgets/RpmCommand.java (94%) rename java_console/ui/src/com/{irnems => rusefi}/ui/widgets/URLLabel.java (98%) rename java_console/ui/src/com/{irnems => rusefi}/ui/widgets/UpDownImage.java (87%) rename java_console/ui/src/com/{irnems => rusefi}/ui/widgets/WaveInfoPanel.java (89%) diff --git a/firmware/.cproject b/firmware/.cproject index e01fca04ca..7979bd8af7 100644 --- a/firmware/.cproject +++ b/firmware/.cproject @@ -78,7 +78,7 @@ - - @@ -303,10 +304,10 @@ - -