Commit Graph

53 Commits

Author SHA1 Message Date
Andrey 24131cdc0e s/controlPin1/controlPin/ 2021-06-05 16:19:01 -04:00
Matthew Kennedy 1dffcf5729
make board config override actually usable (#2508)
* new function

* hellen

* MRE

* proteus

* put those function declarations in a reasonable place

* put the comment back

* weak

* move that to a reasonable place

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-31 14:46:50 -04:00
Matthew Kennedy 51a5b4d6d5
rename setBoardConfigurationOverrides (#2479)
* rename

* proteus

* comments

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-22 14:15:09 -04:00
Matthew Kennedy 59eecab421
prep proteus config for h7 (#2413)
* prep for h7

* weak link that

* make those weak

* remove other stubs

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-28 16:57:57 -05: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
rusefi 8296f54923 microRusEFI used as Body Control Module BCM BCU 2020-09-06 22:36:31 -04:00
rusefi c98d177111 QC config 2020-07-27 22:05:40 -04:00
rusefi e09b9eee3a auxTempSensor text output 2020-07-27 20:23:57 -04:00
rusefi aac7712df5 test fixture progress 2020-05-21 18:36:32 -04:00
rusefi c25afadb94 exposing some GPIO 2020-05-20 23:53:25 -04:00
rusefi 4e703ce8e8 maybe this would just work?!... 2020-05-15 02:31:02 -04:00
rusefi ebdee661e6 Revert "moving SD card to SPI1 thank you Matt!"
This reverts commit 9975d7a8
2020-05-15 00:30:49 -04:00
rusefi 9975d7a83f moving SD card to SPI1
thank you Matt!
2020-05-15 00:29:18 -04:00
rusefi 6ab831cc49 SPI3 2020-05-13 23:29:52 -04:00
rusefi dff7bbd4e0 SD card for MRE 2020-05-13 23:26:28 -04:00
rusefi a078922244 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	firmware/controllers/engine_controller.cpp
2020-05-13 19:31:42 -04:00
rusefi 28608449b1 docs & helping master 2020-05-13 19:27:11 -04:00
rusefi f233628c2c lovely, yet another minor confusion 2020-05-13 01:16:05 -04:00
rusefi eae24e82d1 more dead code 2020-05-11 18:24:29 -04:00
rusefi 7e82691319 oh what did I do 2020-05-02 22:27:20 -04:00
rusefi 965c06c079 https://github.com/rusefi/rusefi_documentation/issues/37 2020-04-29 18:41:40 -04:00
Matthew Kennedy fe4b531aeb
Move ETB control to a thread (#1374)
* switch to thread

* actually use default frequency define

* crank ADC too

* make space in RAM

* remove TS field

* this should work for test

* fix dt

* re-resize ram
2020-04-28 07:22:31 -04:00
Matthew Kennedy 83cca6ec7a
allow overriding configuration (#1341)
* config overrides

* proteus too

* comment

* remove wno-error

* comment
2020-04-26 00:07:59 -04:00
rusEfi b6e0113320 MRE docs 2020-04-13 14:30:17 -04:00
Matthew Kennedy 001ef27eb8
support ETB disable pin (#1273)
* config & hand gen

* board configs

* add dc motor support

* initialization

* also set duty to zero

* use disable in etb

* fix proteus default

* add TS fields

* I guess we needed 8 bytes

* :D

* comment

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-10 17:27:13 -04:00
rusefi 81211219f2 CAN progress 2020-03-31 16:49:19 -04:00
Matthew Kennedy 6f5a9760ed
Fix mre vbatt (#1218)
* Revert "vbatt MRE happiness"

This reverts commit ca1d44ae2c.

* update comments
2020-03-25 16:23:04 -04:00
rusEfi c35f4aa2e3 more mc33816 2020-02-25 22:38:08 -05:00
rusEfi ca1d44ae2c vbatt MRE happiness 2020-02-16 16:59:33 -05:00
rusEfi fe063d53cd proper 'f' syntax 2020-02-12 23:16:46 -05:00
rusEfi aed1152c7a MRE divider 2020-02-12 22:15:36 -05:00
rusefi af4f20551b getting rid of boardConfiguration / binary compatible change 2019-12-11 17:48:55 -05:00
rusefi beda8f4b31 making things nicer with dual ETB settings 2019-11-30 18:42:51 -05:00
rusefi 3ed889486e making things nicer with dual ETB settings 2019-11-30 17:38:33 -05:00
rusEfi 799027c2e9 all ETBs to run in same HW mode 2019-11-29 16:51:51 -05:00
rusefi e474ab461a MRE F4 2019-11-06 20:05:44 -05:00
rusefi e1e113f41b https://github.com/rusefi/hw_microRusEfi/issues/115
documentation issue: 24 AN Temp 3 at External wideband O2 sensor #115
2019-09-16 21:00:20 -04:00
rusEfi 4a2505e2d1 using MRE config for Nucleo 2019-09-14 16:03:04 -04:00
rusefi 532a28a251 docs 2019-09-12 07:29:38 -04:00
rusefi 2818c803b5 fatalErrorPin setting is not used #926 2019-09-09 21:34:15 -04:00
rusefi 8d48e2eef5 MRE NA6 2019-09-08 11:17:27 -04:00
rusEfi 3a9a314689 MRE NB2 2019-09-05 23:14:28 -04:00
rusEfi a027f827e7 MRE NB2 2019-09-02 17:16:36 -04:00
rusEfi 5b3c30831c MRE NB2 2019-09-02 11:07:34 -04:00
rusEfi 47bbd6ebe4 ETB progress 2019-08-31 20:17:17 -04:00
rusEfi 7efe5cdd5c reducing dead code 2019-08-31 17:59:18 -04:00
rusefi 1200dd5efd wow, CI was down for a week 2019-08-25 22:53:57 -04:00
rusEfi 420ba087db docs 2019-08-18 20:18:56 -04:00
rusEfi 59daae8f5c MRE & Miata 2019-08-17 22:42:22 -04:00
rusEfi 6c9d684dfd MRE etb 2019-08-17 17:33:44 -04:00