Commit Graph

477 Commits

Author SHA1 Message Date
Matthew Kennedy ecaaff544b de-pointerize outputMode #49 2023-02-25 00:31:12 -08:00
GitHub gen-configs Action 73f21a723a Auto-generated configs and docs 2023-02-25 00:26:41 -08:00
GitHub gen-configs Action d9f0610bdf Auto-generated configs and docs 2023-02-24 21:59:58 -08:00
Matthew Kennedy 8b15f2c2ec dead serial config overrides 2023-02-24 21:53:27 -08:00
GitHub gen-configs Action c0815068a5 Auto-generated configs and docs 2023-02-23 15:07:51 -08:00
GitHub gen-configs Action d6b639eab8 Auto-generated configs and docs 2023-02-23 12:31:52 -08:00
GitHub gen-configs Action 5ea82bf75a Auto-generated configs and docs 2023-02-23 11:38:31 -08:00
GitHub gen-configs Action ddbd276e76 Auto-generated configs and docs 2023-02-22 22:20:33 -08:00
GitHub gen-configs Action 09763ef5ba Auto-generated configs and docs 2023-02-22 21:54:01 -08:00
GitHub gen-configs Action 94e278a27a Auto-generated configs and docs 2023-02-22 19:04:09 -08:00
GitHub gen-configs Action 024a709974 Auto-generated configs and docs 2023-02-22 18:25:14 -08:00
GitHub gen-configs Action c49c1c0316 Auto-generated configs and docs 2023-02-22 18:06:56 -08:00
GitHub gen-configs Action f98cdd4714 Auto-generated configs and docs 2023-02-22 17:49:32 -08:00
GitHub gen-configs Action 00cb760a7a Auto-generated configs and docs 2023-02-22 16:37:34 -08:00
GitHub gen-configs Action 30994cf369 Auto-generated configs and docs 2023-02-21 16:00:49 -08:00
Matthew Kennedy 75265b850a have to commit this apparently 2023-02-21 15:58:00 -08:00
GitHub gen-configs Action 29b35e688e Auto-generated configs and docs 2023-02-21 11:55:32 -08:00
GitHub gen-configs Action b95a1d77b3 Auto-generated configs and docs 2023-02-21 11:00:59 -08:00
Matthew Kennedy 72acb81682 fome-ify 2023-02-21 02:29:22 -08:00
Matthew Kennedy 00f3067185 idle pid cic 2023-02-20 23:01:59 -08:00
Matthew Kennedy cc8f64a371 narrow ego avg 2023-02-20 22:48:37 -08:00
Matthew Kennedy 495b5aebc7 mcp3208, hip9011 2023-02-20 22:40:31 -08:00
Matthew Kennedy 666a41e496 hip9011 2023-02-20 22:29:48 -08:00
Matthew Kennedy fd09ad7b4f cj125 2023-02-20 22:21:52 -08:00
Matthew Kennedy 961950dbcc gps 2023-02-20 22:07:21 -08:00
Matthew Kennedy 553c35a154 EFI_POTENTIOMETER 2023-02-20 22:03:33 -08:00
Matthew Kennedy 1370d96112 lcd & joystick 2023-02-20 21:57:53 -08:00
Matthew Kennedy 61c17791b8 joystick, lcd 2023-02-20 21:54:10 -08:00
David Holdeman 1c5e9d17ae update interactive-pinout, update yamls (#5049) 2023-02-10 05:01:05 -05:00
Matthew Kennedy cc6cadfdd6 deduplicate $(BOARD_DIR) in makefiles (#5024)
* calculate BOARD_DIR exactly once

* deduplicate board scripts

* unit tests

* make passes variables to openblt build properly

* was this an intentional omission?

* s

* prometheus

* prometheus
2023-02-01 14:41:27 -05:00
rusefillc 223f69083d Default binary should have more relaxed pinout: serial #4998
removing global F4 UARTD3 default
2023-01-23 07:12:25 -05:00
rusefillc 9df3da244e Default binary should have more relaxed pinout: serial #4998
we shall be enabling not disabling, and specifically these undef are not needed anyway?
2023-01-23 05:44:07 -05:00
rusefillc 8730782cd3 Refactoring: less confusion macro names around serial/uart/etc in connectivity fix #4999 2023-01-23 05:26:59 -05:00
rusefillc 3aa9ffca60 Refactoring: less confusion macro names around serial/uart/etc in connectivity #4999 2023-01-23 05:09:32 -05:00
rusefi 4db3a65a7e refactoring: extracting useful method 2022-10-25 21:55:54 -04:00
rusefillc 93b5758736 there is no third trigger simulator channel right? 2022-10-03 00:18:11 -04:00
Andrey G 0b49efdbb7 subaru_eg33: remove duplicate compile script (#4576) 2022-09-13 19:56:41 -04:00
rusefillc 241258a9de defaults clean-up: silentTriggerError 2022-09-08 14:44:34 -04:00
rusefillc b33e2d2a5b TinerStudio: no need to have 3s timeout, 300mS is ok for single-back devices. fix #4360 2022-08-27 18:19:47 -04:00
rusefillc 0740307eb8 another dead file? probably replaced by connectors yaml? 2022-08-16 20:49:37 -04:00
rusefillc 4041c42af5 reducing inconsistency between gen scripts 2022-08-16 16:49:06 -04:00
rusefillc e2c1793e08 reducing inconsistency between gen scripts 2022-08-16 16:41:33 -04:00
rusefillc 57e1836697 reducing inconsistency between gen scripts 2022-08-16 15:25:54 -04:00
rusefillc dabbcef172 reducing inconsistency between gen scripts 2022-08-16 14:52:34 -04:00
rusefillc 55caf3a990 reducing inconsistency between gen scripts 2022-08-16 14:33:13 -04:00
rusefillc 68cc879c67 reusing existing variable 2022-08-16 10:20:04 -04:00
rusefillc 73389214d0 +x 2022-08-15 11:09:27 -04:00
rusefillc a73035c60a +x 2022-08-15 11:00:47 -04:00
rusefillc 7d9ebccf12 more fancy 2022-07-09 23:51:20 -04:00
Matthew Kennedy 6267b8621a big delete ICU (#4270)
* big delete

* icu vestiges

* changelog
2022-07-07 15:27:59 -04:00
Matthew Kennedy 478549ccdf get rid of setSerialConfigurationOverrides (#4274)
* get rid of setSerialConfigurationOverrides

* missed a few

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

* s

* s

* cleanup

* eg33
2022-06-22 18:43:39 -04:00
rusefi e8e0e7bd6d verbose trigger sync should reuse engineSnifferRpmThreshold #4259
reducing complexity
2022-06-18 13:57:36 -04:00
GitHub build-firmware Action a2496043c6 Auto-generated configs and docs 2022-06-02 19:45:28 +00:00
Andrey 55f748aef6 new validation and a lot of clean-up! this gives us four sensors for E67 2022-06-02 15:19:01 -04:00
GitHub build-firmware Action cbb02dfd6f Auto-generated configs and docs 2022-06-02 18:22:57 +00:00
GitHub build-firmware Action 7900596c2a Auto-generated configs and docs 2022-06-02 05:01:51 +00:00
GitHub build-firmware Action efec281ca8 Auto-generated configs and docs 2022-06-02 04:47:18 +00:00
GitHub build-firmware Action f74a36e934 Auto-generated configs and docs 2022-06-02 02:36:51 +00:00
Matthew Kennedy c2f61dc95f 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 5150afa0be Auto-generated configs and docs 2022-06-02 00:36:06 +00:00
GitHub build-firmware Action 149c11eebd Auto-generated configs and docs 2022-06-01 19:17:46 +00:00
GitHub build-firmware Action cf8dcb068c Auto-generated configs and docs 2022-05-30 22:01:09 +00:00
rusefillc 160d5305c9 unique file name seems a bit more convenient 2022-05-26 23:43:44 -04:00
rusefillc a9e6a4ba94 why does this fail? (#4196)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-05-26 20:54:36 -04:00
rusefillc 270968d88f 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 405dbbc681.

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-05-25 17:10:41 -04:00
rusefillc a70172ae74 reducing magic constant, reducing difference between similar files 2022-05-24 18:28:16 -04:00
rusefillc ba8381be6b steps towards unified header 2022-05-24 16:45:00 -04:00
rusefillc e3d5e9ce0f reducing code duplication, also one step back with HSE 2022-05-24 16:25:16 -04:00
Andrey G 39bf967e70 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
GitHub build-firmware Action d2d07e40ff Auto-generated configs and docs 2022-04-30 02:32:30 +00:00
Andrey 33b4f8f86d CAN GPIO #4096 2022-04-29 22:15:54 -04:00
GitHub build-firmware Action 94b9e4a5b1 Auto-generated configs and docs 2022-04-30 00:36:25 +00:00
rusefillc 4af8a13a31 CAN GPIO #4096 2022-04-29 20:29:50 -04:00
rusefillc f341ce561e 2 byte pin index #4097 (#4102)
* 2 byte pin index #4097

* 2 byte pin index #4097

good time to defragment configuration

* 2 byte pin index #4097

new fancy way

* 2 byte pin index #4097

smart comment

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-04-29 19:35:31 -04:00
GitHub build-firmware Action b84cb0d83a Auto-generated configs and docs 2022-04-28 22:06:22 +00:00
Matthew Kennedy 83caf1ea1b 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 a2e1a079b8 allow enum_class in rusefi_hw_enums.h (#4104)
* make things c++ friendly

* install various canaries in coal mines

* using is much clearer than typedef

* fixing builds

* lps25

* trigger includes were a mess

* c -> c++ cleanup

* os util

* why did so many include os_util.h?

* fwd declare

* cypress/kinetis

* s

* eg33 happy

* happy sim

* cypress usb

* pch

* cypress

* doesn't need to include all that

* h7
2022-04-25 20:38:16 -04:00
Matthew Kennedy 1e26e1ae99 pass parameters instead of `export` in build scripts (#4081)
* no `export ...` mess

* frankenso NA6
2022-04-18 19:05:27 -04:00
Matthew Kennedy 3f9fc7d09c 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 ab1450eafe Mark is an ass but by far the most potent combination of knowledgeable ass, smart ass, get it done ass and determined ass. and his ass consistently puts in time. 2022-04-11 11:47:59 -04:00
rusefillc b19134ad31 using unique file names to reduce confusion 2022-04-11 11:35:39 -04:00
rusefi d7350ed2f7 refactoring: using VAR_DEF_ENGINE_TYPE bash variable for DEFAULT_ENGINE_TYPE Makefile variable 2022-04-09 18:48:33 -04:00
GitHub build-firmware Action 3aeed0dbea Auto-generated configs and docs 2022-03-11 01:39:55 +00:00
rusefillc 95168053f0 Explicit fw (#3968)
* explicit FW ID

* explicit FW ID

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-02-27 00:49:47 -05:00
Andrey G 47db520f53 Enable EFI_EMBED_INI_MSD for EG33 board (#3957)
* Allow per-board EFI_EMBED_INI_MSD enable for F7

* eg33: enable EFI_EMBED_INI_MSD
2022-02-23 12:03:10 -05:00
Andrey G 311542e84a Flash size on eg33 (#3955)
* subaru-eg33: 1M of flash is available for FW and bootloader

* ports: stm32f7: allow board define its flash size, otherwise 512K
2022-02-23 07:36:58 -05:00
rusefillc 59568cd2e5 it's dead. 2022-02-07 07:55:21 -05:00
Andrey G 48b35df6a3 L9779: initial driver (#3897)
* smart_gpio.cpp: glue to L9779

* L9779: fill with some code

* L9779: missed getDiag

* L9779: no l9779 on subaru-eg33 board
2022-02-06 09:47:18 -05:00
GitHub build-firmware Action 6e0ec51a79 Auto-generated configs and docs 2022-02-03 20:36:34 +00:00
GitHub build-firmware Action 614fa598c8 Auto-generated configs and docs 2022-02-03 20:07:58 +00:00
GitHub build-firmware Action d56702b9bb Auto-generated configs and docs 2022-02-03 19:55:31 +00:00
Matthew Kennedy 56240cb668 we have other places to set these MCU values (#3875)
* we have other places to set these values

* missing parts

Co-authored-by: rusefillc <rusefillc@gmail.com>
2022-02-01 18:18:16 -05:00
Matthew Kennedy a565c74189 SD card UI cleanup (#3870)
* dead config bit

* hide sd pin options

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

* move last logic out of fsio

* dead functions
2022-02-01 15:42:04 -05:00
rusefillc afdca12d86 refactoring? 2022-01-14 22:45:49 -05:00
rusefillc fc996ad339 Code style for methods with zero arguments #3535 2022-01-11 22:26:24 -05:00
rusefillc 9daf43ddfb reducing code duplication 2022-01-05 01:02:50 -05:00
rusefillc e0683972e0 more dead code 2022-01-05 00:53:45 -05:00
rusefillc 8e8745dbc8 reducing copy-pasta - would this work? 2022-01-04 20:47:12 -05:00
rusefillc 4c8abd5101 reducing copy-pasta - would this work? 2022-01-04 20:03:41 -05:00
rusefillc a9185542ce reducing copy-pasta - would this work? 2022-01-04 19:08:37 -05:00
GitHub build-firmware Action 95639ccb77 Auto-generated configs and docs 2022-01-04 03:39:23 +00:00
rusefillc 7acd36c198 helping build: sharing same brain_pin_diag_e 2022-01-03 22:33:38 -05:00
Matthew Kennedy 04333f61f3 /bin/bash (#3635) 2021-11-28 23:46:37 -05:00
Scott Smith 8406fafa9e Expose console over serial port for H7 proc (#3578)
This way you can use the console/TunerStudio with the ST-Link

In the process, combine TS_PRIMARY_UART and TS_PRIMARY_SERIAL into TS_PRIMARY_PORT, to make UART vs
SERIAL selection more robus.  Ditto for TS_SECONDARY_*.  Also change use of TS_NO_PRIMARY to be #if
not #ifdef, so that it can be properly set as a compile flag and not be overwritten by various
header files.
2021-11-20 00:39:08 -05:00
Matthew Kennedy e7956a53f6 fuel pump doesn't use fsio (#3576)
* fuel pump

* s

* call correct callback

* more dead

* test adjustment

* don't overflow

* don't need separate function

* java

* give it a name

* generated

* generated

* add to generate script

* import *

* this is so cheap we don't need a flag
2021-11-19 22:23:12 -05:00
Matthew Kennedy 7296593448 remove engine pointer passing (#3556)
* some

* more

* more

* the last?!
2021-11-16 04:15:29 -05:00
Matthew Kennedy c1941f3a49 (void) -> () (#3550)
* static functions with (void)

* more

* Revert "more"

This reverts commit 246e53441f935451437df186ac92d7df26b62fb6.

* s

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-15 13:02:34 +01:00
rusefillc eab7f670a2 Epic: Remove FSIO #2928 2021-11-14 07:24:50 -05:00
Matthew Kennedy 4f9df2a110 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
Matthew Kennedy 7f4b91809e dead vss flag (#3499) 2021-11-07 14:36:46 -05:00
Andrey G 51f53aa3fc 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
rusefillc b125fa4a0e placing all logs into same folder 2021-10-23 20:18:09 -04:00
rusefillc 1cb6af19fa generate java enum from C enum? generate both C and java from yaml? #2102
refactoring: code duplication
2021-10-23 13:40:04 -04:00
rusefillc bbaf743b19 generate java enum from C enum? generate both C and java from yaml? #2102
refactoring: code duplication
2021-10-23 12:48:49 -04:00
Matthew Kennedy 48da721c49 dead knock code (#3255)
* more unification

* hip stub

* comment

* guard

* channel idx

* include

* hip

* move in to engine

* hip9011

* dead stuff

* dead

* fsio

* lcd

* more dead
2021-09-21 20:40:20 -04:00
Andrey G a6fb12911d Board subaru: fix pinout. again and again (#3203) 2021-08-27 12:50:36 +03:00
Andrey G fc17c63d51 Bunch of small fixes related to EG33 board (#3188)
* Typo fix

* flash_main: always allow to write settings to ext NOR while running

* mc33810: do not enable outputs right after undervoltage

Wait for next active signal

* QSPI flash: set correct dummy cycles for fast read command

* board subaru: fix connector pinout. again.

* board subaru: fix SDMMC pin configuration

* board subaru: fix DMA conflict SPI4_RX vs SDMMC2
2021-08-24 07:39:03 +03:00
Andrey G bd7c73c109 qspi flash updates (#3169)
* ChibiOS QSPI updates

* board: subaru: speed up NOR flash

* QSPI: add fast read commands
2021-08-17 11:06:37 +03:00
Andrey G a36165f835 board subaru eg33: connector yaml: add Vbat sense pin (#3156) 2021-08-15 02:14:40 -04:00
Andrey G 859c4f3902 Settings ext storage (#3155)
* flash_main.cpp: reorder code for easy integration of ext storage

* Add EFI_STORAGE_INT_FLASH option

Default set to TRUE

* Add ChibiOS's Managed Flash Storage to build

* Add support for QSPI flash (SST26F064A tested)

* board: subaru: enable WSPI and NOR flash drivers

* Add option to save settings on ext flash MFS partition

* board: subaru: store settings on QSPI NOR flash
2021-08-14 09:36:08 -04:00
Andrey G 3f3587ad8d subaru board fixes (#3154)
* board: subaru: fix pinmuxes for QSPI interface

* board: subaru: switch to EXTI
2021-08-14 15:45:30 +03:00
Matthew Kennedy 4e6b61234f 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 c768113951 typos 2021-07-30 16:28:27 -04:00
Andrey G 2551993321 board: subaru eg33: fix pinouts, add aux connector (#2986) 2021-07-18 14:58:22 -04:00
Matthew Kennedy e3849b95d5 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
Andrey f4f02b984f progress - reducing code duplication 2021-07-12 21:31:40 -04:00
Matthew Kennedy 15931dd56c auto detect HSE clock speed (#2952)
* detect hse

* implementation

* these boards don't need to set their own HSECLK

* assertions

* name

* tweaks

* how did this compile?

* s

* biiiig comment

* this script doesn't need to set 25mhz any more

* ....or PLLM

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-07-12 20:51:35 -04:00
Andrey cbe407f465 VAG canned tunes 2021-07-08 20:42:35 -04:00
GitHub build-firmware Action ca59ff5b56 Auto-generated configs and docs 2021-07-08 03:49:03 +00:00
Andrey 54133f21f8 Option to log VVT target #2913 2021-07-06 20:00:53 -04:00
rusefi 342727bdd2 Nissan 2021-07-05 17:58:31 -04:00
Matthew Kennedy 9d41a19adc misc (#2899)
* dead fields

* defaults

* ui

* configs
2021-07-04 09:22:42 -04:00
Andrey fd3aa4ec18 Nissan VVT trigger decoder #2887 2021-07-01 21:48:47 -04:00
Andrey 6c7d2700b3 Nissan VVT trigger decoder #2887 2021-07-01 17:28:52 -04:00
Andrey af01242555 Nissan VVT trigger decoder #2887 2021-07-01 17:03:17 -04:00
Andrey G 77b9a9a99d Fixes eg33 (#2838)
* CAN HW: use designated initizalization

* board subaru eg33: set CAN transceiver EN to active state constantly

While FW does not handle CAN transceiver's EN signal
2021-06-20 08:18:16 -04:00
Andrey b4fe83a17d Review default H64 tune #2815 2021-06-13 21:17:22 -04:00
GitHub build-firmware Action 65780182bf Auto-generated configs and docs 2021-06-12 18:07:43 +00:00
GitHub build-firmware Action 82ec23f37d Auto-generated configs and docs 2021-06-12 04:03:50 +00:00
Andrey G 078b65edd9 Subaru svx (#2777)
* Revert "hiding 3rd channel for now"

This reverts commit 00c5c786c7.

* trigger subaru SVX: disable cranck #2 channel

* Board subaru-eg33: fix D10 pin defined twice

* Board subaru-eg33: renumber ignition ouput according cylinder order

* board subaru eg33: use common_make.sh to get dfu files

* board subaru-eg33: update default configuration
2021-05-31 04:25:57 -04:00
GitHub build-firmware Action c4a62e489f Auto-generated configs and docs 2021-05-28 07:41:15 +00:00
rusefillc 01212aeabf some 121 coordinates 2021-05-27 05:44:48 -04:00
Matthew Kennedy 4b69e7d441 compile gpiochips as cpp (#2702)
* rename

* core

* structing

* more

* makefile

* structing

* 6240 compiles

* explicit cast instead of implicit narrowing

* 8888

* no extern C

* fix tests build

* extern "C"

* 33810

* 8860

* 33810

* linker

* unbreak master

* don't need that if compiling as C++

* bump config

* fix test

* tests

* unit tests bad merge

* build

* move subaru logic to cpp file

* cpp goodness

* hpp include

* this is probably the right thing to do

* simulator
2021-05-17 08:42:56 +03:00
Andrey G ea870c4869 hip9011 (#2654)
* Move HIP states enum out of rusefi_enums.h

-this is internal driver stuff. No need to have it defined globaly.

* Auto-generated configs and docs
2021-05-08 10:08:18 -04:00
GitHub build-firmware Action 370180965e Auto-generated configs and docs 2021-05-04 14:14:18 +00:00
Andrey G e6e5303e87 Subaru board update (#2616)
* board: subaru_eg33: move to connectors yaml

* engine: subaru EG33: TPS is not inverted

* board: subaru_eg33: fix gen_config script

* board: subaru_eg33: update default settings
2021-05-03 09:32:14 -04:00
rusefillc becf33b240 2021 is the year of Hellen 2021-05-02 23:45:39 -04:00
rusefillc 60ab58c1c8 2021 is the year of Hellen 2021-05-02 18:52:33 -04:00
GitHub build-firmware Action d15d721006 Auto-generated configs and docs 2021-04-30 05:39:53 +00:00
GitHub build-firmware Action f3f5e4215d Auto-generated configs and docs 2021-04-30 05:10:36 +00:00
Andrey G 605378f829 Subaru board update (#2600)
* board: subaru eg33: linker script: stack, bss and heap to ram0

* Board: Subaru EG33: clean-up configs

* board-subaru-eg33: fix board config

* engine: subaru: eg33: fixes
2021-04-28 20:25:33 -04:00
rusefillc 959a63d7de hellen64 scripts and pinout #2565 2021-04-18 10:42:50 -04:00
GitHub build-firmware Action a8bfcacc53 Auto-generated configs and docs 2021-04-15 05:23:00 +00:00
rusefillc 067bdc188f https://github.com/rusefi/hellen72/issues/25 2021-04-10 23:22:25 -04:00
rusefillc 06ada8562b Kawasaki KX450F trigger wheel #2538 2021-04-08 22:16:14 -04:00
Andrey G a0053d5845 hip9011 and friends (#2527)
* engine math: extrant getFiringOrderTable for reuse

* engine math: getNextFiringCylinderId helper

* introduce knock_logic: first member is getCylinderKnockBank()

moved from software_knock.cpp

* hip9011: support two inputs/banks

* fix CI

* Board Subaru EG33: populated with TPIC8101 with Advanced mode

* hip9011: test communication in advanced mode

* hip9011: handle situation when chip is already in advanced mode

* Board Subaru EG33: cylinder to knock bank mapping

* hip9011: count spi transactions in advansed mode too

* hip9011: reset incalid responce counter after chip initialization

* hip9011: make debug output more structured
2021-04-04 18:13:21 -04:00
GitHub build-firmware Action 96d59b4629 Auto-generated configs and docs 2021-03-29 13:06:35 +00:00
Matthew Kennedy 72dac58f9b fix multi-serial-port insanity (#2476)
* carve out UART specific

* implement channel

* config cleanup

* use new config

* bootloader

* dead code

* s

* h7 inherits f7

* oops

* ok now it's right

* tests

* cleanup

* call setup

* put that in its own file

* cleanup

* format

* guard

* not needed

* improve guarding

* portable

* allow override of uart mode

* fixes for bootloader

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-28 09:06:36 -04:00
Matthew Kennedy 92d249918b rename setBoardConfigurationOverrides (#2479)
* rename

* proteus

* comments

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-22 14:15:09 -04:00
GitHub build-firmware Action 335d55b48d Auto-generated configs and docs 2021-03-22 11:54:44 +00:00
Matthew Kennedy cb33bb77ae Dedicated code path for USB console/TS (#2465)
* new apis

* dedicated USB path

* move decl

* init

* don't init usb twice

* guard

* check that we're initialized before using TS

* comment

* guard

* guard USB

* brain doesn't go good

* make tests happy

* dead define

* cypress

* ifdef != if

* s

* include priority

* don't start a thread we know we don't need

* bad-ish merge

* const

* why did this code exist...?

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-18 14:07:22 -04:00
GitHub build-firmware Action 8fd70f63a1 Auto-generated configs and docs 2021-03-14 21:30:08 +00:00
Matthew Kennedy 962e0b32e7 fix error/warning buffer overflow (#2456)
* fix error printing overflow

* make the worst offender shorter

* error as warning

* these don't need that flag set
2021-03-14 09:31:11 -04:00
Matthew Kennedy 72214b8b77 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 243ecdf3dd 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 cd548b4db2 hip9011 compilation fix, cosmetic clean-ups (#2414)
* Board subaru eg33: has HIP9011 knock sensor

* hip9011: lastExecutionCount does not exist any more

* hip9011: extranc commands to header, use logic math for bitfields
2021-02-28 15:42:57 -05:00
Matthew Kennedy f18ef02fa6 maybe hook up sdmmc (#2398)
* maybe hook up sdmmc

* the complier didn't like that very much

* mcuconf

* guard properly

* fix

* duh

* omg that's an extra close paren

* explicitly set which device fatfs should use

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-25 01:37:44 -05:00
GitHub build-firmware Action 260aa6e333 Auto-generated configs and docs 2021-02-18 23:20:11 +00:00
Andrey G 4b5da445f1 Subaru build (#2376)
* Subaru EG33: gen_config.sh update

* gen_config and gen_enum_to_string for subaru_eg33 board too

* Subaru eg33: add to buildables

* Subaru: fix build

* Subaru eg33: fix build and cleanup

* subaru eg33: add compile script

* github: subaru_eg33: call special  gen_config.sh
2021-02-18 18:18:13 -05:00
Matthew Kennedy adff68748c 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 a3d0b61cf1 get mcu temperature within port (#2326)
* remove EFI_ADC_TEMP_SENSOR

* implement

* comment

* s

* switch adc_inputs over

* header

* s

* I think aligned-on-stack should work ok

* num channels

* cache safety

* move adc init too

* don't compile that file for the h7

* cypress & kinetis

* ports

* guard against bootloader

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-09 22:04:36 -05:00
Matthew Kennedy 37fa81b5d0 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 c0757a7d13 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
Andrey G 0f47cff952 Add subaru eg33 (#2294)
* engine: Subaru SVX EG33 engine configuration

Not tested yet. Just basic settings and placeholder

* board: add Dron_Gus's Subaru EG33 p'n'p board

* board: subaru eg33: linker script: stack, bss and heap to ram0

* board: subaru eg33: add mapping.yaml

* board: subaru eg33: scripts for autogenerated

* board: subaru eg33: fix DMA conflict (ADC1 vs SPI5)

* board: subaru eg33: enable ADC3

* board: subaru eg33: Autogenerated

* board: subaru eg33: disable fsio control of Main Relay

Default MAIN_RELAY_LOGIC cause error during parsing

* board: subaru eg33: configuration hack to fix usbconsole.c

* gen_config: generate config for Subaru SVX board too
2021-02-06 12:50:34 -06:00