Commit Graph

710 Commits

Author SHA1 Message Date
Matthew Kennedy eb9cc1a08e
multiple mass storage (#2535)
* driver

* plumbing

* guard adjust

* read correct lun

* de-template

* rearrange

* guard

* guard

* memory

* headers

* memory

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-10 08:35:41 -04:00
Matthew Kennedy 523bef2eb6
fix (#2511) 2021-03-30 07:28:22 -04:00
Matthew Kennedy f0cf4f38ff
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 4e3e95db2d
replace print/printMsg with scheduleMsg (#2497)
* start cleaning

* disabled feature means don't print that it's disabled

* cli

* usages

* printMsg -> scheduleMsg

* this is alllll dead now

* no crlf please

* all hope is lost if you manage to hit this line

* tests

* tests

* ok we did actually need that part

* sim

* d

* kinetis

* it did ifdef, not if

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-26 17:23:26 -04:00
Matthew Kennedy 0f0d8f6339
Init order h7 (#2495)
* init order

* s
2021-03-25 21:12:19 -04:00
Matthew Kennedy 6491c83f73
read configuration from flash exactly once (#2481)
* early hw init

* s

* read configuration exactly once

* cleanup

* housekeeping

* test friendly

* ugh bad merge

* that is a noop

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-25 18:16:26 -04:00
Matthew Kennedy 6f05bbc332
move some initialization steps earlier (#2480)
* early hw init

* s

* Revert "s"

This reverts commit 10d3039168.

* bor

* I can't type

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-25 16:22:03 -04:00
Matthew Kennedy d7698f6703
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
Matthew Kennedy be70524ced
harden against various no-boot scenarios (#2468)
* zero length trigger

* validate config

* validate cylinder count

* wrong type on cylinder count

* invalid comment

* invalid SPI
2021-03-17 09:24:13 -04:00
Andrey G d9521d549e
Enable trigger stimulation after HW timer initialized (#2466)
To avoid 'CRITICAL error: hwTimer not alive' error
2021-03-16 17:31:30 -04:00
Matthew Kennedy e0763c6994
stop trigger emulator PWM when disabled (#2443)
* simplify trig emulator

* spelling is hard

* fix various builds

* spelling again

* add command/button for external stimulation

* enable hw stim for HW-in-loop test

* s

* I does spelling good

* clear flag when disabled

* generate enough for console build

* don't disable that

* this test needs external stimulation enabled

* import

* ui improvements

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-11 08:38:52 -05:00
Matthew Kennedy 06e32d937a
avoid various "no connect" scenarios (#2432)
* init mmc and USB earlier

* connect USB faster
2021-03-07 20:21:42 -05:00
rusefillc 731e0bae73 todo 2021-03-02 22:23:17 -05:00
Matthew Kennedy 39884f8934
use DECLARE_ENGINE_PTR for Engine class (#2365)
* engine cleanup

* do the cleanup

* one last spot

* expand_engine noop for firmware

* simulator
2021-02-16 16:58:54 -05:00
rusefillc 35a0b12edc IGNORE_FLASH_CONFIGURATION 2021-01-28 19:40:51 -05:00
rusefillc 99dd0b9450 IGNORE_FLASH_CONFIGURATION 2021-01-28 18:03:45 -05:00
rusefillc f28f1e0f90 fine-grained check modes 2020-12-27 17:41:28 -05:00
rusefillc a47129693a trigger and start button pins not displayed by "pins" command #2084
progress but not complete fix yet
2020-12-16 22:00:42 -05:00
Matthew Kennedy f3b7a1d9da
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 fc5f47a653 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 94a6399e56 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
rusefi 1657e499ce better QC procedure 2020-09-19 04:39:32 -04:00
David Holdeman b1a69ff923
some documentation improvements (#1787) 2020-09-11 20:20:37 -04:00
rusefi fc5dd7d0c3 a few unneeded properties 2020-06-13 22:46:10 -04:00
rusefi 416855c2f1 HW_CHECK_MODE 2020-05-20 22:15:47 -04:00
rusefi 62c89a39da class constructors are a great way to have simple initialization sequence 2020-05-03 11:49:06 -04:00
rusefi 11a02b6395 class constructors are a great way to have simple initialization sequence 2020-05-03 10:58:52 -04:00
Matthew Kennedy 8fd9842310
cleanup extern mess (#1237)
* cleanup

* move outside define
2020-03-29 19:06:03 -04:00
rusefi bb217b01dd happy new year unification 2020-01-13 21:57:43 -05:00
rusefi cb9fc19f92 that's not a worth a file 2019-12-24 00:03:53 -05:00
rusefi af4f20551b getting rid of boardConfiguration / binary compatible change 2019-12-11 17:48:55 -05:00
rusEfi 6c9d684dfd MRE etb 2019-08-17 17:33:44 -04:00
rusefi 36a8cf8ad4 CI instability: FATAL error: warn stream not initialized for 6039
also some refactoring
fix #798
2019-08-04 13:48:10 -04:00
rusEfi d6daeaa77f DFU command & refactoring 2019-08-03 19:58:38 -04:00
rusefi a3667eda8b dead code 2019-07-29 21:44:33 -04:00
rusefi b81c60cf3e Refactoring: OS access should be explicit #867 2019-07-03 21:48:04 -04:00
rusEfi f485ccc000 reducing code duplication & reboot to rusEfi console 2019-06-28 23:33:48 -04:00
rusefi edb4e37505 docs 2019-05-02 17:52:48 -04:00
andreika-git c9c6022946 A tiny fix of EFI_ACTIVE_CONFIGURATION_IN_FLASH (#761) 2019-04-15 13:36:25 -04:00
rusefi d8281626df defined(__DOXYGEN__) ? fix #748 2019-04-12 22:10:57 -04:00
rusefi bd2b992918 unifying_file_naming 2019-03-29 09:11:13 -04:00
rusefi 46bdbf82d1 refactoring: reducing code duplication 2019-02-23 12:33:49 -05:00
rusefi 9325cd6d23 better (?) variable names 2019-02-10 22:47:49 -05:00
rusefi da4fb3a19f better conditional compilation 2019-01-31 17:55:23 -05:00
rusefi d9c8c1fc3e #631 TIME_MS2I mostly 2019-01-28 20:00:17 -05:00
rusefi 533fdf31ba refactoring: more logical initialization sequence 2019-01-11 00:08:26 -05:00
rusefi b4d9de3312 refactoring: better method name 2019-01-11 00:03:42 -05:00
rusefi cbd2d69731 The Big Refactoring of 2019: DECLARE_ENGINE_PARAMETER_SUFFIX consistency and simplification #657 2019-01-09 22:57:33 -05:00
rusefi 0c6f361181 refacoting: making code more consistent 2019-01-05 00:57:09 -05:00
rusefi a354371bb5 probably better place for initial initialization 2019-01-05 00:46:11 -05:00
rusefi 3b87b725d1 refactoring 2018-09-16 22:25:17 -04:00
rusefi 9b1af6ad6d error codes 2018-09-10 22:10:55 -04:00
rusefi 959a91ae4c unique error codes #598 2018-07-25 23:03:04 -04:00
rusefi a56fd71ecd docs 2018-04-08 11:35:24 -04:00
rusefi b55dda9658 #586 undoing bootloader damage 2018-03-25 09:18:40 -04:00
rusefi 645ea95739 version into simulator output 2018-03-24 21:13:08 -04:00
rusefi e8def93d2e date 2018-03-22 08:13:53 -04:00
rusefi c446e4c666 #569 2018-03-17 21:24:04 -04:00
rusefi c049eea877 fix #570 2018-03-01 06:01:15 -05:00
rusefi c3ef3d09cc progress #568 2018-02-10 14:02:48 +03:00
rusefi d3a0296858 hopefully #568 fix 2018-02-07 08:12:34 +03:00
rusefi 9823e83a3d unused parameter 2018-02-06 01:44:10 +03:00
rusefi 5385a040fd refactoring 2018-02-03 20:43:31 -05:00
rusefi 436f7aa965 reducing coupling between trigger emulation and FSIO 2018-02-03 11:42:50 -05:00
rusefi e767eccc99 extracting macro 2018-02-03 10:56:29 -05:00
rusefi 1eea49aaec extracting macro 2018-02-03 10:48:35 -05:00
rusefi 3d3824a43e poke 2018-02-02 10:29:32 -05:00
rusefi 9a7dd55333 same action twice 2018-01-30 14:56:24 -05:00
rusefi f7cda7449b CAN debug field #26 2018-01-29 19:41:39 -05:00
rusefi eb60062d51 fixing build? 2018-01-28 14:49:06 -05:00
rusefi 049848c577 #557 2018-01-28 14:03:58 -05:00
rusefi ecea4f4be0 #553 let's try 768 2018-01-25 09:46:31 -05:00
rusEfi 3a275b4388 temp funny code for puff #553 2018-01-24 21:34:05 -05:00
rusefi 3e81e1e672 fresh version of USB CFG 2018-01-23 22:52:29 -05:00
rusefi 5ef8786e20 close #463 2018-01-23 21:59:10 -05:00
rusefi 80df4a5a01 #65 2018-01-23 13:18:59 -05:00
rusefi 3e48813e73 #540 2018-01-23 08:34:18 -05:00
rusefi 371decae53 fix #539 reducing idle stepper reaction time 2018-01-21 12:19:36 -05:00
rusefi 1d31067d19 happy new year 2018-01-20 20:55:31 -05:00
rusEfi ff86ab904e poke 2018-01-20 12:11:46 -05:00
rusEfi 110f76d85b avoiding AFR warning 2018-01-16 12:58:35 -05:00
rusefi d05432df12 fix #532 2018-01-07 12:11:49 -05:00
rusefi 3dc9ab247a get global_fuel_correction 2018-01-04 18:45:25 -05:00
rusEfi fdba6cdee8 new command style 2018-01-03 15:38:08 -05:00
rusEfi 3b8ab4f6a7 happy new year nissan! 2018-01-01 22:24:33 -05:00
rusefi 6a853e5df9 date 2017-12-27 18:39:53 -05:00
rusefi 812efe9b93 date 2017-12-23 12:25:22 -05:00
rusefi a57ce8c522 debug field STATUS 2017-12-17 13:14:39 -05:00
rusefi 26cef04e17 more FSIO logging 2017-12-17 00:17:55 -05:00
rusefi 373da8607f #490 configuration validation 2017-12-08 20:04:58 -05:00
rusefi f51810bec9 #490 FSIO curves to console table editor 2017-12-03 16:11:39 -05:00
rusefi 7886619248 #490 fixing offset defect 2017-12-02 21:16:42 -05:00
rusefi 73184cd830 fix #502 2017-12-01 23:25:30 -05:00
rusefi 2974ff66e2 fix #490 2017-11-27 21:49:58 -05:00
rusefi 44a66037a1 fixing build? 2017-11-27 00:05:30 -05:00
rusefi 7cdea8932e fix #500 2017-11-26 19:35:08 -05:00
rusefi 117d9f27ab fix #497 2017-11-23 17:43:42 -05:00
rusefi 94078fe7b6 better enum name 2017-11-19 17:54:00 -05:00
rusefi cdf94718fd #495 2017-11-19 14:26:21 -05:00
rusefi f11c3af882 #495 2017-11-19 14:22:14 -05:00