Commit Graph

2391 Commits

Author SHA1 Message Date
rusefillc 213cabaf0f
start/stop: maybe applying more configuration changes on the fly? (#5581)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-09-25 15:05:28 -04:00
rusefillc 92292aeddd only:docs/renaming method to reduce confusion 2023-09-25 13:57:40 -04:00
rusefillc 50f9fce660 only:additional API 2023-09-25 13:49:33 -04:00
rusefillc 747d038fe4 code style 2023-09-25 13:42:32 -04:00
rusefillc 8467beae96 todo? 2023-09-25 13:42:28 -04:00
rusefillc aeff3337b3 C++ 2023-09-25 13:42:26 -04:00
rusefillc 1f4d9227bd Fan not be able to be set because in use at VR PWM
#5565
showing both human and physical names into error message
only:alphax-2chan
2023-09-17 11:17:37 -04:00
Andrey 6d12cdb7c9 only: debug channel cleanups 2023-09-14 10:10:10 -04:00
Andrey b81fb40203 testability: bench test commands should have automated coverage using simulator #5562
only: making CAN frame always available to simulator
2023-09-14 08:34:24 -04:00
Andrey ba66fdcf82 reducing code duplication around assert 2023-09-05 21:28:39 -04:00
rusefi 516c72c411 let's admit we use C++ here 2023-08-31 00:01:31 -04:00
Andrey 13bbb72264 null terminate USB strings 2023-08-27 09:30:33 -04:00
Matthew Kennedy c7a183db49 this button isn't useful as it just bricks the ECU 2023-08-27 09:08:08 -04:00
rusefi b785ed1019 PinRepository encapsulation 2023-08-21 23:09:30 -04:00
rusefi 6b5e42a7a6 let's admit it we are using C++ syntax 2023-08-21 22:26:09 -04:00
rusefillc 93f7077f92
Dup2 (#5528)
* reducing code duplication around ADC enums

* reducing code duplication around ADC enums
2023-08-21 20:06:54 -04:00
rusefi e8c45a2e7d refactoring: reducing code duplication. Also, do we even care for critical error codes?! 2023-08-20 22:23:44 -04:00
rusefi 54797ab559 refactoring: reducing code duplication. Also, do we even care for critical error codes?! 2023-08-20 22:05:19 -04:00
rusefi 80e52f5898 bench_test CAN packets do not use proper IDs #5525
only:hw
2023-08-20 21:41:25 -04:00
rusefi d08fbc2878 bench_test CAN packets do not use proper IDs #5525 2023-08-20 21:35:04 -04:00
Andrey G 9a9495f0fb
Pvs analysis (#5509)
* The 'chip->drv_state' variable is assigned values twice successively.

Found with PVS-Studio

* variable is assigned to itself

Found with PVS-Studio

---------

Co-authored-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2023-08-11 11:21:43 -04:00
Andrey G 1b3c5a7d6f
GetToothLoggerBufferBlocking() can return nullptr (#5462)
Co-authored-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com>
2023-07-25 10:36:27 -04:00
rusefi 18222160d8 reducing code duplication 2023-07-16 15:52:43 -04:00
rusefillc f32c1206eb 42x compilation fix 2023-07-06 20:03:23 -04:00
rusefillc c2c5d5b01f cleaner HAL usage 2023-07-06 16:07:55 -04:00
Andrey 777c539cac fixing cypress & reducing copy-paste 2023-07-06 15:34:42 -04:00
rusefillc 330017db67 refactoring: reducing copy-pasta 2023-07-06 14:16:33 -04:00
rusefillc 6e638b779c refactoring: reducing copy-pasta 2023-07-06 13:46:50 -04:00
rusefillc 054589e403 pinout into pins command 2023-07-05 22:18:22 -04:00
Andrey G 7aebff02aa
Fix non-F4 (#5390)
* Fix non-F4

* Makefile: use tabs for intending recipe lines ONLY

https://stackoverflow.com/questions/53635263/why-does-indenting-if-else-with-tabs-break-a-makefile
The simple rule for makefiles is, always indent recipe lines with TAB,
and never indent any other lines with TAB.
2023-07-05 09:09:08 -04:00
Andrey a103960186 only:only BOR needs flash_ex? 2023-07-05 00:34:32 -04:00
Andrey 2d96b69e38 only:a bit more of AT32 2023-07-05 00:27:12 -04:00
Andrey b5f3094602 a bit more of AT32 2023-07-05 00:21:16 -04:00
Andrey 55ff879cb7 helping build 2023-07-05 00:21:06 -04:00
rusefillc d32a0c55d0 only:a bit of AT32 2023-07-04 23:48:15 -04:00
rusefillc d709afe21b
global_port.h (#5388)
* global_port.h

* global_port.h

---------

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-07-04 23:45:10 -04:00
rusefillc 67834809d4
Get rid of HW_LAYER_EMS (#5389)
Now we have HW_LAYER(_CPP) for common HW stuff
And HW_LAYER_PORT(_CPP) for ports stuff

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-07-04 23:42:13 -04:00
rusefillc 8b33fb79bb a bit of AT32 2023-07-04 23:40:08 -04:00
rusefillc fa98b04909 a bit of AT32 2023-07-04 23:01:04 -04:00
rusefillc 9e838f1d12
HW_LAYER_EMS* renamed to HW_LAYER_PORT* (#5387)
* HW_LAYER_EMS_CPP renamed to HW_LAYER_PORT_CPP

* HW_LAYER_EMS renamed to HW_LAYER_PORT

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-07-04 22:30:20 -04:00
rusefillc 3a35e703a0 only:helping cygwin 2023-07-04 01:08:55 -04:00
Andrey G 18fd4dcf80
Openblt usb on Proteus with OSC detecor (#5382)
* OpenBLT: enable for F4 (proteus), enable USB interface

* OpenBLT: subaru EG33: sync code with common

* OpenBLT: fix flashing script

* OpenBLT: fix flash layout

* OpenBLT: reuse osc_detector for OpenBLT on Proteus

* OpenBLT: define STM32F4XX, STM32F7XX or STM32H7XX

For compatibility with RusEFI sources
2023-07-03 08:22:18 -04:00
Andrey G d5e9c3a5e1
Openblt usb for F7 (#5365)
* OpenBLT: enable USB for F7

* OpenBLT: simple flash over USB script
2023-07-02 09:22:55 -04:00
rusefillc 5812210afa helping C&K 2023-06-25 11:02:22 -04:00
rusefillc bc2a2b9ab9 only:better method name 2023-06-25 02:08:53 -04:00
rusefillc 47d92d3e95 helping gcc 2023-06-15 23:28:27 -04:00
Andrey 97b415436d only:docs 2023-06-15 17:40:24 -04:00
Andrey 86ce899026 only:using higher level API which could matter for unit tests around time zero 2023-06-15 17:36:07 -04:00
rusefillc e427007393 CJ125 is dead 2023-06-14 08:50:51 -04:00
rusefi 426bc8720e console "spark 1" bench hands up proteus #5320
i feel lucky!
2023-06-11 23:23:17 -04:00
rusefi f77f356e6d reducing code duplication 2023-06-11 23:17:13 -04:00
rusefi 731fd89ef7 reducing magic constant 2023-06-11 23:13:36 -04:00
andreika-git 23891833be fix old bug (again?) 2023-06-06 23:59:04 +03:00
rusefillc 551e7d5b38 p from past 2023-06-05 11:44:56 -04:00
Matthew Kennedy f7e6ccd9e2 de-pointerize outputMode #49 2023-06-05 10:25:00 -04:00
andreika-git 85058bb308 more guard #ifdefs 2023-06-02 07:27:37 -04:00
andreika-git ad02e45a4a weak signal detector disabling option for trigger_input_adc 2023-06-02 07:27:37 -04:00
andreika-git 98666a53e4 refactor trigger_input_adc 2023-06-02 07:27:37 -04:00
andreika-git 0ed6f5ab9c more portability for trigger_input_adc 2023-06-02 07:27:37 -04:00
Andrey Gusakov 3ee9b6e4ab OpenBLT: usb is for F4 only 2023-06-01 19:33:20 -04:00
Andrey Gusakov 18e8f4d298 openblt: usb cleanup 2023-06-01 19:33:20 -04:00
Andrey Gusakov 8dfd459d0b openblt: do not include twice 2023-06-01 19:33:20 -04:00
Andrey Gusakov a4c92701c0 openblt: do not redefine 2023-06-01 19:33:20 -04:00
rusefillc dab7a4ab3c openblt: USB
only:mre_f4
2023-06-01 19:33:20 -04:00
rusefillc bd35c25a57 openblt: USB
only:mre_f4
2023-06-01 19:33:20 -04:00
rusefillc 0b0a624db1 openblt: USB
only:mre_f4
2023-06-01 19:33:20 -04:00
rusefillc 1c49d77fff extra flexibility to facilitate ports 2023-05-31 23:36:30 -04:00
rusefillc 24d1d5ad41 extra flexibility to facilitate ports 2023-05-31 23:10:18 -04:00
rusefillc 6f028ce955 style/guards 2023-05-31 23:06:39 -04:00
Matthew Kennedy 12a29232cc tooth_logger.h -> pch
(cherry picked from commit ad3ea57276361b6da69eb920dd056a662f6f5c70)
2023-05-31 15:59:02 -04:00
rusefillc 4cd21bc35e better code guard? 2023-05-24 11:07:31 -04:00
rusefillc fa57f32a37 reducing GPIO code duplication 2023-05-24 10:37:02 -04:00
rusefillc 458d8982aa reducing GPIO code duplication 2023-05-24 10:34:11 -04:00
rusefillc 9697304af4 reducing GPIO code duplication 2023-05-24 10:31:51 -04:00
rusefillc cdf5447afb reducing GPIO code duplication 2023-05-24 10:24:44 -04:00
rusefillc 9b2a134950 docs 2023-05-24 10:15:31 -04:00
rusefillc 91a25bad96 conditional EFI_DFU_JUMP 2023-05-24 09:58:22 -04:00
rusefillc f5d4e29661 helping cypress & kinetis 2023-05-24 09:52:07 -04:00
rusefillc 61f840fcc3 reducing GPIO code duplication 2023-05-24 09:30:19 -04:00
rusefillc c1cdf77f3a conditional compilation around getBackupSram 2023-05-24 09:01:22 -04:00
rusefillc cc4175f428 reducing GPIO code duplication 2023-05-24 08:51:24 -04:00
rusefillc f317d298af code style 2023-05-24 01:38:56 -04:00
rusefillc 57dec507c3 one step back 2023-05-24 01:13:57 -04:00
rusefillc 198422ffaf code guard 2023-05-24 00:44:58 -04:00
rusefillc 840a968bc8 code guard 2023-05-24 00:39:56 -04:00
rusefillc b8e48e7ad7 code guard 2023-05-24 00:34:22 -04:00
rusefillc dcfdbf5ec5 dup 2023-05-24 00:17:46 -04:00
rusefillc 228c1ac246 code guard 2023-05-24 00:13:07 -04:00
rusefillc 6be4b10a15 code guard 2023-05-24 00:11:40 -04:00
rusefillc 37d6d76a4a openblt: OscillatorType inconsistency fix #5280 2023-05-21 09:23:34 -04:00
rusefillc 526f245beb docs 2023-05-21 09:23:34 -04:00
Matthew Kennedy 789aa2cf2a remove proteus legacy build -> none exist in the wild
(cherry picked from commit 2fd26e948a2596db7256ec44a0e0c41dc8c3c749)
2023-05-19 10:28:38 -04:00
rusefi 3ddc3d42c2 ohh CanCategory was never used?! 2023-05-17 19:56:39 -04:00
Matthew Kennedy 816d107b00 pt2001 typo
(cherry picked from commit 94c33e9e38bce7ee758dfee91816aa7f91b2f2d2)
2023-05-15 19:47:10 -04:00
Andrey Gusakov cdd5161d52 usb: wait 15 sec for usb to spin up
Wait 15 seconds for USB to become CONFIGURED.
Previous timeout was 5 sec. Windows does usb enumeration quite slow
lets give some more room
2023-05-09 07:08:11 -04:00
rusefillc ff34f3d8a1 only:hellen-honda-k
something is very weird
2023-05-01 16:56:30 -04:00
rusefillc 4fb65cddd5 only:hellen-honda-k
wish me luck
2023-05-01 15:51:18 -04:00
rusefi a851149d84 only:hellen-honda-k 2023-05-01 14:28:01 -04:00
rusefillc 7e074e13b2 only:hellen-honda-k 2023-05-01 13:47:49 -04:00
rusefillc 853e012077 only:hellen-honda-k
wow sweet progress
2023-05-01 13:38:17 -04:00