Commit Graph

2519 Commits

Author SHA1 Message Date
andreika-git 0e90a5c9c8 use Timer for watchdog reset 2023-11-28 15:49:12 -05:00
andreika-git da9d83ec8b watchdog stub for cypress/kinetis 2023-11-28 15:49:12 -05:00
andreika-git 955ff6cea6 Simulator watchdog stub 2023-11-28 15:49:12 -05:00
andreika-git 585ca0c829 Initial support for watchdog 2023-11-28 15:49:12 -05:00
Matthew Kennedy d31f535ca3 sanity in IMU data names/ranges 2023-11-27 14:59:21 -05:00
Andrey Gusakov b6c76b21c0 gpio: mc33810: properly configure gpios for OUTEN, DIN* and GIN* 2023-11-24 16:30:40 -05:00
rusefi d359c15075 only:same 'chip.drv_state = MC33810_WAIT_INIT;' twice 2023-11-24 15:19:34 -05:00
Andrey 375d10fb46 only: one step back for unit tests 2023-11-24 15:04:51 -05:00
rusefillc f329f29bc5 much more visible failure in case of failed chip init 2023-11-24 14:41:17 -05:00
rusefillc 101df2cf92 only:better method name 2023-11-24 14:37:01 -05:00
rusefillc 7c68d7a304 only:minor simplification 2023-11-24 14:35:56 -05:00
rusefi 9bf07b500f bench test 33810 module #5745
only:f407-discovery
2023-11-24 11:59:04 -05:00
rusefi 318fc8c358 bench test 33810 module #5745
only:f407-discovery
2023-11-24 11:36:09 -05:00
rusefi 84650679d8 bench test 33810 module #5745
only:f407-discovery
2023-11-23 22:27:08 -05:00
rusefillc aa90ca7f66 bench test 33810 module #5745
only:f407-discovery
2023-11-23 20:51:35 -05:00
rusefi e1a36c3390 bench test 33810 module #5745
only:f407-discovery
2023-11-23 11:57:37 -05:00
rusefi b0361f8884 bench test 33810 module #5745
only:f407-discovery
2023-11-23 11:38:08 -05:00
rusefi b92c57e34d bench test 33810 module #5745
only:f407-discovery
2023-11-23 11:06:49 -05:00
rusefillc ea58a0f2f7 bench test 33810 module #5745 2023-11-23 09:21:56 -05:00
rusefi 27051ade0c only:typo? 2023-11-22 21:19:14 -05:00
rusefillc 6e9f981120 only:todo mc33972 2023-11-21 11:15:56 -05:00
Andrey Gusakov c9c7adbdbc CAN configs are platform specific
Move STM32's configs to stm32_can.cpp
Create AT32's configs in at32_can.cpp
2023-11-19 16:20:11 -05:00
Andrey Gusakov 84cb2aee8d AT32: CAN helpers 2023-11-19 16:20:11 -05:00
Andrey Gusakov 54274d8022 CAN: we need both Rx and Tx pins to be valid 2023-11-19 16:20:11 -05:00
Andrey Gusakov 2cacc1b65c L9779: fix initialization 2023-11-19 16:20:11 -05:00
Andrey Gusakov 19e8d86845 ports: AT32: SPI AF tables, helpers, init code 2023-11-18 11:14:46 -06:00
rusefillc afa1e36f46 only:driver for mc33972 replacement #5733 2023-11-17 12:35:57 -05:00
rusefillc c50be9ecdd undoing noise
only:proteus_f7
2023-11-16 22:36:38 -05:00
andreika-git 04779c374f move causeHardFault() to arm_common.cpp 2023-11-14 15:28:07 -06:00
andreika-git aa7265a5bf causeHardFault() function for different ports 2023-11-14 15:28:07 -06:00
Andrey Gusakov 814b94dd4b AT32: definetly not isStm32F42x() 2023-11-12 13:08:25 -06:00
Andrey Gusakov e08a311fa7 guards: EFI_BACKUP_SRAM 2023-11-12 13:08:25 -06:00
Andrey Gusakov 4634a741c2 at32: at32_common: reuse some parts from STM32
This is temporally, some parts are quite different and need rework
2023-11-12 13:08:25 -06:00
Andrey Gusakov 5a11a2a2b4 stm32_common: divide into parts for easy reuse 2023-11-12 13:08:25 -06:00
Andrey Gusakov 5faa4304ab ports: at32: allow boards to disable OTG ports 2023-11-11 16:12:29 -05:00
Andrey Gusakov 1ff029a6fb port: at32: allow STM32_SERIAL_USE_USART1 override from board 2023-11-11 16:12:29 -05:00
Andrey Gusakov fa1aeb700a port: at32: we do not like UART mode for console 2023-11-11 16:12:29 -05:00
Andrey a1e407706d Something kia rio starter 4chan #5701
definitely better multithreading behaviour and better readability
2023-11-09 00:33:16 -05:00
rusefi b856e5306d Something kia rio starter 4chan #5701
only:alphax-4chan_f7
2023-11-08 23:31:56 -05:00
rusefillc ec6e711745 Something kia rio starter 4chan #5701
another last step before debugger?
2023-11-08 22:21:51 -05:00
rusefi 9a5ec27c54 only:cleaner defines 2023-11-05 18:20:12 -05:00
rusefi e82fe52ac1 https://github.com/rusefi/alphax-8chan/issues/122
only:alphax-8chan
2023-11-05 13:32:06 -05:00
Andrey Gusakov bb161be8e8 AT32: say RAM size 2023-11-05 07:16:57 -05:00
rusefillc 5e1f66c1b9 only:Unit Tests on Windows 2023-11-04 18:48:46 -04:00
rusefi 1bbff802a6 only:Unit Tests on Windows 2023-11-04 13:30:57 -04:00
rusefillc 23fbc3f8f4 only:Unit Tests on Windows 2023-11-04 13:18:55 -04:00
rusefillc c5c62a42c0 better guards 2023-11-04 13:05:08 -04:00
rusefillc 2d9b835768 better guards 2023-11-04 09:45:22 -04:00
rusefillc 12e6c18c4e better guards 2023-11-04 09:45:14 -04:00
rusefillc 3d48982b1f only:Unit Tests on Windows 2023-11-04 09:42:49 -04:00
andreika-git 525d8355b3 trigger_input_comp is now ready for unused-vars 2023-11-03 15:47:40 -04:00
Andrey G ed8af771ac
at_start_f435: enable MFS for internal flash (#5687)
* Rename EFI_INTERNAL_FLASH to EFI_STORAGE_INT_FLASH

This define enables use of RE custom flash driver for storing
settings to internal flash.

* at_start_f435: enable MFS for settings storing in internal flash

* MRE: fix special build

* kinetis: fix flash_int.cpp vs flash_int.c mess

* at32: allow allowFlashWhileRunning()

* flash_main: supress warning
2023-11-03 13:08:35 -04:00
Andrey 4eefedcec2 unused-variable is a nice error message to have #5683 2023-11-02 20:48:57 -04:00
Andrey b70f8f0b92 unused-variable is a nice error message to have #5683 2023-11-02 18:31:03 -04:00
Andrey cdfee38284 clean-up 2023-11-02 11:26:29 -04:00
rusefillc b13a243af7 only:variable shadowing should be avoided #5676 2023-11-01 17:02:24 -04:00
rusefillc 54297824e0 only:variable shadowing should be avoided #5676 2023-11-01 16:25:30 -04:00
rusefillc e384914c95 only:variable shadowing should be avoided #5676 2023-11-01 13:02:20 -04:00
rusefillc 35e57475a4 only:variable shadowing should be avoided #5676 2023-11-01 12:12:50 -04:00
rusefillc 91ba507d4b only:variable shadowing should be avoided #5676 2023-11-01 12:07:00 -04:00
rusefillc 781a236885 only:shall we be just a little less Toyota 2023-11-01 10:32:53 -04:00
rusefillc 2e62e6fc91 only:shall we be just a little less Toyota 2023-11-01 10:21:27 -04:00
rusefillc 198c9e8f57 only:shall we be just a little less Toyota 2023-11-01 10:09:04 -04:00
rusefi 6b97f23eae pursuit of truth 2023-10-31 09:36:45 -04:00
Stefan de Kraker 4b64e0e087 Fixed CAN data bus selection
* Fixed CAN data bus selection

* Made canChannel non-optional
2023-10-31 01:42:47 -04:00
Andrey G 7f05e45d41
AT32: chip detection, flash detection, sayHello() (#5666)
* at32_common.cpp: MCU type detection helper

* sayHello(): tick rate is CH_CFG_ST_FREQUENCY

* eficonsole: do isStm32F42x() check for STM32 only

* sayHello(): more info about AT32

* Update ChibiOS

* eficonsole: typo
2023-10-30 07:09:35 -04:00
Andrey G e298348981
Artery AT_START_F435 board support (#5662)
* AT32: port directory and files

* at_start_f435: reuse board.h from ChibiOS

* at_start_f435: fix LEDs

* at_start_f435: fix usb

* at_start_f435: fix compilation

* at_start_f435: add to workflow

* at_start_f435: add to workflow fix

* ports: at32: cleanup and comments
2023-10-29 19:13:31 -04:00
rusefillc 8c4a06bc10
getBackupSram neven null (#5663) 2023-10-29 15:46:15 -04:00
Andrey G 80a370088e
hw_layer: ICU helper: fix clocks (#5659) 2023-10-29 12:29:09 -04:00
rusefillc 7b25477ddf CodeQL says Potentially uninitialized local variable 2023-10-27 23:41:55 -04:00
rusefillc a54ace1e8e EMI kills USB and causes a FATAL on the ECU #4310
only:small-can-board_debug
2023-10-21 16:55:52 -04:00
rusefillc 09c3f3aa5e EMI kills USB and causes a FATAL on the ECU #4310
only:small-can-board_debug
2023-10-21 16:24:38 -04:00
rusefillc 9a6406bd81 DAC with Lua #5601 2023-10-12 10:33:56 -04:00
rusefi 6a7700ccfb DAC with Lua #5601 2023-10-12 09:41:31 -04:00
rusefillc 1f0e55e98a DAC with Lua #5601 2023-10-09 12:31:01 -04:00
rusefillc 0353500421 code style 2023-10-09 12:16:33 -04:00
rusefillc 215284c7bc DAC with Lua #5601 2023-10-09 11:33:09 -04:00
rusefillc 0a806e31e3 A setting to switch specific CAN bus into Listen mode fix #5406 2023-10-08 11:57:09 -04:00
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 ad3ea57276)
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