Commit Graph

830 Commits

Author SHA1 Message Date
Andrey G a285ba6743
ADC: fixes: (#1979)
* ADC: fixes:

-use enums
-internalAdcIndexByHardwareIndex array should be adc_channel_e size
-add sanity checks
-save few bytes of RAM

* ADC: use logical OR instead of math add
2020-11-22 12:23:27 -05:00
GitHub build-firmware Action 3211c033ff Auto-generated configs and docs 2020-11-22 05:45:32 +00:00
GitHub build-firmware Action dc0d3242bf Auto-generated configs and docs 2020-11-22 05:11:29 +00:00
GitHub build-firmware Action 85d2555d70 Auto-generated configs and docs 2020-11-22 03:01:11 +00:00
Matthew Kennedy f3b7a1d9da
Remove lockAnyContext, replace with CriticalSectionLocker (#1938)
* switch to CriticalSectionLocker

* that's just about all

* clean up last usage

* include hpp for sim

* need the cpp wrappers in the makefile too

* include dir

* include
2020-11-19 06:56:02 -05:00
Matthew Kennedy 5d3d85d644
put getTimeNowLowerNt in to mpu_util (#1950)
* put getTimeNowLowerNt in to mpu_util

* move GPTDEVICE to port_mpu_util

* and remove from efifeatures
2020-11-18 14:17:00 -05:00
GitHub build-firmware Action e39133fef1 Auto-generated configs and docs 2020-11-17 00:54:02 +00:00
GitHub build-firmware Action f128f8b864 Auto-generated configs and docs 2020-11-17 00:45:34 +00:00
GitHub build-firmware Action ebf64223fd Auto-generated configs and docs 2020-11-15 22:33:48 +00:00
rusefi 1561015ab1 MRE mapping 2020-11-15 17:16:58 -05:00
GitHub build-firmware Action 1a73258778 Auto-generated configs and docs 2020-11-14 23:08:03 +00:00
Matthew Kennedy bb8650179c
consolidate EFI_UNIT_TEST and friends (#1940)
* restructure

* guard c++

* idle too

* status_loop.h

* consolidate definitions

* use 1/0 instead, check for existence

* missed a few

* dead define

* defs for bootloader
2020-11-11 20:34:39 -05:00
GitHub build-firmware Action d6687a68e9 Auto-generated configs and docs 2020-11-11 04:13:06 +00:00
Matthew Kennedy 02c4d630f6
compensate injector flow based on fuel pressure (#1931)
* injector compensation

* fix

* ui

* testability & comments

* hella testing

* debug channels

* enum value

* auto generated enums

* update comment

* oops too much

* update config fields

* handle failed pressure sensor

* build

* fix

* add some todos for the future

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-11-10 23:11:22 -05:00
GitHub build-firmware Action eada3c394c Auto-generated configs and docs 2020-11-10 17:39:01 +00:00
rusefillc 896a55d78e GDI Epic #1448 2020-11-09 22:53:23 -05:00
GitHub build-firmware Action 910a97726d Auto-generated configs and docs 2020-11-10 03:09:32 +00:00
GitHub build-firmware Action 2f59d771ec Auto-generated configs and docs 2020-11-10 02:20:33 +00:00
GitHub build-firmware Action af0a777fad Auto-generated configs and docs 2020-11-06 19:37:34 +00:00
rusefi 86bdb79c5a v12 Proteus 2020-11-06 14:18:54 -05:00
GitHub build-firmware Action 061ca7f137 Auto-generated configs and docs 2020-11-05 20:37:03 +00:00
GitHub build-firmware Action 9a01d3a4a0 Auto-generated configs and docs 2020-11-05 13:06:37 +00:00
GitHub build-firmware Action afacf7eb1b Auto-generated configs and docs 2020-11-04 17:46:41 +00:00
Matthew Kennedy cf3dc9c2c3
convert cranking defaults to mg (#1921)
* convert cranking defaults to mg

* fix tests
2020-11-03 14:12:26 -05:00
GitHub build-firmware Action 885d28e0e4 Auto-generated configs and docs 2020-11-03 17:20:50 +00:00
GitHub build-firmware Action b37f9a0e24 Auto-generated configs and docs 2020-11-03 16:39:27 +00:00
GitHub build-firmware Action 06d4e727c8 Auto-generated configs and docs 2020-11-03 15:53:22 +00:00
GitHub build-firmware Action 307c3fece1 Auto-generated configs and docs 2020-10-31 21:54:50 +00:00
GitHub build-firmware Action 1cb2cd6094 Auto-generated configs and docs 2020-10-30 21:44:34 +00:00
GitHub build-firmware Action 5d410e94f9 Auto-generated configs and docs 2020-10-29 19:28:08 +00:00
GitHub build-firmware Action 8d0c537533 Auto-generated configs and docs 2020-10-28 05:06:20 +00:00
GitHub build-firmware Action 60532606c1 Auto-generated configs and docs 2020-10-28 04:18:04 +00:00
GitHub build-firmware Action 6d10f2fb61 Auto-generated configs and docs 2020-10-27 12:24:46 +00:00
GitHub build-firmware Action 733be969ad Auto-generated configs and docs 2020-10-26 22:17:20 +00:00
GitHub build-firmware Action d5c929f5ba Auto-generated configs and docs 2020-10-26 11:25:24 +00:00
GitHub build-firmware Action ac9b8fee45 Auto-generated configs and docs 2020-10-26 02:28:28 +00:00
Matthew Kennedy 5a810218aa
fix MRE digital input mapping (#1910) 2020-10-25 19:26:04 -04:00
GitHub build-firmware Action 27207dde9c Auto-generated configs and docs 2020-10-23 19:48:01 +00:00
Andrey G 8e11675afd
Tle8888 big update 1 (#1892)
* smart gpio: fix tle8888 direct pin mapping for MRE

* MRE: use TLE8888 pins instead of MCU gpios that drives TLE8888

* TLE8888: cleanup

* TLE8888: do not reset driver private data on WD/undervoltage reset

* TLE8888: diagnostic updates

* TLE8888 driver: BIG driver rework

* TLE8888: check SPI answers for abnormal states

Reply with other than requested register can be a sign of:
-Power-On-Reset, then OpStat0 will be replyed
-WatchDog reset, then FWDStat1 will be replyed
-Invalid communication frame, then Diag0 will be replyed

Keep tracking last accessed register and check with the next reply.

* TLE8888: debug clean-up

* TLE8888: implement spi array write

This reduce CS inactive state time between two consequent accesses
from 8.8 uS to 1.4 uS

* TLE8888: fix PP outputs in OD mode

* TLE8888: cleanup register definitions

* TLE8888: run separate driver thread for each chip instance

Calculating poll interval for few chips become more complex, avoid
this running thread for each device.

* TLE8888: fix cypress and kinetic compilation

Both platforms define its own MAX and cause redifination error if
common.h is included in driver.

* MRE: update mapping.yaml and fix direct pin mapping for TLE8888

* TLE8888: diagnnostic: disable switch off in case of overcurrent

For all output, use current limiting instead

* TLE8888: check for overvoltage on OUT8..OUT13

* TLE8888: add TODO note about how to recover from failure condition

Currently TLE8888 automaticly recovers only from overcurrent and
(may be) overtemperature conditions.
Short to bat cause output disable (bit in OECONFIG is reset) and
needs driver/host intervention.

* TLE8888: save few bytes of RAM

* TLE8888: Lada Kalina is test mule for IDLE stepper on TLE8888

Don't forget to enable PP mode for TLE8888 outputs 21..24:
uncomment line 1087 in tle8888.c

* TLE8888: reorder code, cleanup

* TLE8888: mode all debug/statisctic to per-chip struct

* TLE8888: rework poll interval calculation

* MRE: use TLE8888 pins instead of MCU gpios that drives TLE8888 #2
2020-10-23 12:25:30 -04:00
GitHub build-firmware Action ec17daeee7 Auto-generated configs and docs 2020-10-23 16:25:10 +00:00
GitHub build-firmware Action 82587e97cf Auto-generated configs and docs 2020-10-23 11:33:40 +00:00
GitHub build-firmware Action 3f9dd26478 Auto-generated configs and docs 2020-10-22 02:51:46 +00:00
Matthew Kennedy 6605877326
gppwm debug (#1895)
* dbg gppwm

* fix channel

* TS guard
2020-10-21 22:49:38 -04:00
Matthew Kennedy e0bb7ad581
disable i2c, other unused features (#1891)
* dead

* more
2020-10-20 22:24:32 -04:00
rusefi 580872d88e VAG radiator control 2020-10-19 23:25:23 -04:00
GitHub build-firmware Action dbf3b68e33 Auto-generated configs and docs 2020-10-19 12:06:22 +00:00
rusefillc 665900d76a GDI Epic #1448 2020-10-17 14:53:56 -04:00
GitHub build-firmware Action 99923b17b7 Auto-generated configs and docs 2020-10-11 23:07:39 +00:00
GitHub build-firmware Action 2d9a63b8ef Auto-generated configs and docs 2020-10-11 21:49:05 +00:00
GitHub build-firmware Action c15083efac Auto-generated configs and docs 2020-10-10 03:36:50 +00:00