Commit Graph

366 Commits

Author SHA1 Message Date
Matthew Kennedy b92c0149d6
get rid of setSerialConfigurationOverrides (#4274)
* get rid of setSerialConfigurationOverrides

* missed a few

* kinetis
2022-06-23 19:42:09 -04:00
Matthew Kennedy 4d7fe35c5c
clean up sd overrides (#4272) 2022-06-23 09:15:51 -04:00
Matthew Kennedy 0bc445b461
flip icu/pal default (#4268)
* flip icu/pal default

* s

* s

* cleanup

* eg33
2022-06-22 18:43:39 -04:00
rusefillc 52d52ca08c MRE url 2022-06-16 21:33:17 -04:00
GitHub build-firmware Action e894bda4cc Auto-generated configs and docs 2022-06-02 19:45:28 +00:00
GitHub build-firmware Action cf855284bf Auto-generated configs and docs 2022-06-02 18:22:57 +00:00
rusefillc c8b3d71f5f software jump to DFU does not work #4230 2022-06-02 09:22:26 -04:00
GitHub build-firmware Action 86a1efee1a Auto-generated configs and docs 2022-06-02 05:01:51 +00:00
GitHub build-firmware Action ccba32c5ed Auto-generated configs and docs 2022-06-02 04:47:18 +00:00
GitHub build-firmware Action b7267b530f Auto-generated configs and docs 2022-06-02 02:36:51 +00:00
Matthew Kennedy 4ada633206
Remove third trigger channel (#4226)
* remove third trigger

* clean up the honda mess

* there was nothing novel about this engine config

* include

* missed a few

* s

* x

* changelog

* don't set the third trigger input

* don't redefine the same thing 3 times

* only two inputs!

* test
2022-06-01 21:24:20 -04:00
GitHub build-firmware Action fc3677a53f Auto-generated configs and docs 2022-06-02 00:36:06 +00:00
GitHub build-firmware Action e2c6c1420c Auto-generated configs and docs 2022-06-01 19:17:46 +00:00
GitHub build-firmware Action 3317744436 Auto-generated configs and docs 2022-05-30 22:01:09 +00:00
rusefillc 80a39995e0
https://rusefi.com/forum/viewtopic.php?p=45456#p45456 (#4209)
switching MRE from ICU to PAL trigger input

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-05-28 21:13:45 -04:00
rusefillc de10b8c473 unique file name seems a bit more convenient 2022-05-26 23:43:44 -04:00
rusefillc 5c698b98b4
why does this fail? (#4196)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-05-26 20:54:36 -04:00
rusefillc 7700548b7a
how are these layout files used? is this change legit? (#4198)
* reducing OpenBLT file duplication

* Revert "Revert "what could possibly go wrong with MRE""

This reverts commit 124375b07a.

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-05-25 17:10:41 -04:00
rusefillc 560f9f8de0 Revert "Revert "what could possibly go wrong with MRE""
This reverts commit 124375b07a.
2022-05-25 16:53:30 -04:00
rusefillc 124375b07a Revert "what could possibly go wrong with MRE"
This reverts commit 5d74d5dfa8.
2022-05-24 22:14:40 -04:00
rusefillc 519ee8d50f reducing magic constant, reducing difference between similar files 2022-05-24 18:28:16 -04:00
rusefillc 839a38e330 steps towards unified header 2022-05-24 16:45:00 -04:00
rusefillc 03fa7c7d95 reducing code duplication, also one step back with HSE 2022-05-24 16:25:16 -04:00
rusefillc d4066acc14 reducing code duplication 2022-05-24 16:05:07 -04:00
rusefillc f35e0a634e reducing code duplication 2022-05-24 15:45:06 -04:00
rusefillc 54268843b8 reducing code duplication 2022-05-24 15:31:14 -04:00
rusefillc 5d74d5dfa8 what could possibly go wrong with MRE 2022-05-24 15:18:30 -04:00
rusefillc 4c3467be6a reducing code duplication in a questinable way 2022-05-24 15:07:31 -04:00
rusefillc 592ec1cc82 dead copy-paste 2022-05-18 16:54:11 -04:00
Andrey G 57840b1998
OpenBLT: disable BOOT_CPU_USER_PROGRAM_START_HOOK for all supported boards (#4158)
We do not use it.
2022-05-10 06:15:46 -04:00
Matthew Kennedy b35e1acec7
set MRE overrides for spi2/3 pins (#4136)
* set overrides for spi2/3 pins

* don't enable SPI3, just set the pins

* s
2022-05-04 16:28:54 -04:00
rusefillc a8013e444b invalid SD card configuration on MRE causes RED, blinking BLUE and no USB :( #4131 2022-05-03 00:54:38 -04:00
rusefillc b5e951b76e invalid SD card configuration on MRE causes RED, blinking BLUE and no USB :( #4131 2022-05-02 16:37:00 -04:00
rusefillc fc44f655bf invalid SD card configuration on MRE causes RED, blinking BLUE and no USB :( #4131 2022-05-02 16:10:19 -04:00
rusefillc aa8e0859d7 back to MRE safery? 2022-05-02 06:35:11 -04:00
rusefillc f1e4945769 MRE 0.6.0 has SD which does not match some previous usages 2022-05-02 05:42:59 -04:00
GitHub build-firmware Action 0e10e79613 Auto-generated configs and docs 2022-04-28 22:06:22 +00:00
Matthew Kennedy e4a0979dc2
Brain pin is enum class (#4108)
* change most usages to Gpio::

* board configs

* engine configs etc

* isBrainPinValid, smart gpio

* generator

* generator

* generator

* connector yamls

* kinetis enums

* cypress txt

* kinetis config

* frankenso

* config generator

* actually do it for the others

* disable skips for pr ci

* fix tle8888

* misc

* weird cast from int

* needs this operator too

* this can be an unsigned subtract

* happy tests

* s

* kinetis isConfigurationChanged weirdness

* missed J/K

* cypress efifeatures

* build script mistake (!)

* mistake in smart gpio

* debounce

* eg33

* kinetis, so needy

* it's pretty green, we can skip these again
2022-04-28 17:32:39 -04:00
Matthew Kennedy 74301f5278
no lua mre debug (#4110) 2022-04-26 14:07:56 -04:00
rusefillc 7782618883 anything for gods of flash 2022-04-24 18:46:17 -04:00
Matthew Kennedy 68eb210a57
pass parameters instead of `export` in build scripts (#4081)
* no `export ...` mess

* frankenso NA6
2022-04-18 19:05:27 -04:00
Matthew Kennedy 2ee96bab90
set SHORT_BOARD_NAME from mk, not shell script (#4078)
* MRE

* proteus

* weird format lol

* alphax 4

* alphax 2ch

* prometheus, subaru

* s

* put a canary in the coal mine

* activate the sleepy canaries

* atlas

* tdg pdm

* The canary detected the problems it needed to

This reverts commit b0a3718b115f69f85f78fc4814aec04434968c0f.

* Revert "activate the sleepy canaries"

This reverts commit f80cfcdd789418caa30854064bcb9ce865eee474.

* prometheus
2022-04-18 14:22:05 -04:00
rusefillc 2055994799 something is not right here, do we still have RAM image in MRE QC? 2022-04-18 00:03:56 -04:00
rusefillc 64caa6f5ff sacrifice to the gods of small flash 2022-04-17 19:04:18 -04:00
rusefillc f3dd20b9f2 helping build 2022-04-16 20:22:46 -04:00
rusefillc c9b18e3db4 running out of flash - helping QC build 2022-04-15 09:45:46 -04:00
rusefillc 2874f62fa6 running out of flash - helping QC build 2022-04-15 09:36:44 -04:00
rusefi 850bb9c1eb refactoring: using VAR_DEF_ENGINE_TYPE bash variable for DEFAULT_ENGINE_TYPE Makefile variable 2022-04-09 18:48:33 -04:00
rusefillc b4aec7fa09 MRE QC build broken #4059
another bug: this variable was not used for MRE!
2022-04-09 18:22:05 -04:00
rusefi 22cc61ad61 MRE QC build broken #4059
nasty typo!
2022-04-09 17:53:24 -04:00
Matthew Kennedy 289122c0b7
fix 4032 (#4034)
* fix 4032

* board defaults should not set these things
2022-04-03 06:58:25 -04:00
Andrey cc9a1136c4 Trigger setup in TS is highly confusing: hide operation mode from users? #4031 2022-04-03 02:21:37 -04:00
Andrey 95d36b37e3 Trigger setup in TS is highly confusing: hide operation mode from users? #4031 2022-04-03 00:34:18 -04:00
Matthew Kennedy d1bc02e9cf
allow egt on mre (#4026) 2022-03-30 07:01:10 -04:00
rusefillc dbe7aa2282 4chan ETB 2022-03-29 20:49:23 -04:00
GitHub build-firmware Action 3958a16dd5 Auto-generated configs and docs 2022-03-11 01:39:55 +00:00
GitHub build-firmware Action 4bd19cd383 Auto-generated configs and docs 2022-03-10 22:18:46 +00:00
GitHub build-firmware Action efb64ffee8 Auto-generated configs and docs 2022-03-10 17:57:35 +00:00
rusefillc b1127349ad openblt doesn't work proteus f7 #3483
one step back
2022-02-21 16:59:09 -05:00
rusefillc 47440db9e4 +x 2022-02-21 09:18:46 -05:00
rusefillc e2101d13f9 OpenBLT: MRE: safe pins state #3802 2022-02-20 09:55:42 -05:00
rusefillc 8f17fdc502 better default DEFAULT_ENGINE_TYPE 2022-02-09 19:55:04 -05:00
rusefillc c5cd5a3e15 dead copy-pasta 2022-02-06 21:50:09 -05:00
rusefillc ef8e793aba https://rusefi.com/forum/viewtopic.php?p=44278#p44278 2022-02-04 17:16:12 -05:00
GitHub build-firmware Action a11fc8fad1 Auto-generated configs and docs 2022-02-03 20:36:34 +00:00
GitHub build-firmware Action 9d3ff33388 Auto-generated configs and docs 2022-02-03 20:07:58 +00:00
GitHub build-firmware Action 24a8973d46 Auto-generated configs and docs 2022-02-03 19:55:31 +00:00
Andrey d736ba8b66 EFI_ADC_13 used multiple times in hellen121vag #2925 2022-02-03 13:53:08 -05:00
Matthew Kennedy 0514f76899
SD card UI cleanup (#3870)
* dead config bit

* hide sd pin options

* #3868
2022-02-01 15:42:23 -05:00
Matthew Kennedy a718f3a30a
Remove fsio part 1 (#3871)
* dead includes

* move last logic out of fsio

* dead functions
2022-02-01 15:42:04 -05:00
Matthew Kennedy 493dcb4d66
flash savings (#3858)
* save table space

* turn some stuff off on some boards

* comment
2022-01-31 08:57:37 -05:00
David Holdeman 5989c379ce
Move Aux Reuse to ts_name to match others (#3843) 2022-01-26 08:18:05 -05:00
rusefillc cccc51a69f microRusEFI - pinout - can we merge sections fix #3837 2022-01-26 00:34:40 -05:00
rusefillc 9da536c433 https://rusefi.com/forum/viewtopic.php?f=17&t=2260 2022-01-25 12:46:35 -05:00
rusefillc 38780a2098 refactoring? 2022-01-14 23:10:48 -05:00
rusefillc 963c168788 Code style for methods with zero arguments #3535 2022-01-11 22:26:24 -05:00
rusefillc d7f38601b9 GDI red FATAL led on cranking #3766 2022-01-10 16:42:31 -05:00
rusefi 27e16a4f8f GDI red FATAL led on cranking #3766 2022-01-10 13:53:43 -05:00
rusefillc c973b8c687 GDI red FATAL led on cranking #3766 2022-01-10 13:06:19 -05:00
rusefi 13d0f07412 desperate measures 2022-01-08 18:41:56 -05:00
rusefillc d4b7882255 reducing copy-pasta - would this work? 2022-01-04 19:56:36 -05:00
rusefillc c411029383 reducing copy-pasta - would this work? 2022-01-04 19:08:37 -05:00
rusefi 3fb2df7a08 MRE meta 2021-12-31 01:21:42 -05:00
rusefillc b90638be44 reviving Passat 2021-12-29 21:18:15 -05:00
rusefillc 17b0b3fff4 ELM327 optimization: sendShortPacketsInOneFrame #3656 2021-12-05 00:43:04 -05:00
rusefillc 740cc6729c tune via CAN #3361 2021-12-04 00:03:00 -05:00
rusefillc 76d90c4fa8 https://rusefi.com/forum/viewtopic.php?f=5&t=2217 2021-11-21 08:12:05 -05:00
Scott Smith 823d9a07e0
Programmatically replace ENGINE() and CONFIG() with engine-> etc (#3565)
git grep -l -w ENGINE | xargs sed -i -r "s/ENGINE\(([]a-zA-Z_0-9.[]+)\)/engine->\1/g"

git grep -l -w CONFIG | xargs sed -i -r "s/([^a-zA-Z_])CONFIG\(([]a-zA-Z_0-9.[]+)\)/\1engineConfiguration->\2/g"
2021-11-17 03:54:21 -05:00
Matthew Kennedy 8cdac4cac0
remove engine pointer passing (#3556)
* some

* more

* more

* the last?!
2021-11-16 04:15:29 -05:00
Matthew Kennedy 14953c55dd
new parser handles enum values (#3492)
* simplify

* poke to force generate

* enums

* jar

* jar

* poke

* prepends formatted

* prepends

* eol

* eol

* allow no endl at eof

* Revert "eol"

This reverts commit 022029faef338281b1a3551f82e46c4b6a7578a5.

* Revert "eol"

This reverts commit 6274502db740569235210916fde4ec84863d7fb3.
2021-11-11 23:09:39 -05:00
rusefillc ce45a907a7 a bit of dead code 2021-11-06 23:39:56 -04:00
Andrey G da01bed4fa
MRE: disable OpenBLT (#3487) 2021-11-06 18:47:22 -04:00
Andrey G e3be563b27
Openblt (#3430)
* Makefile: define BOOTLOADER=1 for linker in case of OpenBLT too

This will reserve first 32K of flash for bootloader.

* OpenBLT: include into build

* board: subaru eg33: add OpenBLT board code

* board: subaru eg33: use OpenBLT

* Board: Subaru EG33: OpenBLT: reuse HAL and CMSIS from OpenBLT submodule

* Board: Subaru EG33: OpenBLT: reuse linker file from OpenBLT too

* OpenBLT for MRE

* OpenBLT: MRE: adjust LD memory map for smallest variat of MCU on MRE

* OpenBLT: enable for MRE

* OpenBLT: disable CRC check of user application

This allows us to use DFU tool to flash main application too.

* hex2dfu: fresh binary for linux

* OpenBLT: extract common part of OpenBLT makefiles to openblt.mk

* OpenBLT: enable CRC check of user application for MRE and EG33

CRC (actually just a summ) of few first vectors is stored at 0x1c
offset. This is reserved vector for Cortex-M3, M4 and M7

* common_make: append OpenBLT CRC to dfu files

This should allow to use DFU to do main application update when
when OpenBLT is used as bootloader. hex2dfu will store same
styled CRC as OpenBLT expects to see in user app.

* OpenBLT reorganization

Move common stuff to hw_layer/ports/

* OpenBLT: proteus

* Proteus: enable OpenBLT for F4 and F7

Compilation tested only
2021-11-05 19:28:55 -04:00
Andrey 0e6a51e5c0 export board-specific macro for stm32 pins based on board yaml #3298
meta progress
2021-10-26 10:27:10 -04:00
Andrey e5a5b0a0f7 export board-specific macro for stm32 pins based on board yaml #3298
mre meta progress
2021-10-25 21:05:45 -04:00
rusefillc 9c17dc1dfc https://rusefi.com/forum/viewtopic.php?p=42392#p42392
trying to allow VSS on AN-temp3 and 4
2021-09-28 16:21:57 -04:00
rusefillc 498f16817d HTML title for pinout pages fix #2882 2021-08-15 14:22:34 -04:00
Matthew Kennedy 25414ebdad
yet more pch (#3068)
* big pch energy

* put back ramdisk stub

* tests are happy

* h743 nucleo

* kinetis

* I love deleting code!

* make stepper happy

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-08-03 22:05:01 -04:00
Andrey 838ec90d60 RUSEFI MSD to contain bundle-specific URL fix #2848 2021-07-30 22:33:56 -04:00
David Holdeman 65203040ae
Pinout links (#3037)
* add support for links

* add undefined check and remove pdiv ref

* add MRE id

* clear search
2021-07-23 09:20:13 -04:00
David Holdeman 1bf98433ef
Pinout Title and connector names (#3021)
* add page title and connector name

* try mre
2021-07-21 19:47:38 -04:00
rusefillc 0f694205fd flipping presets logic in order to reduce duplication 2021-07-20 11:44:48 -04:00
Matthew Kennedy 2ce7777865
don't require EXTERN_ENGINE in every file (#2969)
* move enginePins

* no more extern engine

* uses

* more

* extern config too

* put this where it belongs

* include correct header

* merge
2021-07-16 18:13:33 -04:00
rusefillc a20e39dd99
Update readme.md 2021-07-07 14:05:56 -04:00
Matthew Kennedy 2eb0b2a631
Unified cyl count macro (#2914)
* update test framework

* eh

* hey look it's fewer warnings

* unwind

* fix

* config

* configs

* logic

* even java had some

* console needs help
2021-07-06 20:14:08 -04:00
Andrey 116aba739e https://github.com/rusefi/rusefi/issues/2848
per-board URL into project help
2021-07-03 23:47:23 -04:00
rusefillc 2fead8f1b3 typo & clarification 2021-06-17 11:38:36 -04:00
Andrey 24131cdc0e s/controlPin1/controlPin/ 2021-06-05 16:19:01 -04:00
Andrey 4a2f865606 MRE pinout improvement CAN polarity 2021-05-26 06:49:08 -04:00
David Holdeman 6d4060d824
Doxygen titles (#2728)
* move addRow call

* undo submo bump

* add header titles
2021-05-22 22:10:58 +03:00
Matthew Kennedy 20cef63d32
Lua on f407, try again (#2725)
* lua on f4

* move perf trace to efifeatures

* check that it's defined

* cypress and kinetis

* it would help to define the correct thing

* disable buffer if not used

* we can work with 2k

* turn off ramdisk on mre qc

* wow strncpy is useless for truncated strings

* turn off for bootloader

* lto bootloader

* memory

* memory
2021-05-20 23:05:18 +03:00
rusefillc 540bb8e327 Revert "lua on f407 (#2646)"
This reverts commit e8855263
2021-05-09 18:25:50 -04:00
Matthew Kennedy e885526308
lua on f407 (#2646)
* lua on f4

* move perf trace to efifeatures

* check that it's defined

* cypress and kinetis

* it would help to define the correct thing

* disable buffer if not used

* we can work with 2k

* turn off ramdisk on mre qc

* wow strncpy is useless for truncated strings

* turn off for bootloader

* lto bootloader
2021-05-09 16:25:38 -04:00
David Holdeman b572914b6a
MRE reuse pins (#2587)
* try adding a reuse pin

* try
2021-04-26 23:25:11 -04:00
rusefillc ea3bd4157c EFI_SOFTWARE_KNOCK for hellen 2021-04-21 09:56:46 -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 b087f328f7
default config, UI tweaks (#2444)
* s

* fix this while we're at it

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-12 00:16:24 -05: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
Matthew Kennedy 4fe0ceec61
deduplication in halconf (#2377)
* rusefi_halconf

* h7 gpt

* don't redefine that

* maybe this was necessary

* format

* no usb in cypress

* flags for bl

* cypress

* maybe bootloader

* no smart build for cypress/kinetis

* no smart build

* no really, disable smart build

* don't need to clean that env var

* cypress

* format
2021-02-24 14:08:03 -05:00
David Holdeman 21e8aa89e2
Fix mre pinout (#2384)
* move pins over

* rearrange
2021-02-22 16:23:08 -05:00
David Holdeman 7f5c32f624
Add missing MRE pins, fix bug (#2380)
* get type for table with multi-id pin

* add missing pins

* add missing type styles

* missing colon

* fix type

* add missing color

* use whole type
2021-02-19 16:59:57 -05:00
David Holdeman aae5c61d37
MRE connectors (#2354)
* Add MRE connector images

* fix name

* missing colon
2021-02-14 20:56:25 -05:00
Matthew Kennedy 187c4d00f7
USB mass storage tweaking (#2352)
* disable TS in case of USB MSD

* housekeeping while we're here

* enable on MRE

* changelog
2021-02-14 15:03:07 -05:00
Matthew Kennedy dade25ef34
move chconf/mcuconf/halconf in to hw_ports (#2321)
* move f4 config files

* don't need this

* f7

* f7

* h7

* this was duplicated

* turn off smart build

* loader too

* update prometheus paths

* bootloader should include confdir

* fix the flash size while we're at it

* move chconf_common

* use wait

* normalize board.mk

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-10 19:38:24 -05:00
Matthew Kennedy 3debd2229b
move board.h for f7/h7 (#2316)
* f7 board.h

* h7
2021-02-08 15:46:48 -05:00
Matthew Kennedy ad07166e9d
move f4 board.h (#2313)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-08 15:29:07 -05:00
Matthew Kennedy b995e7bcaa
include board.c from hw_ports.mk (#2311)
* set mcu type in hw_ports

* move f4 linker script

* move f7 linker script

* don't set default linker file in makefiles

* extra line

* prometheus actually didn't depend on anything special for f469

* dead line

* h7

* dead

* move board.c

* set explicit cpu type for simulator

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-08 07:52:31 -06:00
Matthew Kennedy 423acd384b
simplify MCU selection (#2308)
* set mcu type in hw_ports

* move f4 linker script

* move f7 linker script

* don't set default linker file in makefiles

* extra line

* prometheus actually didn't depend on anything special for f469

* dead line

* h7

* dead
2021-02-08 02:11:44 -05:00
Matthew Kennedy 10c31c2955
-g3 to -g (#2256)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-01-31 14:13:55 -05:00
rusefillc 99dd0b9450 IGNORE_FLASH_CONFIGURATION 2021-01-28 18:03:45 -05:00
rusefillc d388afff34 mre_f4_recovery build 2021-01-28 17:46:49 -05:00
David Holdeman 6ead64e512
New board pin-mapping system (#2231)
* convert mre mapping

* convert mre mapping

* funny stuff for GPIOA_5

* move class next to id

* rough draft

* update scripts

* fix some errors

* fix some errors

* try

* check against null

* try amp

* try

* try

* fix some errors

* update scripts

* fix maybe

* fix maybe 2

* fix maybe

* fix maybe

* fix

* try

* fix

* use .equals

* use StringBuilder

* use instanceof

* use .max

* remove getMaxValue

* Suppress Warning

* major optimization

* fix maybe

* off-by-one error

* move yaml file loop

* add j2 connector

* add pads yaml

* check for null or empty

* add AV pins to pads

* forgot class

* move registerpins out of loop

* fix typo

* rebase

* check if string

* convert frankenso

* convert frankenso

* tyop

* missing class

* copy mre to skel

* remove prometheus yaml

* remove kinetis yaml

* build configDefinition

* replace var with string

* slight refactor
2021-01-22 12:03:14 -05:00
Andrey G baea67eccf
Simplify Makefile, unify board.mk files (#2229)
* Proper way to add lis302 driver

* Proper way to add license directory to includes

* Makefile: simplify

All ChibiOS stuff is accumulated in ALLCSRC, ALLINC and so on.

* board.mk: append sources and includes to ALLSRC, ALLCPPSRC, ALLINC

* Cypress: fix CANv2 includence into build
2021-01-17 09:32:06 -05:00
rusefillc 4a23aa4dbc Hellen 2021-01-09 11:24:13 -05:00
rusefillc f28f1e0f90 fine-grained check modes 2020-12-27 17:41:28 -05:00
Matthew Kennedy 1838beadfa
only build in config for the correct board (#2088)
* only build in config for the correct board

* undo

* undo

* undo

* only touch proteus config

* include configs in tests
2020-12-17 17:12:24 -05:00
rusefi 1561015ab1 MRE mapping 2020-11-15 17:16:58 -05:00
Matthew Kennedy 5a810218aa
fix MRE digital input mapping (#1910) 2020-10-25 19:26:04 -04: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 580872d88e VAG radiator control 2020-10-19 23:25:23 -04:00
rusefillc 665900d76a GDI Epic #1448 2020-10-17 14:53:56 -04:00
rusefillc efacf26554 Re-applying #1841
Revert "HW CI has failed 11 times since Oct 2 #1849"

This reverts commit 7f6a8311
2020-10-04 01:54:29 -04:00
rusefillc 7f6a831117 HW CI has failed 11 times since Oct 2 #1849
Revert "configure all sample times - fix MRE knock sampling (#1841)"

This reverts commit b3596f89
2020-10-03 21:36:09 -04:00
Matthew Kennedy b3596f8969
configure all sample times - fix MRE knock sampling (#1841)
* configure all sample times

* smpr 1 vs smpr 2

* man I can't type

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-10-02 20:49:56 -04:00
David Holdeman ae9c60731a
move cd statements to common_make.sh (#1830)
* move cd to compile.sh

* rel path

* undo changes to compile.sh and move cd to common_make
2020-09-28 18:25:15 -04:00
shadowm60 a70e24bf6c
Mre sw knock detection (#1815)
* Add SW knock control to MRE on AT4

* Update software_knock.cpp

cleanup

* use knock only for final build

* adjust RAM

* Update engine_controller.cpp

Adjust RAM for HW QC special to build
2020-09-22 03:48:17 -04:00
rusefi 0c1ac0c932 microRusEFI used as Body Control Module BCM BCU 2020-09-07 16:25:00 -04:00
rusefi 8296f54923 microRusEFI used as Body Control Module BCM BCU 2020-09-06 22:36:31 -04:00
rusefi 5d739d8976 migrate VSS to universal event capture #1665
docs
2020-09-03 11:56:15 -04:00