Commit Graph

2005 Commits

Author SHA1 Message Date
rusefillc 4fb0f6e5c3 Hellen72 2021-01-22 02:09:28 -05:00
rusefillc 7f893c6159 Hellen72 2021-01-22 02:02:16 -05:00
andreika-git 5fbb1c6b5d hellen72 trigger PAL mode (#2233)
Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2021-01-21 10:22:29 -05:00
Andrey G 27905c6817 Chibi os 20 (#2212)
* Update ChibiOS

* Fix Makefiles includes paths

* halconf.h: remove flash hack

* mcuconf: fix EXTI ptiorityes

* Digital Input: ICU: use designated initializers, initialize 'arr'

* ChibiOS: lis302dl fix

* ADC: update to new API

* UARTConfig: timeout_cb field, formating

* ChibiOS: remove _exit, _kill, _getpid

* Fix lis302dl

* Bump config versions

* chconfig_common: cosmetic changes

* stm32f4ems: commulative config update

* Update Simulator

* ALLCSRC already contain all needed ChibiOS files.

Same for ALLINC and ALLCPPSRC

* ChibiOS fix for Simulator

* ChibiOS: port lock/unlock hook and MMC over SPI timeout

* STM32F7: update configs

* STM32F7: update linker file

* Cypress: port ADC lld to ChibiOS-20

* Cypress: port SPI lld to ChibiOS-20

* Cypress: port CAN lld to ChibiOS-20

* Cypress: fix include path for rules.ld

* Cypress: update chconf.h and halconf.h for ChibiOS-20

* Kinetis: update ADC lld to ChibiOS-20

* Kinetis: update SPI lld to ChibiOS-20

* Kinetis: update UART lld driver for ChibiOS-20

* Kinetis: update chconf.h and halconf.h for ChibiOS-20

* Kinetis: fix include path for rules.ld

* Nucleo F746: update ld script

* Nucleo F746: fix compile

* Bootloader: fix compilation with ChibiOS-20, cleanup

* Bootloader: add way to pass crosscompiler using CROSS_COMPILE

* Debug build arguments

* Simulator: fix windows compilation

Exclude syscalls_cpp.cpp from compilation
2021-01-19 15:20:35 -05:00
Andrey G d134fabc51 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
Andrey G 052e2e558b Supress annoing unused warnings (#2216) 2021-01-11 08:49:20 -05:00
rusefi dcc1d7ad01 nb2 and proteus usability 2021-01-11 01:17:03 -05:00
rusefi fcc49918f9 vvt knock 2021-01-10 18:57:27 -05:00
Andrey G 75098a0d4b Lcd fix (I hope) (#2211)
* LCD: check if settings are valid on each access

* Lada Kalina: remove duplicate code

All LCD pins are set to GPIO_UNASSIGNED in disableLCD()

* Remove duplicate code

* We still need to know when invalid gpio is used...

This reverts commit 9c12c4dd44.
2021-01-09 17:16:10 -05:00
rusefillc 554dec7a05 Hellen 2021-01-09 11:24:13 -05:00
Andrey G b61ae75fe2 gpio helper (#2195)
* gpios: isBrainPinValid helper

* LCD HD44780: do not touch pins if DM_NONE or invalid gpio

* Fix isEnabled checks for GPS and Joystick

* LCD HD44780: writePad use this method wider
2021-01-08 20:01:26 -05:00
andreika-git 3dac7599c4 Hellen72 config (#2200)
* Hellen72 config

* Hellen72 files

Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2021-01-08 12:50:13 -05:00
Matthew Kennedy 86d3746453 Idle timing uses phase logic, remove falloff (#2169)
* use phase computation

* move & simplify implementation

* test

* bad merge

* initialize

* wonderful changelog

* now unused parameter

* put back deadzone

* ui

* test deadzone

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-01-07 08:06:36 -05:00
rusefillc 5a75c69b8e knock v12 2021-01-06 19:42:07 -05:00
Andrey G f962a7bd64 Gpio cleanup #2 (#1530)
* pin repository: PIN_USED size in now equal to brain_pin_e enum size

expect special values...

* smart gpios: register gpio chip to given base (no auto-allocation)

* drivers: gpio: core: add gpiochip_unregister()

* drivers: gpio: MC33810 intergation

* smart_gpio.cpp: cleanup ifdef mess, minor cleanups

* gpio: core: additional check for gpio ranges overlaps

* unit test: gpio chip: fixed and extended
2021-01-06 18:29:47 -05:00
rusefillc 8396f36a14 knock knock v12 2021-01-06 12:48:32 -05:00
rusefi 35482fd21e progress 2021-01-03 17:58:00 -05:00
rusefi a8bba64220 GPIOG_1 is not a proteus control pin, assuming a typo 2021-01-01 18:20:49 -05:00
rusefi c29a0d9b06 docs 2021-01-01 18:19:52 -05:00
rusefi e530ded915 F7 HW CI 2020-12-28 23:26:51 -05:00
rusefi 154912509b fixing QC config 2020-12-28 19:19:29 -05:00
rusefillc b286ec8a34 fine-grained check modes 2020-12-27 17:41:28 -05:00
rusefi 96cbe35e6f xmas tree 2020-12-26 21:25:19 -05:00
rusefi ba19fae213 xmas tree 2020-12-26 18:59:30 -05:00
rusefi 3d3b5706d3 HW_CHECK_SPARK_FSIO 2020-12-26 16:16:40 -05:00
rusefi e0319ea941 proteusBoardTest 2020-12-26 13:41:33 -05:00
rusefillc 8bcaea7868 https://github.com/rusefi/rusefi/wiki/HOWTO-Miata-NB2-on-Proteus 2020-12-26 11:42:09 -05:00
rusefillc 80854bf5ce proteusBoardTest 2020-12-26 10:50:18 -05:00
rusefillc 027c5a3580 proteusBoardTest 2020-12-26 10:46:45 -05:00
rusefillc f9de491b67 proteusBoardTest 2020-12-26 10:41:33 -05:00
rusefi c67af9632a PROTEUS_QC_TEST_BOARD 2020-12-26 00:57:23 -05:00
Matthew Kennedy fad3b07b8b Purge e34 config (#2127)
* remove

* enums

* s

* func test

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-24 07:31:25 -05:00
Matthew Kennedy 7617b115de Partition configs by board type (#2106)
* remove old flag

* flags

* reorder switch

* oops
2020-12-22 21:54:40 -05:00
rusefi 4c347026ff Proteus is compiled without VSS feature #2122 2020-12-22 21:28:51 -05:00
rusefi 6ddfff8fd9 Proteus is compiled without VSS feature #2122 2020-12-22 20:50:01 -05:00
Matthew Kennedy 4a95652f88 Purge fiesta config (#2117)
* config

* this had a feature flag?

* enums

* goodbye, fiesta
2020-12-22 17:22:05 -05:00
rusefillc 632afe3432 fixing master PROTEUS_DEFAULTS 2020-12-22 17:13:05 -05:00
Matthew Kennedy 85f0621738 Purge rover v8 config (#2116)
* bye

* goodbye, rover v8

* that snuck in

* use a different config for that test
2020-12-22 10:05:54 -05:00
rusefillc 1d434336f8 VR_HW_CHECK_MODE 2020-12-21 13:33:09 -05:00
rusefi 99a349e4c6 VR_HW_CHECK_MODE 2020-12-21 12:30:15 -05:00
rusefillc 4220b9fcbd something ? HIP / SPI pin conflict does not fail gracefully #2108
maybe this is just testing framework bug?
2020-12-20 17:17:03 -05:00
rusefillc 34fc9b1fb6 something ? HIP / SPI pin conflict does not fail gracefully #2108 2020-12-20 12:51:20 -05:00
rusefi 9194323b5d proteus_f4_hardware_QC_special_build 2020-12-20 11:17:38 -05:00
rusefillc 1be84c072e proteus_f4_hardware_QC_special_build 2020-12-20 09:14:14 -05:00
rusefillc bf0dfcf659 proteus_f4_hardware_QC_special_build 2020-12-20 09:11:36 -05:00
rusefi c6cdcb27de something ? HIP / SPI pin conflict does not fail gracefully #2108 2020-12-19 17:06:42 -05:00
rusefillc 009f48b457 something ? HIP / SPI pin conflict does not fail gracefully #2108 2020-12-19 16:07:21 -05:00
rusefillc 1e5be46b4c something ? HIP / SPI pin conflict does not fail gracefully #2108 2020-12-19 15:18:23 -05:00
CrazyStriker b905a4aa5b Nb proteus config (#2104)
* Added proteus config and started working on it

* Update engine config

* corrected board config

* Completed pin attribution in proteus hardcoded nb2 miata

* Removed problematic call

* Corrected the blocking value

* Removed blocking equal sign

* Reworked indentation
2020-12-18 15:53:57 -05:00
rusefillc d38195b206 NB2 MRE closer to reality 2020-12-17 19:03:38 -05:00
Matthew Kennedy 34edf34bf4 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
rusefillc 88bb2f4569 trigger and start button pins not displayed by "pins" command fix #2084 2020-12-16 22:24:19 -05:00
rusefillc 727a775049 hello new wiki 2020-12-16 19:58:15 -05:00
Matthew Kennedy 91d1acb50e prototype wideband firmware update (#2074)
* add submodule for firmware

* ts

* add updater

* add bench_test

* don't collide idx

* feature flag

* send acks

* fix timeout logic

* ui

* do it on the bench thread

* guard

* guard

* only do twice

* guard

* bump version

* update

* file name

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-16 08:28:53 -05:00
rusefillc 7d104bff8d pnp progress 2020-12-15 00:09:35 -05:00
rusefillc 4c2ea35269 TT_SUBARU_7_WITHOUT_6 2020-12-13 17:46:48 -05:00
rusefi 3684b739d3 subi 2020-12-13 16:38:09 -05:00
rusefi e906552e03 subi drama 2020-12-13 15:44:14 -05:00
rusefi 233381cb2e this car has high-side main relay WOW 2020-12-13 14:49:14 -05:00
rusefi afe387c7be subi 2020-12-13 11:39:10 -05:00
rusefillc 15be4c0e50 https://rusefi.com/forum/viewtopic.php?p=38877#p38877 2020-12-12 20:07:53 -05:00
rusefillc 3be2c27485 Passat B6 canned config: GDI injector deadtime to like flat 0.2ms #2049 2020-12-11 09:07:23 -05:00
Matthew Kennedy 6f491cf5c4 switch stm32 scheduling to use PWM driver (#1983)
* move to folder

* extract hardware part of microsecond_timer

* dead ST forum link

* de-volatile

* simulator build

* guard

* switch stm32 to pwm timer

* comments

* f7 mcuconf

* simulator

* guard

* warning

* header, cleanup

* constant

* less magic

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-11 00:44:40 -05:00
rusefillc f868d05dec MRE_SUBARU_EJ18 2020-12-06 14:16:40 -05:00
shadowm60 45205e7da7 Dyno view proposal (#1999)
* DynoView creation

module implementation and unit_tests

* update acc algo

we only calcualte new acceleration value if speed has changed, not on every callback.

* added acceleration ts_channel

* fixed broken unit tests

* fixed accel sign

* review updates

* Update test_dynoview.cpp

fix unit_tests

* Update engine_controller.cpp

Fix .ram4 unused size

* Update test_dynoview.cpp
2020-12-04 20:28:48 -05:00
rusefillc ba0503177c more dead code 2020-12-03 10:49:20 -05:00
rusefi 1dba003c5c isSdCardEnabled is set to 'true' a few lines below 2020-12-02 00:09:08 -05:00
rusefi 53a9efd0f0 PnP miata 2020-11-30 00:12:06 -05:00
rusefi ab0fe12d65 PnP miata 2020-11-30 00:10:29 -05:00
rusefi 24bff5e5e1 PnP miata 2020-11-30 00:00:36 -05:00
rusefillc 0884bc36f6 94 2020-11-29 18:09:11 -05:00
rusefillc 58e174b3fb 94 2020-11-29 12:07:56 -05:00
rusefillc d199302b83 miata 94 2020-11-28 22:49:28 -05:00
rusefi 08c7849b29 it's weird 2020-11-27 16:41:11 -05:00
rusefi 93160c6abb LM_ALPHA_N_2 rename 2020-11-27 15:44:31 -05:00
rusefillc 42c56a47da dead engine config
one step back
2020-11-26 21:21:25 -05:00
rusefillc 0f39f37bba dead engine config 2020-11-26 21:07:34 -05:00
rusefillc 96ca95bd1e dead engine config 2020-11-26 20:26:12 -05:00
rusefillc f5f97d60df Starter is engaged on start-up in pull-up configuration #1969 2020-11-26 16:58:02 -05:00
rusefillc 0bd148d97d Starter is engaged on start-up in pull-up configuration #1969 2020-11-26 16:56:18 -05:00
rusefillc f63e3c68fd Starter is engaged on start-up in pull-up configuration #1969 2020-11-26 16:20:13 -05:00
Matthew Kennedy dfa38e6829 default to off (#1989) 2020-11-25 22:44:08 -05:00
rusefi e2ac877926 GDB helper 2020-11-25 13:53:29 -05:00
rusefi 4d2265478d GDI Epic #1448 2020-11-22 01:14:34 -05:00
Matthew Kennedy 2792828dce 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
rusefi e7dfffe71d toyota89281_33010_pedal_position_sensor 2020-11-16 23:38:23 -05:00
rusefillc 851478f846 DC not ETB refactoring 2020-11-16 20:05:35 -05:00
rusefi 5b45f25f09 B6 2020-11-15 20:56:16 -05:00
rusefi b3e910008c MRE mapping 2020-11-15 17:16:58 -05:00
rusefi ad9635b4ff GDI Epic #1448 2020-11-15 15:37:53 -05:00
rusefillc 6f56988469 https://rusefi.com/forum/viewtopic.php?p=38367#p38367
idle position/waste gate position sensor usability
2020-11-14 18:05:27 -05:00
Matthew Kennedy 605269c358 remove idle thread; just call from periodicSlowCallback (#1924)
* remove thread

* remove ui
2020-11-11 21:47:19 -05:00
Matthew Kennedy 6b0c533d2c 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
rusefillc cf7c613ed8 GDI Epic #1448 2020-11-11 00:43:21 -05:00
Andrey G 2f891cc23a Tle8888 stepper (#1936)
* TLE8888: enable PP mode for OUT21..24 in case of useTLE8888_stepper

* Lada Kalina is a test mule for stepper idle
2020-11-10 14:16:46 -05:00
rusefillc 529a6863c3 GDI Epic #1448 2020-11-09 22:53:23 -05:00
rusefi f353e5c7a3 debounce unintended auto-increment bug (was: Proteus TCU gear shift configuration) #1927 2020-11-07 00:35:56 -05:00
rusefi 34f887d6af v12 & dual-channel PPS 2020-11-06 15:30:11 -05:00
rusefi 7adde869d7 v12 Proteus 2020-11-06 14:18:54 -05:00
rusefi 69d233cc66 miata TCU 2020-11-04 12:42:30 -05:00
rusefi fdd183324e miata TCU 2020-11-03 23:59:00 -05:00
rusefi 457deea2e7 miata TCU 2020-11-03 23:21:47 -05:00
David Holdeman 77460ba6ae set solenoids (#1925) 2020-11-03 22:18:40 -05:00
rusefillc e384df96cc TCU 2020-11-03 20:17:47 -05:00
Matthew Kennedy 789926a61d convert cranking defaults to mg (#1921)
* convert cranking defaults to mg

* fix tests
2020-11-03 14:12:26 -05:00
rusefi d2d8b78073 B6 GDI 2020-11-01 00:33:18 -04:00
rusefi f16556bdc5 b6 2020-10-29 01:15:55 -04:00
rusefi b76cfa8ef1 b6 2020-10-28 18:53:30 -04:00
rusefillc 781cc3d326 [EPIC] [Feature Request] Transmission Control #1454 2020-10-28 01:23:05 -04:00
rusefillc 91afd62a53 GDI 2020-10-28 01:01:54 -04:00
Matthew Kennedy b8c2041467 Everything in lambda! (#1893)
* lambda

* default configs, fix build

* config, gauge, UI

* more digits

* change menu text

* fix that while I'm here

* doesn't need extra word

* todo note

* tests

* last test

* missed a config

* update java

* store target lambda

* more java

* format

* hopefully enough java for CI to pass
2020-10-26 18:15:17 -04:00
Matthew Kennedy 74f59ff67e fix MRE digital input mapping (#1910) 2020-10-25 19:26:04 -04: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
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
rusefillc 2a8a0f6af1 GDI Epic #1448 2020-10-22 01:48:28 -04:00
rusefi 4af1bad726 progress 2020-10-22 00:57:11 -04:00
Matthew Kennedy 8f6982dd54 disable i2c, other unused features (#1891)
* dead

* more
2020-10-20 22:24:32 -04:00
rusefi 79d267eba0 VAG radiator control 2020-10-19 23:25:23 -04:00
rusefi 1be1f66edf GDI Epic #1448 2020-10-17 20:17:53 -04:00
rusefillc aec48c294e GDI Epic #1448 2020-10-17 14:53:56 -04:00
rusefillc 54c3d0f15c HW CI has failed 11 times since Oct 2 #1849 2020-10-16 13:54:12 -04:00
rusefillc a37880eb97 GDI Epic #1448 2020-10-13 00:35:04 -04:00
rusefi b4208f585c QC control mode to crash if RPM = 0 and to mark successful 3 minute test with self-stimulation RPM increase #1871 2020-10-11 19:16:41 -04:00
rusefi 4743718663 QC control mode to crash if RPM = 0 and to mark successful 3 minute test with self-stimulation RPM increase #1871 2020-10-11 19:05:56 -04:00
rusefillc 25d02f6356 SD enable 2020-10-06 01:15:17 -04:00
rusefillc d5d5bbba9f tachPulsePerRev needs a safer default, MRE config needs a value 2020-10-06 00:56:49 -04:00
Matthew Kennedy ebc884e8d5 trigger decode cleanup and perf (#1853)
* trigger decode cleanup

* test config ptr patchup

* disable CDM by default
2020-10-04 19:29:26 -04:00
rusefillc c1023504e6 Re-applying #1841
Revert "HW CI has failed 11 times since Oct 2 #1849"

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

This reverts commit e02c86a7
2020-10-03 21:36:09 -04:00
Matthew Kennedy e02c86a7dc 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
Matthew Kennedy 8520a128bb show SD menu on proteus (#1837)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-09-30 19:18:37 -04:00
rusefi d09d2da420 Cypress artifact needs .hex file #1835 2020-09-29 18:50:51 -04:00
David Holdeman 37f439390e add hex to bundle (#1836) 2020-09-29 17:04:41 -04:00
Matthew Kennedy 3374db1658 Remove dead & useless config (#1834)
* remove dead config

* remove enum
2020-09-29 06:34:39 -04:00
David Holdeman 0f7b91861a 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
Matthew Kennedy 9632a784f3 add analog inputs to switches (#1829)
* add analog in to switches

* also clarify boost cut pressure

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-09-28 14:45:23 -04:00
andreika-git 3db4d3a56f Hellen says fix gen_config for Cypress (#1824)
* Hellen says merge #1772 hardware.cpp

* Hellen says merge #1772 adc.h

* Hellen says fix gen_config for Cypress

* Hellen says fix gen_config actions for Cypress

* Hellen says reset .h files

Co-authored-by: rusefi <rusefillc@gmail.com>
Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-09-27 09:56:44 -04:00
rusefi 15cb74bbf8 cypress into GHA #1819
code style match
2020-09-27 07:07:01 -04:00
rusefi 940086ee34 cypress into GHA #1819 2020-09-27 06:43:32 -04:00
rusefi 5d3ded340b cypress into GHA #1819 2020-09-27 06:27:50 -04:00
rusefi 1d99e908a1 cypress into GHA #1819 2020-09-27 06:13:58 -04:00
shadowm60 2d665e2c90 Launch control - experimental (#1816)
* Update tachometer.cpp

Initial implementation of E30 M3 Tach output solution #907, unit_test plus debugging next

* tacho unit tests

First successfull unit test for tachometer

* RAM adjustment so it would link

* refactoring tacho, broken!

* starting to make some progress...still fails after a few seconds

* Rework with SW PWM

* Update after code review

* unit_test update

* First working unit_test

* Update .gitignore

* Update engine_controller.cpp

* Update engine_controller.cpp

* Update tachometer.h

* Update test_tacho.cpp

* Switched UART DMA on

* Revert "Switched UART DMA on"

This reverts commit 4a23974c431e0e7fd760595d2161e74e6854897e.

* enable launch control

make use of already existent code + integration

* Delete compile_frankenso_all.sh

remove it since it is not part of the project

* Update main_trigger_callback.cpp

broke unit_Tests

Co-authored-by: rusefi <rusefi@users.noreply.github.com>
2020-09-22 16:25:27 -04:00
shadowm60 c85932727e 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
Matthew Kennedy a62089e590 proteus SD card defaults (#1796)
* proteus SD defaults

* disable serial console pins
2020-09-14 10:54:25 +03:00
rusefi b1ec0508f5 Merge remote-tracking branch 'origin/Hellen_fork_point' into master
# Conflicts:
#	firmware/config/boards/common_make.bat
#	firmware/controllers/algo/engine.cpp
#	firmware/controllers/system_fsio.txt
2020-09-11 03:59:06 -04:00
rusefi 8831da2e3b Hellen says merge #1772 fast ADC 2020-09-11 03:54:07 -04:00
David Holdeman e8e2cf2cfd DebounceButton A/C switch (#1782)
* change acSwitch name, add mode

* fix

* remove some adc stuff

* remove some adc stuff

* semicolon stupid

* left behind

* add readpinstate

* wrong var name

* add functions back

* fix name

* bool, not void, plus fix name

* move

* not sure what I broke

* try setMockValue

* namespace

* whoops missed one

* switch values because adc was set up for pullup

* try 5

* comment for now

* comment for now

* uncomment tests, add function to mock, add mock to efiReadPin

* fixes

* for F's sake

* if

* add defy

* pass params

* use ASSERT_TRUE/FALSE

* advance time

* remove ifdef from readPin

* try moving if

* move to separate func

* move extern

* move include

* try engine_test_helper

* am confuse

* move func to else

* include hal

* add efi prod check

* remove include

* try extern

* move include

* semicolon stupid

* move extern again

* include

* move mockPinStates

* size

* add if

* add comment

* clean on instantiation
2020-09-10 22:16:20 -04:00
rusefi 255f2e5fa3 Hellen says merge #1772 getting closer? 2020-09-10 21:12:25 -04:00
rusefi e69b2436b1 Hellen says merge #1772 getting closer? 2020-09-10 21:09:19 -04:00
Matthew Kennedy 7d7acc3e5f fix miata default (#1781) 2020-09-09 17:11:07 -04:00
Matthew Kennedy c2eb7c9f4a remove tach output pin (#1779)
* remove from cfg

* cfg

* rip out impl

* efi gpio
2020-09-09 16:52:23 -04:00
rusefi e3758d3790 microRusEFI used as Body Control Module BCM BCU 2020-09-07 17:59:59 -04:00
rusefi adbb3f07e7 microRusEFI used as Body Control Module BCM BCU 2020-09-07 16:25:00 -04:00
rusefi fdac041e7d Merge remote-tracking branch 'origin/Hellen_fork_point' into master
# Conflicts:
#	firmware/config/boards/kinetis/efifeatures.h
#	firmware/config/boards/prometheus/efifeatures.h
#	firmware/config/boards/skeleton/efifeatures.h
#	firmware/config/boards/subaru-ej20gn/efifeatures.h
#	firmware/config/stm32f4ems/efifeatures.h
#	firmware/config/stm32f7ems/efifeatures.h
2020-09-07 15:32:15 -04:00
rusefi df908db68e Hellen says merge #1772 efifeatures 2020-09-07 15:27:29 -04:00
rusefi b6b4e25551 Revert "Hellen says efifeatures"
This reverts commit 4e60dcdf
2020-09-07 12:24:50 -04:00
rusefi 4e60dcdf00 Hellen says efifeatures 2020-09-07 12:08:36 -04:00
rusefi a87dfb7f87 microRusEFI used as Body Control Module BCM BCU 2020-09-06 22:36:31 -04:00
rusefi bc2aa6601e microRusEFI used as Body Control Module BCM BCU 2020-09-06 20:21:01 -04:00
rusefi 66af0565d8 microRusEFI used as Body Control Module BCM BCU 2020-09-06 20:09:26 -04:00
rusefi f55fee38b4 microRusEFI used as Body Control Module BCM BCU 2020-09-06 19:43:54 -04:00
Matthew Kennedy 4802a47d23 reorder ADC channel index (#1763)
* change config

* correct logic

* clearing these no longer needed

* test expected this to be set
2020-09-06 18:25:26 -04:00
rusefi ce87837309 migrate VSS to universal event capture #1665
docs
2020-09-03 11:56:15 -04:00
Matthew Kennedy 96a9c7f4c4 Multiple knock sensors (#1745)
* fw

* cfg fields

* fix order

* ui for channel select

* clarify

* comments

* config
2020-09-02 07:19:02 -04:00
rusefi cdde5fe11d price of lazy progress 2020-08-31 20:56:46 -04:00
rusefi 581d769227 blinking more LEDs 2020-08-31 17:15:04 -04:00
rusefi d7a63575b2 blinking more LEDs 2020-08-31 14:26:34 -04:00
rusefi 8a1244b7d7 blinking more LEDs 2020-08-31 13:44:58 -04:00
rusefi 1a87b6aa71 blinking more LEDs 2020-08-31 13:27:56 -04:00
rusefi 12abd6a81e B6 2020-08-29 19:01:44 -04:00
rusefi 4322f78591 verboseVVTDecoding 2020-08-29 17:05:54 -04:00
rusefi 8d024f4579 BCM 2020-08-29 14:29:34 -04:00
rusefi acf8031330 B6 2020-08-29 10:06:28 -04:00
Matthew Kennedy 1b07647e72 Software knock detection (#1730)
* s

* science

* set pin mode

* turn stuff off so it fits

* filtering maybe

* filtering actually works

* generate filter parameters internally

* shorter window

* guard behind enable flag

* use checked in filter

* add biquad reset

* tracing

* const

* exec order

* do it from a thread

* smaller buffer, comment

* configure with header

* only for proteus

* oops

* unused

* not needed

* guards

* pin config

* don't need that include

* precook filter steady state

* define sample rate

* config enable switch
2020-08-28 21:13:50 -04:00
rusefi 7e4e773011 a bit of flexibility 2020-08-26 23:08:48 -04:00
rusefi 22f6063d9f VVT support for VAG trigger #883 2020-08-25 16:19:23 -04:00
rusefi 2e9da1387d v12 2020-08-23 15:09:23 -04:00
rusefi fdbdc6d495 docs 2020-08-21 14:59:24 -04:00
Matthew Kennedy 207aafe262 harmonize blocking factor (#1709)
* harmonize blocking factor

* static assert
2020-08-21 14:12:28 -04:00
rusefi 7fef82742f v12 progress 2020-08-21 14:09:51 -04:00
rusefi 831d99ccee v12 2020-08-19 22:03:27 -04:00
rusefi de5c49d04f v12 2020-08-19 01:09:39 -04:00
rusefi 6439dce79f v12 2020-08-19 00:35:09 -04:00
rusefi d0ee2c78e3 progress 2020-08-17 19:51:50 -04:00
Andrei 178c55e62b vss_exti untested 2020-08-13 18:27:31 +03:00
rusefi 494aff334f 1.6 VAF tune 2020-08-11 22:17:53 -04:00
rusefi ae606a6380 trigger and VSS hw integrated testing #1668 2020-08-08 12:03:24 -04:00
rusefi 64a9440bc0 trigger and VSS hw integrated testing #1668 2020-08-08 11:45:02 -04:00
kon e84f3b13bd Merge branch 'master' of https://github.com/rusefi/rusefi into second_can 2020-08-04 13:22:07 -07:00
Matthew Kennedy 1a14c3cde7 no bins 2020-08-03 12:21:49 -07:00
Matthew Kennedy cd547ceb00 no more setFuelMap 2020-08-03 12:14:11 -07:00
kon b093813594 Merge branch 'master' of https://github.com/rusefi/rusefi into second_can 2020-08-02 19:48:36 -07:00
Matthew Kennedy 519427cce2 defaults 2020-08-02 16:21:53 -07:00
kon e8746d6c5d Merge branch 'master' of https://github.com/rusefi/rusefi into second_can 2020-08-02 09:32:41 -07:00
rusefi 6930dc813f NA6 progress 2020-08-02 12:08:35 -04:00
rusefi 042f86863f NA6 progress 2020-08-02 11:09:18 -04:00
rusefi 5a2a47e4f6 NA6 progress 2020-08-02 10:18:14 -04:00
kon da262d9076 added secondary can config 2020-08-01 20:58:14 -07:00
rusefi b20d7f7619 dropping legacy stuff 2020-08-01 19:17:58 -04:00
rusefillc cd9844132d Merge pull request #1632 from mck1117/remove-plain-maf
goodbye, plain maf
2020-08-01 09:16:38 -04:00
rusefi fae26e927b NA6 progress 2020-07-31 22:43:32 -04:00
Matthew Kennedy 90738127ea remove 2020-07-31 15:03:09 -07:00
Matthew Kennedy 7009c82993 Merge remote-tracking branch 'upstream/master' into remove-plain-maf 2020-07-31 14:56:29 -07:00
rusefi 611beeb32d NA6 progress 2020-07-31 14:20:50 -04:00
rusefi 965e99df0d NA6 progress 2020-07-31 14:06:30 -04:00
Matthew Kennedy 01988e607e guard 2020-07-30 21:39:12 -07:00
rusefi 56a0e532e8 NA6 progress 2020-07-30 00:04:18 -04:00
rusefi 40b392ad97 progress 2020-07-29 23:27:42 -04:00
rusefi 0c6c92c5bf reducing code duplication? 2020-07-29 23:01:55 -04:00
rusefi 6b2c1d4d59 NA6 progress 2020-07-29 22:48:41 -04:00
rusefi 98dbe34649 NA6 progress 2020-07-29 22:24:58 -04:00
rusefi a419e6a899 NA6 progress 2020-07-29 22:17:34 -04:00
rusefi 30ff2cf5d7 NA6 progress 2020-07-29 22:16:31 -04:00
rusefi a59f7736ec NA6 progress 2020-07-29 21:53:59 -04:00
rusefi 203b3ef1b2 NA6 progress 2020-07-29 21:04:17 -04:00
rusefi 6ebaa3dbf1 NA6 progress 2020-07-29 19:53:11 -04:00
rusefi 278cda992c NA6 progress 2020-07-29 14:53:36 -04:00
Matthew Kennedy 035c0e7281 configs 2020-07-29 01:35:39 -07:00
Matthew Kennedy ea487327e1 Merge remote-tracking branch 'upstream/master' into remove-plain-maf 2020-07-28 20:25:16 -07:00
rusefi eaff89eacb QC config 2020-07-27 22:05:40 -04:00
rusefi ffa9de7040 auxTempSensor text output 2020-07-27 20:23:57 -04:00
Matthew Kennedy b1747ea48b goodbye plain maf 2020-07-23 02:46:45 -07:00
rusefi 7dbc547723 https://github.com/rusefi/hw_microRusEfi/issues/180 2020-07-14 19:59:55 -04:00
rusefi 6d360b8736 https://github.com/rusefi/hw_microRusEfi/issues/180 2020-07-14 19:43:44 -04:00
rusefi cf745be1af EFI_IDLE_INCREMENTAL_PID_CIC should be a runtime parameter fix #806 2020-07-12 21:53:55 -04:00
rusefi 93d015598a EFI_IDLE_INCREMENTAL_PID_CIC should be a runtime parameter #806 2020-07-12 21:35:01 -04:00
Matthew Kennedy 1a0cad431b trace global lock/unlock (#1582)
* trace global lock/unlock

* bootloader stub

* add to java

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-07-10 23:27:27 -04:00
rusefi d2997f3bf8 NA tune 2020-07-09 15:57:54 -04:00
David Holdeman a2078e9cfe Switch to Bash (#1585)
* switch firmware to bash

* switch unit_testts to bash

* switch jenkins to bash
2020-07-09 10:27:20 -04:00
David Holdeman d4d5a699f0 Use github actions to build and upload bundles (#1583)
* add env var to skip upload

* remove checking from compile.bat

* working on push.yaml

* finish sorting

* progress

* rename push to builds

* rename push to builds

* Add skip upload env var

* fix pull_request name

* fixed typo and changed name

* fixed indentation and runs-on

* try different env var setup

* add nucleos and switch to underscore

* add quotes

* remove boards that were commented

* remove boards that were commented

* fix project board name

* fixed variable name

* add ini-file and console-settings

* try installing gcc-multilib first

* Install g++-multilib as well

* remove unnecessary export

* fixed exit numbers

* change to different env setup

* add simulator and console compilation to board bundles

* changed OS and added linux simulator build

* add checkout and missing colon

* add gcc-multilib installes

* Install mingw

* fixed install

* remove mingw from linux sim and call compile directly

* change directory

* moved envs to command

* debug ls

* debug ls

* set ftp vars

* add makefile debug info

* removed batchecks

* redirect stdout to easier see orrs

* change name

* remove redirect, add file inpection

* Add conditional project name

* Try software upgrade

* missing char

* update ine files

* try quotes

* add escapes

* add quotes

* add escapes and quotes

* remove quotes and escapes

* remove software upgrade

* ignore test 2

* update apt

* like this then

* forgot import

* fix case

* remove RUSEFI_SKIP_UPLOAD and check RUSEFI_FTP_SERVER instead

* break workflow back apart

* upload simulator artifact

* fixed operator

* update apt

* change paths

* Update build-firmware.yaml

* move update bundle to artifacts

* fix var name

* Install ncftp

* set env vars conditionally

* remove check so zips are created

* try things the github way and copy to primary

* re-enable test

* missing space
2020-07-08 11:10:24 -04:00
rusefi 6ac45039d4 using bundle names in signature 2020-07-06 01:20:39 -04:00
rusefi 989082fa1e SHORT_BOARDNAME becomes BUNDLE_NAME 2020-07-06 00:29:30 -04:00
rusefi 6b4613a3a8 making scripts a bit more consistent & docs 2020-07-06 00:19:25 -04:00
andreika-git 88c24479e0 Fix bundle signatures (#1569)
Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-07-04 10:46:27 -04:00
rusefi e6a15f1325 MRE 0.5.1 2020-07-04 00:02:44 -04:00
David Holdeman 8a7220d989 Convert jenkins build_extra_bundles scripts to sh (#1554)
* Add checkout

* remove empty with statement

* Actually we do need push depth

* convert build_working_folder

* convert prepare_bundle

* fixed extension

* fixed closing bracket

* fixed comparison and assignments

* no comment

* convert compile_and_upload and clean

* convert build_simulator

* Finish converting build_working_folder

* convert build_java_console

* Add hashbangs

* remove findcyg instruction

* changed paths

* remove call

* add path

* fixed script names

* add prams

* fix cd

* convert clean_env_variables

* convert common_make.sh

* Added linux hex2dfu binary

* add file extension to linux hex2dfu

* add file extension to linux hex2dfu

* remove spurious paren

* fixed board name

* convert compile-frankenso-na6

* convert compile-frankenso-pal

* add hashbang

* convert compile-kinetis

* convert compile-mre-f4

* convert compile-mre-f4-hardware-QC-special-build

* convert compile-mre-f4-slave

* convert compile-mre-f7

* convert compile-mre-f7-test

* switch to underscores

* converting boards to sh

* convert prometheus

* convert proteus

* fixed path

* switch to underscores

* chmod and add extension

* add quotes

* Add check for Windows

* Add chmod

* fix script name

* fix error checking

* quote vars

* remove checking from batch shims

* fix typo

* change error checking to support nix style error codes

* switch to 1 retval

* cd back to firmware

* Add escapes

* change from cd to rel path

* add p flags to mkdir

Co-authored-by: David Holdeman <David Holdeman>
2020-07-01 14:09:01 -04:00
rusefi b523aa648e PB8 and PC12 not available for FSIO usage (#1538) 2020-06-26 09:05:21 -04:00
rusefi 983ce38d41 UART DMA for "primary" connector #1528 2020-06-22 01:44:19 -04:00
rusefi b0e45d1974 UART DMA for "primary" connector #1528 2020-06-22 00:46:17 -04:00
rusefi 57b0d7f7ef UART DMA for "primary" connector #1528 2020-06-21 23:22:45 -04:00
rusefi c107aa6d1b UART DMA for "primary" connector #1528 2020-06-21 23:12:08 -04:00
rusefi fdbdf01eae UART DMA for "primary" connector #1528 2020-06-21 22:26:11 -04:00
rusefi 47433a4003 UART DMA for "primary" connector #1528 2020-06-21 22:19:38 -04:00
rusefi c6924d23fa UART DMA for "primary" connector #1528 2020-06-21 22:14:01 -04:00
rusefi c6aaa8f6a7 UART DMA for "primary" connector #1528 2020-06-21 21:50:41 -04:00
rusefi 676aecd581 UART DMA for "primary" connector #1528 2020-06-21 21:47:51 -04:00
rusefi d371be19fe refactoring connectivity 2020-06-21 20:47:46 -04:00
rusefi af82d63112 refactoring connectivity 2020-06-21 16:37:33 -04:00
rusefi 7f71383de6 un-hiding full pinout 2020-06-17 12:54:56 -04:00
rusefi 7c3d153b2c making debugTriggerSync more visible to users & removing from VVT defaults 2020-06-15 16:47:06 -04:00
Matthew Kennedy d13bd0b77c Hardware pwm (#1283)
* hard pwm

* fix, comments

* PC6-9 and PD12-15

* PB6-9

* dynamic frequency

* f7 mcuconf

* format

* relocate to common, support variable frequency

* error handling

* oops

* fix test build

* noop kinetis

* better guards

* guard for bl

* guards don't work if they have typos

* more mapping

* oops

* don't use for slow pwm

* enable pwm

* guard properly

* save a little memory

* use less mem

* correct timers

* all your ram are belong to us

* update limit & comment

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-28 16:02:41 -04:00
rusefi 56c9d3ac40 proteus v12 progress 2020-05-24 13:27:14 -04:00
rusefi 68fea52129 safer name for QC build 2020-05-23 17:18:26 -04:00
rusefi bb90c1be23 u9 u10 2020-05-23 10:50:32 -04:00
rusefi e8ff6a6a6d dreams 2020-05-22 17:52:48 -04:00
rusefi e063aa492a build and board info into critical error message 2020-05-22 16:45:13 -04:00
rusefi 1c17011ab0 oooops :( 2020-05-22 13:24:04 -04:00
rusefi 8b00823a0f HW test progress 2020-05-21 21:45:01 -04:00
rusefi b6e784e310 MRE pre-sets 2020-05-21 21:00:34 -04:00
rusefi 4015c600e9 MRE pre-sets 2020-05-21 20:44:14 -04:00
rusefi 871cee3092 test fixture progress 2020-05-21 18:36:32 -04:00
rusefi c42bae8f61 exposing some GPIO 2020-05-20 23:53:25 -04:00
rusefi 60835c4269 HW_CHECK_MODE 2020-05-20 22:15:47 -04:00
Matthew Kennedy 61b8bfb7e3 free up timers for hardware PWM (#1459)
* free up timers

* put that back
2020-05-20 19:14:42 -04:00
Matthew Kennedy 04fce9b367 oops (#1441) 2020-05-16 20:38:38 -04:00
rusefi 7e33ad575d Revert "Minor fixes (#1442)"
This reverts commit 2e9cff85
2020-05-16 19:28:49 -04:00
dron0gus 2e9cff8596 Minor fixes (#1442)
* exti trigger: mark pins used, handle errors

* MC33810 add to smart gpios
2020-05-16 19:15:49 -04:00
Matthew Kennedy ea127f9cda don't register ID pin (#1438) 2020-05-16 00:33:47 -04:00
rusefi 11b66a6713 toyota 2jz progress 2020-05-15 16:35:18 -04:00
rusefi eab3f8f2b7 nicer handling of main relay in MRE.ini file 2020-05-15 12:05:09 -04:00
rusefi 929b21d5a1 maybe this would just work?!... 2020-05-15 02:31:02 -04:00
rusefi abc79f831b Revert "moving SD card to SPI1 thank you Matt!"
This reverts commit be5ec2c0
2020-05-15 00:30:49 -04:00
rusefi be5ec2c03f moving SD card to SPI1
thank you Matt!
2020-05-15 00:29:18 -04:00
rusefi 084175ce64 one step sideways 2020-05-14 19:10:01 -04:00
rusefi c66a55e5e3 now with EFI_CONSOLE_RX_BRAIN_PIN 2020-05-14 17:20:27 -04:00
rusefi 6683c96638 maybe EFI_CONSOLE_TX_BRAIN_PIN 2020-05-14 00:02:10 -04:00
rusefi 92227cb4cb SPI3 2020-05-13 23:29:52 -04:00
rusefi c47a0c3125 SD card for MRE 2020-05-13 23:26:28 -04:00
rusefi 36586c0243 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	firmware/controllers/engine_controller.cpp
2020-05-13 19:31:42 -04:00
rusefi 4adac49050 docs & helping master 2020-05-13 19:27:11 -04:00
rusefi d74f1c0951 lovely, yet another minor confusion 2020-05-13 01:16:05 -04:00
rusefi 28d362d904 NB2 MAF 2020-05-12 23:37:30 -04:00
rusefi bdb93db70d https://github.com/rusefi/hw_microRusEfi/issues/157 2020-05-12 23:37:12 -04:00
Matthew Kennedy bd38359ceb s (#1424) 2020-05-11 23:23:04 -04:00
rusefi 2ce1d1c016 helping master build 2020-05-11 19:59:35 -04:00
rusefi 9c3bc93471 RED FATAL/CRITICAL LED is a bit dim when it should be OFF
fix https://github.com/rusefi/hw_microRusEfi/issues/157
2020-05-11 18:35:28 -04:00
rusefi a7a6bb0d81 more dead code 2020-05-11 18:24:29 -04:00
rusefi a88b41a8d0 refactoring related to RED FATAL/CRITICAL LED is a bit dim when it should be OFF
#157
2020-05-11 18:22:51 -04:00
kon ae44c0fce7 Aux serial (#1422)
* aux serial updates from last PR

* trying to guess

* wow that's old! also not working maybe?

* hiding diag code which was messing with GP2/GP3 i.e. TLE8888_PIN_22 TLE8888_PIN_23

* date

* Mc33 undervolt (#1421)

* mc33 flash check

* DI sanity checks for setting HV config

* mc33 under voltage check

* mc33 under voltage check

Co-authored-by: Christopher W. Anderson <gitstuff@pswitch.com>

* fixed {}

Co-authored-by: rusefi <rusefillc@gmail.com>
Co-authored-by: NOx-z <50815960+NOx-z@users.noreply.github.com>
Co-authored-by: Christopher W. Anderson <gitstuff@pswitch.com>
Co-authored-by: kon <dev@triggerdevel>
2020-05-11 12:17:42 -04:00
rusefi 2db29c7824 34-2 3 cam Toyota wheel progress 2020-05-10 18:03:11 -04:00
Matthew Kennedy 9792fc01fc updates for proteus v0.3 (#1418)
* updates for v0.3

* board config too

* oops
2020-05-10 09:19:01 -04:00
rusefi 14b63774fb that's embarrassing 2020-05-10 02:36:01 -04:00
rusefi b54a4116b8 34-2 3 cam Toyota wheel progress 2020-05-10 02:12:47 -04:00
rusefi db8d11739d removing some unneeded flexibility 2020-05-10 01:34:43 -04:00
rusefi 2f431d7079 34-2 3 cam Toyota wheel progress 2020-05-10 00:42:33 -04:00
rusefi 9c01614a46 34-2 3 cam Toyota wheel progress 2020-05-09 23:47:51 -04:00
dron0gus 8e9f283953 board: subaru-ej20g: remove (#1414)
Noone uses this board anymore
2020-05-09 18:22:17 -04:00
rusefi edc5dbbc58 default engine make/code 2020-05-08 17:31:03 -04:00
Matthew Kennedy 5c84d95360 proteus -> exti (#1378)
* proteus -> exti

* do frankenso pal the same way

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-06 18:52:15 -04:00
rusefi 2951a161bf it's a mess but helps Proteus F7
F4 Proteus will will handle separately
2020-05-06 18:14:23 -04:00
Matthew Kennedy 10903c4659 remove "plain MAP" mode (#1398)
* consumers

* enums, input, config

* java

* default config cleanup
2020-05-05 15:04:55 -04:00
rusefi cc1ca11e40 reducing confusion? 2020-05-04 20:52:32 -04:00
rusefi 6268b8d039 reducing confusion? 2020-05-04 19:26:13 -04:00
rusefi 101aabd8a4 docs 2020-05-03 15:54:17 -04:00
rusefi 460badec94 MRE adapter 2020-05-03 15:21:32 -04:00
rusefi a1b6807e66 unifying Frankenso and MRE defaults 2020-05-03 12:11:47 -04:00
rusefi 5d6ec1d68b refactoring: using brain_pin like the rest of the code 2020-05-02 23:47:10 -04:00
rusefi 433b4811ca what could possibly go wrong 2020-05-02 22:34:31 -04:00
rusefi b3cfac397b oh what did I do 2020-05-02 22:27:20 -04:00
rusefi 7689cfc2dd Attempting cj125 2020-05-01 17:52:25 -04:00
rusefi 93ee6c36e3 https://github.com/rusefi/rusefi_documentation/issues/37 2020-04-29 18:41:40 -04:00
Matthew Kennedy a9bf0f8358 Perf Trace Improvements (#1383)
* add tid field to thread

* change perf trace format

* trace consumers

* Update java parsing

* guard for test + kinetis

* stubs

* ram

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-29 10:53:35 -04:00
Matthew Kennedy 7e067eb0b5 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 1d1ea3bb50 move hooks in to common chconf.h (#1376)
* move hooks in to common

* but not for kinetis

* don't use c style void arg

* kinetis needed more, not less

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-27 16:07:05 -04:00
Matthew Kennedy 499d445fd2 reclaim (#1377)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-27 14:36:26 -04:00
rusefi 498374e7d3 https://rusefi.com/forum/viewtopic.php?p=36268#p36268 2020-04-26 23:03:50 -04:00
rusefi edd4e62b46 better defaults 2020-04-26 19:16:54 -04:00
Matthew Kennedy 6d0efc432e allow overriding configuration (#1341)
* config overrides

* proteus too

* comment

* remove wno-error

* comment
2020-04-26 00:07:59 -04:00
dron0gus d5a76b5dda Update chibios (#1364)
* Update ChibiOS

* Fix coexistance of ChibiOS and our flash drivers

* Add 'int' = internal prefix for all on-chip flash functions

This avoid conflict with ChibiOS functions available after
enabling HAL_USE_EFL

* Exclude ChibiOS flash driver from bootloader

* Makefile magic?

* Kinetis: fix build after ChibiOS update and switching to SMART_BUILD

* Bootloader now use SMART_BUILD too
2020-04-25 16:32:32 -04:00
rusefi b6780ab9d0 wow maybe build time magic?! by DronoGus 2020-04-25 12:07:57 -04:00
Matthew Kennedy a005daa8cb switch ADC to gpt (#1343)
* switch to gpt

* halconf

* fix kinetis

* fix kinetis

* fix guards

* comment cleanup
2020-04-23 22:50:18 -04:00
Matthew Kennedy 39c84378eb don't store self stim in config (#1356)
* kill

* add bench test

* fix
2020-04-23 22:38:14 -04:00
rusefi b607400984 TLE8888 mode flexibility 2020-04-23 16:57:37 -04:00
rusefi 313b2685eb hardware continues integration needs a high RPM high tooth count test case
#1351
2020-04-23 01:26:30 -04:00
rusefi 1d0e289b74 i just want to build 2020-04-20 09:10:18 -04:00
rusefi 510549332e Better handling in case of ETB idle without ETB #1332 2020-04-20 00:23:32 -04:00
Matthew Kennedy df6f846052 Simplify F4 board.h (#1310)
* fix

* simplify

* unneeded

* unused, change to pullup

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-18 11:41:53 -04:00
Matthew Kennedy 0d64527cb6 fix (#1309)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-04-17 18:27:20 -04:00
rusefi 44a5840bcf dreaming about 63 volts 2020-04-15 21:28:44 -04:00
rusefi d5f3147c00 test pins are needed 2020-04-15 16:20:18 -04:00
rusefi d788348d7c mc33 fix 2020-04-14 19:36:25 -04:00
rusefi ae8936b93b MC restart 2020-04-14 19:23:53 -04:00
rusefi 59a007d21a docs 2020-04-14 08:34:51 -04:00
rusefi b02b5f2202 Merge branch 'master' of https://github.com/rusefi/rusefi 2020-04-13 19:01:34 -04:00
rusefi f6986e604f MC flag0 2020-04-13 19:01:22 -04:00
rusEfi a7a7c4bec9 MRE docs 2020-04-13 14:30:17 -04:00
rusefi 0fc66f1598 progress 2020-04-10 20:31:58 -04:00
Matthew Kennedy 1a59950240 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 35f08f3958 progress 2020-04-10 13:32:06 -04:00
rusefi cb2b699db6 DBG_TRIGGER_SYNC merged into DBG_TRIGGER_COUNTERS 2020-04-10 13:19:54 -04:00
rusEfi f4c72b3895 docs 2020-04-08 23:27:26 -04:00
rusefi c98cdc9c0a cj125 progress 2020-04-08 23:14:21 -04:00
rusEfi 2c423052c4 docs 2020-04-08 20:37:46 -04:00
rusefi 6051c4dbff v12 2020-04-06 17:24:20 -04:00
rusefi 3888ffc007 smart gpio clean-up 2020-04-06 14:28:08 -04:00
rusefi c1ab5ca585 smart gpio clean-up 2020-04-06 14:13:29 -04:00
rusefi a1b554638f clean-up 2020-04-06 12:58:04 -04:00
rusefi 5993a6a7f0 killing nbVvtIndex 2020-04-05 11:43:45 -04:00
rusefi 19a7a7adf6 v12 2020-04-03 17:44:55 -04:00