From 70505277564c97930a1097bc9292c6f8c2cb4244 Mon Sep 17 00:00:00 2001 From: Andrey B Date: Wed, 30 Apr 2014 09:37:02 -0500 Subject: [PATCH] manual sync --- firmware/.cproject | 5 +- firmware/Doxyfile | 2 +- firmware/Makefile | 7 +- firmware/clean_build.bat | 5 +- firmware/compile.bat | 3 + firmware/console/console.mk | 6 +- firmware/console/console_io.h | 9 + firmware/console/eficonsole.c | 1 - firmware/console/status_loop.cpp | 409 ++++++++++++++++++ firmware/console_util/datalogging.c | 20 +- firmware/console_util/datalogging.h | 6 +- firmware/controllers/PwmTester.cpp | 47 ++ firmware/controllers/PwmTester.h | 12 + .../controllers/algo/accel_enrichment.cpp | 56 +++ firmware/controllers/algo/accel_enrichment.h | 27 ++ firmware/controllers/algo/advance_map.c | 2 +- firmware/controllers/algo/advance_map.h | 9 + firmware/controllers/algo/algo.cpp | 48 ++ firmware/controllers/algo/algo.mk | 9 +- firmware/controllers/algo/ec2.h | 71 +++ .../controllers/algo/engine_configuration.cpp | 383 ++++++++++++++++ .../controllers/algo/engine_configuration.h | 52 +-- firmware/controllers/algo/error_handling.h | 5 + firmware/controllers/algo/event_registry.c | 2 +- firmware/controllers/algo/event_registry.h | 1 - firmware/controllers/algo/fuel_math.cpp | 4 + firmware/controllers/algo/idle_controller.c | 2 +- firmware/controllers/algo/idle_controller.h | 10 + firmware/controllers/algo/interpolation.c | 2 +- firmware/controllers/algo/io_pins.h | 6 +- firmware/controllers/algo/rusefi_enums.h | 6 + firmware/controllers/algo/signal_executor.h | 7 - firmware/controllers/algo/wave_chart.c | 6 +- firmware/controllers/algo/wave_chart.h | 2 +- firmware/controllers/alternatorController.cpp | 62 +++ firmware/controllers/controllers.mk | 13 +- firmware/controllers/electronic_throttle.cpp | 97 +++++ firmware/controllers/engine_controller.cpp | 13 +- firmware/controllers/flash_main.cpp | 115 +++++ firmware/controllers/idle_thread.cpp | 144 ++++++ firmware/controllers/injector_central.cpp | 167 +++++++ firmware/controllers/map_averaging.c | 2 +- firmware/controllers/math/engine_math.cpp | 12 +- firmware/controllers/math/engine_math.h | 10 - firmware/controllers/sensors/ego.h | 9 + firmware/controllers/sensors/sensors.mk | 4 +- firmware/controllers/sensors/thermistors.cpp | 169 ++++++++ firmware/controllers/settings.cpp | 5 +- .../system/pwm_generator_logic.cpp | 134 ++++++ .../controllers/system/pwm_generator_logic.h | 11 +- .../system/signal_executor_sleep.c | 4 +- firmware/controllers/system/system.mk | 3 +- .../system/trigger_emulator_algo.cpp | 28 +- .../trigger/main_trigger_callback.cpp | 37 +- .../controllers/trigger/rpm_calculator.cpp | 187 ++++++++ firmware/controllers/trigger/trigger.mk | 10 +- .../controllers/trigger/trigger_central.cpp | 121 ++++++ .../controllers/trigger/trigger_central.h | 4 +- .../controllers/trigger/trigger_decoder.cpp | 13 +- .../controllers/trigger/trigger_decoder.h | 2 + .../controllers/trigger/trigger_mazda.cpp | 104 +++++ firmware/controllers/trigger/trigger_mazda.h | 2 + .../controllers/trigger/trigger_structure.cpp | 111 +++++ .../controllers/trigger/trigger_structure.h | 69 ++- firmware/emulation/trigger_emulator.cpp | 10 +- firmware/emulation/wave_analyzer.c | 2 +- firmware/gen_upload_docs.bat | 5 +- firmware/hw_layer/board_test.h | 9 + firmware/hw_layer/gpio_helper.c | 4 +- firmware/hw_layer/gpio_helper.h | 4 +- firmware/hw_layer/hardware.cpp | 171 ++++++++ firmware/hw_layer/hardware.h | 8 + firmware/hw_layer/hw_layer.mk | 10 +- firmware/hw_layer/io_pins.c | 11 +- firmware/hw_layer/lcd/lcd_HD44780.h | 23 +- firmware/hw_layer/mmc_card.h | 9 + firmware/hw_layer/neo6m.h | 9 + firmware/hw_layer/pin_repository.c | 8 +- firmware/hw_layer/pin_repository.h | 4 +- firmware/hw_layer/pwm_generator.cpp | 66 +++ firmware/hw_layer/pwm_generator.h | 4 +- firmware/hw_layer/trigger_input.cpp | 85 ++++ firmware/hw_layer/trigger_input.h | 9 + firmware/hw_layer/wave_analyzer_hw.h | 9 + firmware/rusefi.cpp | 4 +- firmware/rusefi.h | 1 - firmware/svnversion.h | 2 +- firmware/update_version.bat | 2 + firmware/util/crc.h | 9 + firmware/util/eficonsole_logic.c | 16 +- firmware/util/eficonsole_logic.h | 16 +- firmware/util/efilib.h | 1 + firmware/util/efilib2.cpp | 2 +- firmware/util/listener_array.h | 8 + 94 files changed, 3163 insertions(+), 262 deletions(-) create mode 100644 firmware/console/status_loop.cpp create mode 100644 firmware/controllers/PwmTester.cpp create mode 100644 firmware/controllers/PwmTester.h create mode 100644 firmware/controllers/algo/accel_enrichment.cpp create mode 100644 firmware/controllers/algo/accel_enrichment.h create mode 100644 firmware/controllers/algo/algo.cpp create mode 100644 firmware/controllers/algo/ec2.h create mode 100644 firmware/controllers/algo/engine_configuration.cpp create mode 100644 firmware/controllers/alternatorController.cpp create mode 100644 firmware/controllers/electronic_throttle.cpp create mode 100644 firmware/controllers/flash_main.cpp create mode 100644 firmware/controllers/idle_thread.cpp create mode 100644 firmware/controllers/injector_central.cpp create mode 100644 firmware/controllers/sensors/thermistors.cpp create mode 100644 firmware/controllers/system/pwm_generator_logic.cpp create mode 100644 firmware/controllers/trigger/rpm_calculator.cpp create mode 100644 firmware/controllers/trigger/trigger_central.cpp create mode 100644 firmware/controllers/trigger/trigger_mazda.cpp create mode 100644 firmware/controllers/trigger/trigger_structure.cpp create mode 100644 firmware/hw_layer/hardware.cpp create mode 100644 firmware/hw_layer/pwm_generator.cpp create mode 100644 firmware/hw_layer/trigger_input.cpp create mode 100644 firmware/update_version.bat diff --git a/firmware/.cproject b/firmware/.cproject index 4dda1e0372..b36275c517 100644 --- a/firmware/.cproject +++ b/firmware/.cproject @@ -21,7 +21,7 @@ +