Commit Graph

510 Commits

Author SHA1 Message Date
Matthew Kennedy 2e12329199 Default to applyPinState (#1219)
* make applyPinState default

* consumers

* format
2020-03-25 18:14:09 -04:00
rusefi 4d617aa0fe random header clean-up 2020-03-23 09:00:57 -04:00
rusefi 17b498a0f3 progress towards start/stop 2020-03-18 19:41:12 -04:00
rusefi d9690bed3a progress towards start/stop 2020-03-18 16:32:03 -04:00
Matthew Kennedy a2a5b40ced Support disabling most/all features (#1162)
* this flag did nothing

* guard features properly
2020-02-26 18:16:35 -05:00
Matthew Kennedy fa8553b00d Stricter compile options (#1132)
* stricter

* don't warn on that one

* this code was dead
2020-02-08 08:05:40 -03:00
rusefi f4d36f32fa VVT refactoring & assertions for VVT test 2020-01-31 01:49:10 -05:00
rusefi 586eb9e6e3 code style: trying to get used to this syntax 2020-01-22 00:45:09 -05:00
rusefi 1a3bfa4b02 code style 2020-01-21 01:47:58 -05:00
rusefi a222ecdfe1 happy new year unification 2020-01-13 21:57:43 -05:00
rusefi 63e3e84e08 happy new year 2020-01-08 00:02:40 -05:00
rusefi 6acb7264aa docs 2019-12-17 08:56:08 -05:00
rusefi 1f49803441 fixing build 2019-12-15 23:33:15 -05:00
rusefi f47a1a16d1 getting rid of boardConfiguration / binary compatible change 2019-12-11 17:48:55 -05:00
rusefi 561986d3e4 The Big Refactoring of 2019: folder structure #723 2019-12-04 01:11:10 -05:00
rusefi 07b7b62bca refactoring 2019-12-02 23:08:18 -05:00
rusefi 2738fefa48 that's how we can move all fields one by one from boardConfiguration to engineConfiguration
my approach is to move fields from the bottom of BC struct
2019-11-30 10:24:37 -05:00
andreika-git 7220735530 Starter relay + Hardcoded 'FSIO' + simulator fix (#1032)
* Starter Relay: gui + built-in FSIO impl.

* Hardcoded 'FSIO' replacement for RAM-limited boards

* fix simulator
2019-11-25 20:08:01 -05:00
andreika-git 53eeb79ea9 unregisterOutput() + isPinOrModeChanged() + Stepper::stepPin+enablePin + Kinetis fix (#1029)
* Fix isConfigurationChanged() for EFI_ACTIVE_CONFIGURATION_IN_FLASH

* unregisterOutput() -> unregisterOutputIfPinOrModeChanged()

* clutchUpPinMode for unregisterPin()

* Fix Kinetis: EFI_ACTIVE_CONFIGURATION_IN_FLASH & EFI_MAIN_RELAY_CONTROL

* Stepper: enablePin & stepPin with modes support
2019-11-25 00:02:53 -05:00
Matthew Kennedy 34ffe7f6b3 Make sure #798 is good and dead (#1028)
* Revert "CI instability: FATAL error: warn stream not initialized for 6039 - maybe buffer overrun? #798"

This reverts commit 45646f23bd.

* Revert "CI instability: FATAL error: warn stream not initialized for 6039 #798"

This reverts commit 1f8176ac7e.

* fix correctly

* use correct function
2019-11-23 21:25:29 -05:00
rusefi 1f8176ac7e CI instability: FATAL error: warn stream not initialized for 6039 #798 2019-11-23 17:07:13 -05:00
rusefi 45646f23bd CI instability: FATAL error: warn stream not initialized for 6039 - maybe buffer overrun? #798 2019-11-23 16:41:59 -05:00
rusefi 4cebc85cbf refactoring 2019-11-20 01:35:08 -05:00
rusefi 19bdb9a35f docs & code formatting 2019-11-19 18:17:03 -05:00
rusefi 623776d185 micro-optimization: replacing by-referece access with direct static access for real firmware 2019-11-13 21:43:24 -05:00
Matthew Kennedy 2edd673bd6 fix (#1005) 2019-11-13 08:42:16 -05:00
rusefi 5ea97e5ba8 Revert "restoring #1003"
This reverts commit 2ebaa5cf
2019-11-12 23:18:48 -05:00
rusefi 2ebaa5cf20 restoring #1003 2019-11-12 22:17:29 -05:00
rusefi a23f6bb23e time to panic and revert more 2019-11-12 21:42:44 -05:00
Matthew Kennedy 6a5d53fe64 Fix (#1004)
* Revert "fixing build"

This reverts commit ba0aa5cba9.

* undo overzealous ifdef cplusplus
2019-11-12 01:13:13 -05:00
rusefi 30cfb96619 evil manual merge of https://github.com/DonaldBecker/rusefi 2019-11-05 20:07:55 -05:00
rusefi eae44843b1 custom codes cleanup 2019-11-04 09:20:00 -05:00
rusefi d99d576e2b CI instability: FATAL error: warn stream not initialized fix #798 2019-11-03 22:15:49 -05:00
rusefi 0fcf3bfa4e refactoring: reducing code duplication 2019-10-21 23:47:40 -04:00
rusefi f776513a5a preparation for #961
macro as a syntax sugar for method invocation
2019-10-10 07:28:52 -04:00
rusefi 15ae9b1580 fancy C++ s/NULL/nullptr/ 2019-10-08 01:26:35 -04:00
rusefi c6bca8e77a ETB target is using integer values #945
refactoring - ADC mocking is a mess
2019-09-22 10:02:07 -04:00
rusEfi 4c39a207a9 s/NULL/nullptr/ 2019-09-22 08:22:35 -04:00
rusEfi 53ae54e8cc ETB target is using integer values #945
first we will write a unit test
2019-09-22 00:16:46 -04:00
rusefi 03d71bedeb reducing complexity 2019-09-20 01:06:15 -04:00
rusefi 60d57d2dd8 BUG: FSIO logic requires a pin to calculate fix #933 2019-09-18 23:22:15 -04:00
rusefi 115d295bd8 BUG: FSIO logic requires a pin to calculate fix #933 2019-09-18 22:07:02 -04:00
rusefi 8ef1fcd344 unit tests progress 2019-09-18 21:48:46 -04:00
rusefi fd62a9c0f7 unit tests progress 2019-09-18 21:38:45 -04:00
rusefi fcbc26bf82 FSIO progress 2019-09-13 21:07:34 -04:00
rusefi d576f3ba1f Delayed A/C compressor switch #922
unit tests skeleton
2019-09-12 07:31:13 -04:00
rusefi f0427360bf Delayed A/C compressor switch #922 2019-09-11 20:46:50 -04:00
rusefi 5ac8545060 Delayed A/C compressor switch #922 2019-09-11 19:30:36 -04:00
rusefi 7f069e428f Delayed A/C compressor switch #922 2019-09-10 23:49:21 -04:00
rusefi 3f856dc54d Delayed A/C compressor switch #922 2019-09-10 22:55:58 -04:00
rusefi d4b9c7217e fatalErrorPin setting is not used #926
reducing configuration fragility
2019-09-09 21:44:48 -04:00
rusefi 003c868b3f has been a while so safe to assume everyone has default value 2019-09-08 22:17:51 -04:00
rusefi f9bb333453 Delayed A/C compressor switch #922 2019-09-08 21:09:45 -04:00
rusefi 50e0887c96 Delayed A/C compressor switch #922 2019-09-08 21:05:03 -04:00
rusefi 8038885ae2 docs & naming consistency 2019-09-01 11:59:39 -04:00
rusefi e1a7ae0148 Live Data progress 2019-09-01 00:45:36 -04:00
rusefi a8f7a8965b cranking fuel live data #911 2019-08-26 23:41:04 -04:00
rusEfi dfc5f86e6e MRE ETB 2019-08-15 01:59:15 -04:00
rusefi ef5a1447e9 CI instability: FATAL error: warn stream not initialized for 6039
also some refactoring
fix #798
2019-08-04 13:48:10 -04:00
rusefi fd8f70d8c4 Annotations in C++ code to produce formulas in rusEfi console #807 2019-07-13 09:00:03 -04:00
rusefi 6ab2832c24 More than one aux pid #866
progress!
2019-07-12 08:31:38 -04:00
Matthew Kennedy e4a0a0ae91 Fix some maf logic (#880)
* fix maf

* thank you vscode for mangling ANSI -> utf8
2019-07-10 09:14:47 +03:00
rusefi 89557373e9 order of includes consistency 2019-07-05 20:03:32 -04:00
rusefi e309e223aa Refactoring: OS access should be explicit #867 2019-07-04 03:57:21 -04:00
rusefi bad507558a Refactoring: OS access should be explicit #867 2019-07-04 03:25:35 -04:00
rusefi 777eb532dc Refactoring: OS access should be explicit #867 2019-07-03 21:48:04 -04:00
rusefi d0e4a0984f Annotations in C++ code to produce formulas in rusEfi console #807 2019-06-27 06:47:13 -04:00
rusefi dd43f62706 Annotations in C++ code to produce formulas in rusEfi console #807 2019-06-18 23:23:30 -04:00
rusefi 0b843819eb TPS Live Documentation 2019-06-17 21:37:11 -04:00
rusefi d90c6ee1a3 Annotations in C++ code to produce formulas in rusEfi console #807 (#847)
* Annotations in C++ code to produce formulas in rusEfi console #807
firmware part of the change

* removing unneeded stuff & fixing unit test compilation

* not complete better unit test compilation fix  :(

* better C++ usage
2019-06-17 12:18:55 -04:00
rusefi bc5154694b adding support for smaller table axis 2019-06-10 12:38:32 -04:00
Matthew Kennedy 515ab03688 const, explicit, and override (#831)
* const, explicit, and override

* more const

* more const

* missed a spot
2019-06-08 09:51:36 -04:00
rusefi 998345ef9e unit tests should not have global context, including mock values 2019-05-27 15:56:12 -04:00
rusefi cbc1aef722 more PROD code into unit test 2019-05-12 20:31:28 -04:00
rusefi f89c326579 todo 2019-05-10 22:10:40 -04:00
rusefi 8a90297160 refactoring: better method name 2019-05-07 19:32:08 -04:00
rusefi 85b790edcf The Big Refactoring of 2019: DECLARE_ENGINE_PARAMETER_SUFFIX consistency and simplification #657
maybe probably pointless refactoring? reducing parameters visibility
2019-05-03 18:41:43 -04:00
andreika-git b5f87ae584 Default config refactor (#762)
* Refactor config

* Fix FSIO_ANALOG_INPUT_COUNT
2019-04-16 10:27:34 -04:00
rusefi 884c54a185 defined(__DOXYGEN__) ? #748 2019-04-12 22:07:03 -04:00
rusefi 54f83a431e smarter PWM API - need to pass arbitrary pointer 2019-04-12 20:11:27 -04:00
rusefi 522dcd4766 learning C++ 2019-04-12 19:56:34 -04:00
rusefi 4011372da8 The Big Refactoring of 2019: folder structure #723 2019-04-09 23:17:09 -04:00
rusefi 259ff0141a we need TLE8888 driver #714 2019-04-04 23:03:32 -04:00
rusefi 6a72593bc3 Reduce RAM used for trigger shape definition #731 2019-04-03 12:39:01 -04:00
rusefi 541d0b8a9f Reduce RAM used for trigger shape definition #731 2019-04-03 12:16:27 -04:00
rusefi 59d33c4cdc The Big Refactoring of 2019: folder structure #723 2019-03-31 17:44:34 -04:00
rusefi 9cad2ba299 docs 2019-03-29 10:49:56 -04:00
rusefi cf8d3666a2 docs 2019-03-29 10:37:33 -04:00
andreika-git a79175f6ef More portability & small fixes (#719)
* Use hw_stm32.mk

* Fix bootloader

* Use more common hw_ports.mk filename instead of hw_stm32.mk

* More CPU compatibility for Makefile

* TS_UART_MODE & rename TS_SERIAL_UART_DEVICE->TS_SERIAL_DEVICE

* Move lockAnyContext()/unlockAnyContext() to rfiutil.c

* USE_FATFS

* EFI_LCD

* Less compilation errors

* STATUS_LOGGING_BUFFER_SIZE & SETTINGS_LOGGING_BUFFER_SIZE

* EFI_ALTERNATOR_CONTROL, EFI_SERVO, EFI_DISABLE_CONSOLE_ACTIONS

* #ifndef PWM_PHASE_MAX_COUNT & more flexible GPIO inside portname()

* merge

* EFI_ALTERNATOR_CONTROL, EFI_ELECTRONIC_THROTTLE_BODY
2019-03-29 15:29:01 +01:00
rusefi e28ce71bb8 unifying_file_naming 2019-03-29 09:11:13 -04:00
rusefi 4873082017 refactoring trigger simulation 2019-03-04 01:10:31 -05:00
rusefi 72a8346587 code style 2019-03-02 22:54:28 -05:00
rusefi 34aa05cda9 refactoring: reducing code duplication 2019-02-23 12:33:49 -05:00
rusefi 8d43038981 Refactor Trigger System #635 2019-02-03 01:27:47 -05:00
rusefi 0b41d011b7 Refactor Trigger System #635 2019-02-03 01:19:16 -05:00
rusefi ad2af22d16 better parameter name 2019-02-03 00:50:45 -05:00
rusefi 8beae89bcb FSIO testability and test-driven development 2019-01-19 22:09:37 -05:00
rusefi 35ed0fc2a3 better fields location, better initialization logic 2019-01-19 21:10:58 -05:00
Matthew Kennedy 2acdbd9416 const (#675) 2019-01-16 08:24:37 -05:00
rusefi f531681a2d refactoring: calling out 'const' things 2019-01-13 01:27:03 -05:00
rusefi 8f592bf5af refactoring: calling out 'const' things 2019-01-13 01:25:53 -05:00
rusefi 3acc936c6b #640 Occasional halts on "Burn" in TunerStudio ("Red" LED is on) 2019-01-11 15:44:24 -05:00
rusefi fbaf5e183a refactoring: simpler FSIO initialization 2019-01-10 23:53:59 -05:00
rusefi 4ed1ec7067 refactoring: method name consistency 2019-01-10 23:48:05 -05:00
rusefi 93b08dcc4c The Big Refactoring of 2019: DECLARE_ENGINE_PARAMETER_SUFFIX consistency and simplification #657 2019-01-09 22:16:30 -05:00
rusefi 9f63ea4130 The Big Refactoring of 2019: scheduler should not be global #655 2019-01-09 08:50:51 -05:00
rusefi cdfd1bdf89 new test style 2019-01-06 07:37:29 -05:00
rusefi a1d834130e FSIO to stop engine if things are REALLY bad - user-configurable and disabled by default obviously 2019-01-05 23:48:37 -05:00
rusefi 0db0360635 refactoring FSIO - reducing code duplication 2019-01-05 20:39:07 -05:00
rusefi eaf5cac206 refactoring FSIO - reducing code duplication 2019-01-05 19:31:56 -05:00
rusefi 9afe619652 making either Matt or compiler or both happier 2019-01-05 00:11:17 -05:00
rusefi 245ab5db10 refactoring 2018-12-25 16:06:24 -05:00
rusefi b09850c766 #635 better names 2018-12-25 10:13:00 -05:00
rusefi 495205729b #635 refactoring: better name 2018-12-25 08:27:52 -05:00
rusefi d0df516c16 refactoring trigger system 2018-12-24 22:57:36 -05:00
rusefi b124ccd678 refactoring 2018-12-24 22:40:48 -05:00
rusefi f271c7385e fixing simulator build 2018-12-24 08:37:25 -05:00
rusefi ab2fc9a3d1 code style and some refactoring 2018-12-08 16:59:16 -05:00
rusefi 52e924ae3e moving code to proper file 2018-12-08 16:38:44 -05:00
rusefi a28585419a clean up 2018-12-08 16:11:59 -05:00
rusefi c81a9c8fd1 better location for shared input 2018-12-08 16:06:14 -05:00
rusefi 7dd683bf36 bringing std types together 2018-12-08 15:51:45 -05:00
andreika-git 6ccc1ede72 Tps-based Advance Table (#611)
* typedefs

* Impl. TPS-based Advance
2018-09-26 04:13:16 -04:00
rusefi 5cb6a2b6f0 refactoring 2018-09-16 23:10:06 -04:00
rusefi 553969dc72 refactoring 2018-09-16 22:26:57 -04:00
rusefi 92df53aec9 error codes 2018-09-10 22:10:55 -04:00
rusefi 70b91d2295 names for error codes 2018-09-10 22:00:13 -04:00
rusefi ea9bd3f31f #604 fix 2018-08-19 11:27:59 -04:00
rusefi 36202a02db #604 confirming current behaviour 2018-08-19 10:53:25 -04:00
rusefi 510b3f82f6 FSIO input progress 2018-08-01 23:33:13 -04:00
rusefi 5e69dfdad3 FSIO input progress 2018-08-01 23:27:22 -04:00
rusefi 1eb22c8c92 In order to reduce or increase the confusion, I will now at least rename it to "fsio_analog_input" 2018-08-01 23:02:19 -04:00
rusefi ba0c16c01b #601 2018-08-01 08:00:02 -04:00
rusefi 7523f12194 #600 2018-07-29 18:02:37 -04:00
rusefi 2f95cd1e0d step towards more unique codes 2018-07-25 23:30:00 -04:00
rusefi 60b3aa8e60 unique error codes #598 2018-07-25 23:03:04 -04:00
rusefi 58d6363f3a more detailed warning 2018-06-12 05:45:11 -04:00
rusefi acd8779824 refactoring - better method name and removing a bit of dead code 2018-04-30 02:22:54 -04:00
rusefi 273278b539 #569 2018-03-18 12:15:51 -04:00
rusefi e70b084926 minor fix 2018-03-04 22:55:24 -05:00
rusefi a8ed61c277 reducing coupling between trigger emulation and FSIO 2018-02-03 11:42:50 -05:00
rusefi adfe5e9274 #65
explicit precision control
2018-01-23 12:05:14 -05:00
rusefi a8fcca67af #440 2018-01-21 12:28:28 -05:00
rusefi f5a4376036 happy new year 2018-01-20 20:55:31 -05:00
rusefi 7b5302d897 fix #532 2018-01-07 12:11:49 -05:00
rusefi 01f36869de docs 2018-01-07 11:23:28 -05:00
rusEfi 87f47b4a0e better method name 2018-01-07 11:17:49 -05:00
rusefi 3bc51a686f code style 2018-01-02 14:33:22 -05:00
rusefi 2230a232c6 FSIO usability 2017-12-17 12:02:35 -05:00
rusefi 8fc959ddf4 refactoring 2017-12-17 00:07:43 -05:00
rusefi a84606a4c5 refactoring 2017-12-17 00:03:26 -05:00
rusefi 11e9a873db #490 configuration validation 2017-12-08 20:04:58 -05:00
rusEfi dc8df9f7b1 #440 2017-12-03 18:18:50 -05:00
rusEfi 9c8db36591 softer error handling 2017-12-03 18:17:59 -05:00
rusefi c4cab3e1f5 fix #500 2017-11-26 19:35:08 -05:00
rusefi 415bc28298 fixing build 2017-11-24 19:16:00 -05:00
rusefi 6d86f14d4a refactoring - better variable name 2017-11-19 10:23:47 -05:00
rusefi 53104882b7 refactoring 2017-08-03 21:28:44 -04:00
rusefi ec1c7f46d3 useFSIO16ForTimingAdjustment 2017-08-03 21:21:02 -04:00
andreika-git db2d78c384 Iac cranking running taper (#465)
* IAC taper

* chibios sync

* fix for afterCrankingIACtaperDuration==0
2017-08-01 16:27:16 -04:00
rusefi 9b4333bb88 FSIO-based timing correction 2017-07-25 20:37:46 -04:00
rusefi 5ea555ee02 making code more readable - reducing nested branching 2017-07-24 20:34:40 -04:00
rusefi 95a22ed40e better error code names 2017-07-24 19:38:22 -04:00
rusefi ad3c1666f6 fixing build 2017-07-14 21:42:25 -04:00
rusefi d152a2d63d docs 2017-07-14 21:35:38 -04:00
rusefi 5a669376c1 docs 2017-07-08 15:46:34 -04:00
rusefi 060d1b8313 docs 2017-07-06 21:26:35 -04:00
andreika-git 855994e342 Fix fsio (#456)
* tiny fix of Engine::checkShutdown()

* fix fsio
2017-07-01 17:29:56 -04:00
rusefi 74e5a3cc90 refactoring: better name 2017-06-26 09:23:26 +03:00
rusefi bcceaeaf9b refactoring: better name 2017-06-26 09:14:31 +03:00
andreika-git d3895fd4c1 Fsio progress (#449)
* gen_config.bat

* FSIO: fuelPump & mainRelay progress

* typo
2017-06-25 08:35:46 +03:00
Andrei 5d438b9a11 FSIO Starter Block using cranking_rpm 2017-06-14 12:39:00 +03:00
rusefi 0e6523f964 Merge pull request #443 from andreika-git/first_start_preparations
EFI_MAIN_RELAY_CONTROL draft
2017-06-12 22:32:29 -04:00
rusefi 69d155daaf some hack to handle linear CLT sensors 2017-06-12 18:48:55 -04:00
Andrei 8c847247ad EFI_MAIN_RELAY_CONTROL draft 2017-06-13 01:14:39 +03:00
rusefi 9273a5c8d7 better method name 2017-06-11 15:06:05 -04:00
rusefi c0deef0a5e docs 2017-06-11 14:59:03 -04:00
rusefi f2c3f2fe0d #440 2017-06-06 23:11:29 -04:00
rusefi 903e9cd38c refactoring 2017-06-04 15:25:37 -04:00
rusefi 8baec75651 #412 2017-06-04 15:00:19 -04:00
rusefi 10fd879363 better error code names 2017-05-29 19:23:15 -04:00
rusefi 9c32e85d86 better error handling 2017-05-29 11:31:07 -04:00
rusefi b4f8be4eb3 better error handling 2017-05-29 11:09:14 -04:00
rusefi 4ab27aeee0 better error handling 2017-05-29 00:02:22 -04:00
rusefi 73c1f29cf9 better macro name 2017-05-15 23:33:22 -04:00
rusefi f8e592f454 better macro name 2017-05-15 23:28:49 -04:00
rusefi 6f2134511b better method name 2017-05-15 08:40:54 -04:00
rusefi f0208a212f less confusing pin name 2017-05-12 14:37:07 -04:00
rusefi bd0a720485 refactoring - reducing GPIO complexity 2017-04-21 18:11:36 -04:00
rusEfi 7cdbf2bb03 refactoring: better code names 2017-04-19 22:03:14 -04:00
rusefi 8629b6bb4c fixing defines order 2017-03-29 21:48:16 -04:00
rusefi cbdd10ca05 manual picking from ChibiOS migration branch to make my evening a little less depressing 2017-03-27 22:55:22 -04:00
rusefi 7a4515f78b manual picking from ChibiOS migration branch to make my evening a little less depressing 2017-03-27 22:52:43 -04:00
rusefi cd0e809164 fsio_setting to use human indexes #369 2017-03-12 15:22:07 -04:00
rusefi a357b01f4c fsio_setting to use human indexes 2017-03-12 14:47:21 -04:00
rusefi d9fdf80db6 progress #369 2017-03-09 00:05:52 -05:00
rusefi c8f48346d0 better error code enum names & minor binary protocol test command fix 2017-03-05 14:13:47 -05:00
rusefi 05b33d567e individual error codes for all errors 2017-03-05 08:50:19 -05:00
rusEfi 23c655da6d auto-sync 2017-01-19 17:04:15 -05:00
rusEfi 390e08b3d6 auto-sync 2017-01-06 11:02:49 -05:00