Commit Graph

19499 Commits

Author SHA1 Message Date
Andrey 579f3df7ad deep rabbit holes are the best ones!
refactoring: encapsulation
2022-09-14 01:53:17 -04:00
Andrey b439f27284 inline method to reduce confusion 2022-09-14 01:34:52 -04:00
Andrey 34f87a3683 inline method to reduce confusion 2022-09-14 01:24:19 -04:00
Andrey 110c49949d some dead nonsense 2022-09-14 01:15:26 -04:00
Andrey d256fd2b01 removing dead parameter 2022-09-14 01:13:57 -04:00
Andrey b059e9defb tear down Engine god object #4511
just trying different things
2022-09-14 01:09:32 -04:00
Andrey 867cc73950 moving IO-only away from scheduling logic 2022-09-14 00:55:55 -04:00
Andrey 556427b01d moving IO-only away from scheduling logic 2022-09-14 00:52:24 -04:00
GitHub gen-configs Action c88a18b13e Auto-generated configs and docs 2022-09-14 04:39:50 +00:00
rusefillc f97c5ed8fd i suspect that no one cares about these 2022-09-14 00:34:04 -04:00
Andrey b1451e229c GM 2022-09-14 00:03:38 -04:00
Andrey 32c6aef746 code formatting 2022-09-13 23:44:38 -04:00
Matthew Kennedy fb2565952d pwm iteration limit to avoid float math accuracy loss (#4578) 2022-09-13 21:16:35 -04:00
rusefi 8f0023441e You would not believe how you invert TLE9201 #4579 2022-09-13 21:03:47 -04:00
rusefi fccf48f379 h154 2022-09-13 20:23:40 -04:00
Andrey G 0b49efdbb7 subaru_eg33: remove duplicate compile script (#4576) 2022-09-13 19:56:41 -04:00
GitHub gen-configs Action 754065badb Auto-generated configs and docs 2022-09-13 23:55:16 +00:00
rusefi ded601e54f h154 2022-09-13 18:13:58 -04:00
Andrey G f5a4cfc06f digital_input: check for valid callback not name! (#4575) 2022-09-13 18:02:00 -04:00
Andrey G 68ee1c6a1f Os util update (#4574)
* chVTSetAny: "this could be simplified"

* os_utils: use Chibi's CriticalSectionLocker
2022-09-13 17:57:13 -04:00
GitHub gen-configs Action 273314bdf2 Auto-generated configs and docs 2022-09-13 18:12:48 +00:00
Matthew Kennedy 3358cdab11 resurrect EFI_CLOCK_LOCKS (#4572)
* resurrect EFI_CLOCK_LOCKS

* missing extern

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-09-13 14:07:25 -04:00
GitHub gen-configs Action aef1a4ec47 Auto-generated configs and docs 2022-09-13 06:33:23 +00:00
rusefillc 6ef9719b53 kick Start Cranking mode #4569 2022-09-13 02:23:57 -04:00
rusefillc 420822cb23 kick Start Cranking mode #4569 2022-09-13 02:18:49 -04:00
rusefillc 474b705c5e outputRequestPeriod into logs 2022-09-12 21:41:23 -04:00
rusefillc 228437f574 outputRequestPeriod into logs 2022-09-12 20:56:57 -04:00
rusefillc 5da9012d70 moving SD logic to better source 2022-09-12 20:39:43 -04:00
GitHub set-date Action 7b5297510d Update date 2022-09-13 00:25:52 +00:00
GitHub gen-configs Action 04db1fbb36 Auto-generated configs and docs 2022-09-13 00:18:15 +00:00
rusefillc 0618824061 outputRequestPeriod into logs 2022-09-12 20:13:17 -04:00
GitHub gen-configs Action 9e4e4f7974 Auto-generated configs and docs 2022-09-12 23:10:38 +00:00
Andrey G c1c9d5222a tle8888 dead code (#4568) 2022-09-12 18:54:29 -04:00
Andrey G bf3c6e32c2 stm32: microsecond timer: set correct period value (#4567)
Driver sets (period - 1) to ARR (auto-reload register)
So we need to set period to (1 << 32) to get maximum
0xffffffff value in ARR. But period is uint32_t.
So set it to 0 and it will ovelap to UINT32_MAX at
pwmp->tim->ARR  = pwmp->period - 1;
2022-09-12 07:35:31 -04:00
rusefillc 21a1914bc8 at the moment efiWatchdog always fails on enable, would this fix? 2022-09-11 21:31:42 -04:00
GitHub gen-configs Action 42336debf8 Auto-generated configs and docs 2022-09-12 01:21:40 +00:00
rusefi 95e7358fce at the moment efiWatchdog always fails on enable, would this fix? 2022-09-11 21:15:25 -04:00
GitHub set-date Action cd28fce1e9 Update date 2022-09-12 00:23:15 +00:00
Andrey G 2b4012b279 dead code, reduce typedefs (#4566)
* Do lightweight checks first

* Dead getTimeIgnitionSeconds()

Dead since 5274cffff3

* Get rid of efitime_t.

Purpose are not clear. Use efitick_t where ticks are used,
use efitimeus_t for uS, use efitimems_t or efitimems64_t for mS.

* Fix unit tests

* Fix misc: stm32f1_test_project
2022-09-11 16:08:11 -04:00
Andrey G bbb71c4e7d Supress tons of warning from triggers (#4565) 2022-09-11 15:25:58 -04:00
Andrey G a98ad15984 EFI_PROD_CODE guard around port_mpu_util.h include (#4564) 2022-09-11 13:42:07 -04:00
Andrey G 1ca5988877 time routines refactor (#4563)
* Extract time helpers from engine_controller_misc to efitime.cpp

* Rename currentTimeMillis() to getTimeNowMs()

We have getTimeNowNt(), getTimeNowUs(), currentTimeMillis() and getTimeNowSeconds()
Align a bit.

find . -type f -name '*.c*' -exec sed -i 's/currentTimeMillis/getTimeNowMs/g' {} \;

* Rename getTimeNowSeconds() to getTimeNowS()

To align with Nt, Us, Ms versions.

* Some comments about getTimeNowLowerNt()
2022-09-11 13:06:03 -04:00
rusefillc 0780a3f719 human brain does need sleep 2022-09-11 12:40:24 -04:00
rusefillc 787dc0700e Revert "refactoring: type safety"
This reverts commit 0ff7af9db5.
2022-09-11 11:14:20 -04:00
rusefillc 0ff7af9db5 refactoring: type safety 2022-09-11 11:00:12 -04:00
Andrey G c73a8c2f46 efiWatchdog: avoid converting time to float (#4562)
https://stackoverflow.com/questions/68690961/why-does-converting-int-to-float-lose-precision-in-c-programming-language
2022-09-11 05:46:55 -04:00
rusefillc 2e85a7a09d refactoring: type safety 2022-09-11 05:41:01 -04:00
rusefillc a6649ea71d Poke 2022-09-11 05:11:00 -04:00
GitHub gen-configs Action 97f1ee67d6 Auto-generated configs and docs 2022-09-11 07:53:45 +00:00
rusefillc 921b97431f refactoring: type safety 2022-09-11 03:46:50 -04:00