Commit Graph

8105 Commits

Author SHA1 Message Date
Matthew Kennedy c38eb6d38f add Injector pressure sensor (#1898)
* add sensor type

* add config

* initialize injector pressure

* add UI
2020-10-23 15:46:16 -04:00
Matthew Kennedy 5fc47d0153 oops (#1899) 2020-10-23 15:45:44 -04:00
GitHub build-firmware Action a873f9f72b Auto-generated configs and docs 2020-10-23 16:27:21 +00:00
Andrey G 88e830d635 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 7342b18291 Auto-generated configs and docs 2020-10-23 16:25:10 +00:00
rusefillc 804cf7f436 gettig ready for Tle8888 big update 1 #1892 2020-10-23 12:23:17 -04:00
GitHub build-firmware Action 36cf2d5e4c Auto-generated configs and docs 2020-10-23 11:33:40 +00:00
Matthew Kennedy dbdeca93b0 implement fuel pressure sensors (#1897)
* add

* remove old

* remove more old

* makefile

* fix init

* patch up other stuff

* actually fix it this time

* raw output channels

* gauges, UI

* scaled channel

* fix field ordering
2020-10-23 07:31:47 -04:00
rusefi 25189a70a8 B6 2020-10-23 00:39:22 -04:00
GitHub build-firmware Action 451d893a34 Auto-generated configs and docs 2020-10-23 03:26:03 +00:00
rusefillc 9ad38bd6a9 GDI Epic #1448 2020-10-22 23:24:15 -04:00
GitHub build-firmware Action eee55b77ec Auto-generated configs and docs 2020-10-23 03:19:42 +00:00
rusefillc fd30576dca GDI Epic #1448 2020-10-22 23:17:29 -04:00
GitHub set-date Action fd0d145a5b Update date 2020-10-23 00:55:50 +00:00
Matthew Kennedy e4c891f328 no sd enable (#1894)
* no sd enable

* add assert

* Revert "no sd enable"

This reverts commit fd997381ee884c890fe7664e56ed2b0f0caef2ff.
2020-10-22 20:51:28 -04:00
Andrey G 4c074fb9c8 common.h: define MIN and MAX macro only if nod defined yet (#1896)
This fix compilation error for Kinetis and Cypress if common.h
is included after platform includes which also defines MIN MAX.
2020-10-22 08:41:44 -04:00
rusefillc 2a8a0f6af1 GDI Epic #1448 2020-10-22 01:48:28 -04:00
rusefi 8c4dd19edd Merge remote-tracking branch 'origin/master' 2020-10-22 01:12:14 -04:00
rusefi 4af1bad726 progress 2020-10-22 00:57:11 -04:00
GitHub build-firmware Action 9ebd97289c Auto-generated configs and docs 2020-10-22 02:51:46 +00:00
Matthew Kennedy 38b6e9ba2b gppwm debug (#1895)
* dbg gppwm

* fix channel

* TS guard
2020-10-21 22:49:38 -04:00
GitHub build-firmware Action a9cad5c3f0 Auto-generated configs and docs 2020-10-22 02:37:10 +00:00
rusefi c43f7869d9 reducing the mess around FSIO bench commands 2020-10-21 22:35:08 -04:00
rusefi 73d53db758 code style 2020-10-21 22:13:18 -04:00
GitHub set-date Action ad515b0f14 Update date 2020-10-22 00:55:13 +00:00
Matthew Kennedy 8f6982dd54 disable i2c, other unused features (#1891)
* dead

* more
2020-10-20 22:24:32 -04:00
GitHub set-date Action c72bfdabe7 Update date 2020-10-21 00:54:27 +00:00
rusefi 79d267eba0 VAG radiator control 2020-10-19 23:25:23 -04:00
rusefi 69e48e1e44 code style 2020-10-19 22:47:09 -04:00
rusefi 4343f96fd4 refactoring 2020-10-19 22:44:44 -04:00
rusefi ca89cf9b95 GDI Epic #1448 2020-10-19 22:04:06 -04:00
GitHub set-date Action c25bf07abf Update date 2020-10-20 00:54:38 +00:00
GitHub build-firmware Action 782ffdaf6e Auto-generated configs and docs 2020-10-19 12:06:22 +00:00
Matthew Kennedy 4d1c331eca second PID config for wastegate (#1889)
* remove

* cleanup

* implement ETB parts

* hook up to boost controller

* tests

* consume

* add cfg field

* ui maybe

* fix

* fix

* add wastegate config test
2020-10-19 08:04:27 -04:00
Matthew Kennedy 5337d9f723 Etb wastegate hookup (#1888)
* remove

* cleanup

* implement ETB parts

* hook up to boost controller

* tests
2020-10-18 21:57:04 -04:00
GitHub set-date Action e4cab65723 Update date 2020-10-19 00:54:39 +00:00
Matthew Kennedy 8c11a6fb4b remove (#1887) 2020-10-18 20:49:42 -04:00
Matthew Kennedy 2c23085715 Etb function cfg: actually read config (#1884)
* two throttles one thread

* look at all this RAM!

* add enum

* switch from index to function

* test fixup

* improve init logic

* remove old vw idle mode bit

* add config

* better spot for it

* use config init values

* handle null controller array

* fatal error testability

* test new init config

* defaults

* fix for default config
2020-10-18 17:26:38 -04:00
GitHub set-date Action 79f02f09ce Update date 2020-10-18 00:55:31 +00:00
rusefi 1be1f66edf GDI Epic #1448 2020-10-17 20:17:53 -04:00
rusefillc c354d1deb2 dead legacy code - current implementation is definitely more correct 2020-10-17 18:46:07 -04:00
rusefillc 3314394dd9 refactoring: better method name 2020-10-17 18:45:08 -04:00
rusefillc aec48c294e GDI Epic #1448 2020-10-17 14:53:56 -04:00
Matthew Kennedy c73978310f Remove trigger listener list (#1886)
* avoid 64b on hot path

* no tooth log when fast

* use crit section locker

* final

* only flip pins if not also self stim

* only trace if doing work

* slightly drop lateDelay

* trace if not bailing out

* remove listener array
2020-10-17 08:00:11 -04:00
GitHub set-date Action 32e7391ffb Update date 2020-10-17 00:52:43 +00:00
rusefillc 54c3d0f15c HW CI has failed 11 times since Oct 2 #1849 2020-10-16 13:54:12 -04:00
rusefillc ac677ffd55 Merge remote-tracking branch 'origin/master' into master 2020-10-16 13:21:25 -04:00
Matthew Kennedy f6f3e514d2 trigger/scheduler perf improvements (#1885)
* avoid 64b on hot path

* no tooth log when fast

* use crit section locker

* final

* only flip pins if not also self stim

* only trace if doing work

* slightly drop lateDelay

* trace if not bailing out
2020-10-16 11:04:27 -04:00
Matthew Kennedy 87d34ffcee more safe parts probably (#1883) 2020-10-15 22:04:42 -04:00
GitHub set-date Action e82306deaa Update date 2020-10-16 00:53:08 +00:00