Matthew Kennedy
a70f113b77
finish it off: remove scheduleMsg ( #2575 )
...
* finish it off
* one more logger ptr
* fwd decl
* Revert "one more logger ptr"
This reverts commit a21fb0087ddc748978d716db2710800cf26e437b.
* unused
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-21 15:33:40 -04:00
Matthew Kennedy
c26987b96b
Destroy all shared logger ( #2574 )
...
* most of shared logger
* a few more
* one more
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-21 14:28:48 -04:00
Matthew Kennedy
ad71016862
rip the bandaid: find-replace most of scheduleMsg ( #2572 )
...
* biiiig find replace
* more trivial find replace
* pwm
* almost all of them
* few more
* gpio
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-21 12:53:13 -04:00
Matthew Kennedy
5145ee4b62
logging cleanup 2: sensors, pid, etb, etc ( #2567 )
...
* ts logger
* sensors
* wideband too
* missed one
* init
* motors, pid, etc
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-18 20:02:32 -04:00
Andrey G
fa840a7593
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
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
Andrey G
3d138958ce
Hip9011 ( #2512 )
...
* hip9011: coexistance with other spi devices
* hip9011: rework so SPI transfer is invoked from thread
also use polling spi exchange to avoid cache problems
* hip9011: move calculations from ADC callback to thread
* hip9011: big cleanup
* hip9011: simplify spi communication
* No need to set knockBandCustom if it is not custom
HIP9011 calculates knockBand from cylinderBore same way
* hip9011: make unit test happy
* hip9011: fix unit test
* hip9011: remove duplicated initialization, reorder
* hip9011: just renames and data type adjustments
* hip9011: rename BAND() to HIP9011_BAND()
* hip9011: move some code from lookup.cpp to logic.cpp
* hip9011: move initEngineNoiseTable to engine_configuration.cpp
* hip9011: move lookup tables to hip9011_logic.c
* hip9011: remove empty files
* hip9011: additional checks
2021-03-30 10:56:25 -04:00
Andrey G
bbe3291ccd
hip9011: get callback from spark on each cylinder ( #2499 )
...
* hip9011: get callback from spark on each cylinder
* hip9011: cleanup unused
2021-03-27 14:12:49 -04:00
Andrey G
89b631a794
Hip9011 and cleanups ( #2477 )
...
* hip9011: move hipCs out of EnginePins to hip9011 driver
* hip9011: cleanup debug output, save few RAM bytes
* Supress few signed vs unsigned warnings
2021-03-20 08:40:36 -04:00
Matthew Kennedy
3072d54717
dead code, warnings ( #2461 )
2021-03-15 10:23:19 -04:00
rusefillc
16b8fb64ca
vBatt -> SensorType::vBatt fix #2260
2021-03-11 23:07:18 -05:00
Matthew Kennedy
6aaf02be15
hook up lps25 on proteus ( #2418 )
...
* hook up lps25
* it would help to include all the files
* unguard some stuff
* unguard more
* guarding
* s
* guard
* only register if init worked
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-04 22:39:20 -05:00
Andrey G
fbcff6f0c8
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
b1873b3d8b
set all thread priorities in the same place ( #2412 )
...
* unify thread priority
* header
* mmc
2021-02-28 07:30:45 -05:00
Matthew Kennedy
d933d18e29
use spiPolledExchange for small transfers ( #2358 )
...
* configure for no cache
* this doesn't need a setting
* now we don't need invalidate
* reorder and comment
* mmc
* sw knock
* use spiPolledExchange for small transfers
* mock spi
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-17 14:48:21 -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
Matthew Kennedy
4a1d3de9a6
remove unused msg parameter ( #2360 )
...
* dead parameter
* last few
2021-02-16 09:32:16 -05:00
Matthew Kennedy
50a860a380
implement lps25 ( #2301 )
...
* bb
* implement
* tweaks
* s
* comment, format
* guard
* implement lps25
* headers and comment
* sensor works
* headers
* guard
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-02-06 23:59:44 -06:00
Andrey G
2af32084f4
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
rusefillc
ff765f5f5d
knock v12
2021-01-06 19:42:07 -05:00
Andrey G
b92e3086d0
Adc isAdcChannelValid helper ( #2188 )
...
* Guard define argument
* ADC: isAdcChannelValid
Check for both <= EFI_ADC_NONE and >= EFI_ADC_LAST_CHANNEL
Also check for value out of enum range (corrupted settings)
* Fix unit tests
2021-01-05 16:02:20 -05:00
rusefi
a254c79d93
trigger and start button pins not displayed by "pins" command #2084
2020-12-22 21:20:57 -05:00
rusefi
42c1fb7b5e
trigger and start button pins not displayed by "pins" command #2084
2020-12-22 21:05:49 -05:00
Matthew Kennedy
6168bcea80
Fix gpio reinit race condition ( #2098 )
...
* fix unregister api for gpio
* consumers
* guard with a critical section
* index
* guard less
* unregister under lock
* fix reinit
* dead flag
* fix most tests
* initialize properly
* initialize properly
* assertions in tests
* fix message
* we must lock earlier to be truly safe
* this was using huge memory
* devirtualize
2020-12-18 17:18:12 -05:00
rusefillc
2f91ae6f73
Starter is engaged on start-up in pull-up configuration #1969
2020-11-26 10:55:39 -05:00
Matthew Kennedy
a68cbae0dc
Remove trigger listener list ( #1886 )
...
* avoid 64b on hot path
* no tooth log when fast
* use crit section locker
* final
* only flip pins if not also self stim
* only trace if doing work
* slightly drop lateDelay
* trace if not bailing out
* remove listener array
2020-10-17 08:00:11 -04:00
Matthew Kennedy
95798a5246
fix broken master, inject engine ptr to rpmcalculator ( #1759 )
...
* fix
* oops
2020-09-05 18:49:42 -04:00
rusefi
ca21d5b4c2
refactoring
2020-09-03 19:29:15 -04:00
rusefi
8f4aecf7ca
The Big Refactoring of 2019: folder structure #723
2020-08-02 20:46:40 -04:00
rusefi
725d2b816d
WBO
2020-05-20 19:01:55 -04:00
rusefi
244d1ea7e8
docs
2020-05-03 10:41:48 -04:00
rusefi
d371af5b89
CJ125 PI commands
2020-05-01 20:22:49 -04:00
rusefi
669322311f
cj125 progress
2020-05-01 19:42:09 -04:00
rusefi
de519474ef
cj125 less verbose when running
2020-05-01 19:27:26 -04:00
rusefi
d6db0d1013
bugfix
2020-05-01 19:19:29 -04:00
rusefi
c39662b5c6
better state messages
2020-05-01 18:52:06 -04:00
rusefi
fe25c8162a
Attempting cj125
2020-05-01 17:52:25 -04:00
rusefi
865531193d
docs
2020-04-30 22:30:37 -04:00
rusefi
7686ee271c
https://github.com/rusefi/rusefi_documentation/issues/37
2020-04-29 18:46:51 -04:00
rusefi
1b84406e77
dead code
2020-04-26 17:40:12 -04:00
rusefi
ced931c9b2
new attempt at better simulator
2020-04-13 13:12:55 -04:00
rusefi
25b281c9e7
fixing build
2020-04-13 10:23:08 -04:00
rusefi
a08a6cebff
progress
2020-04-13 09:14:48 -04:00
rusEfi
9d2249390f
cj125 diag
2020-04-09 00:17:29 -04:00
rusEfi
19184033dd
cj125 diag
2020-04-09 00:12:27 -04:00
rusefi
89474adb63
cj125 progress
2020-04-08 23:14:21 -04:00
rusefi
5931fdb915
refactoring
2020-04-08 21:23:49 -04:00
rusefi
907b80efa9
code style
2020-04-01 19:00:56 -04:00
Matthew Kennedy
8fd9842310
cleanup extern mess ( #1237 )
...
* cleanup
* move outside define
2020-03-29 19:06:03 -04:00
rusefi
392c3a1d0c
random code from Ola
2020-03-24 19:14:16 -04:00
Matthew Kennedy
ff3329655a
Dont cache dma buffers ( #1110 )
...
* add no_cache
* don't disable cache
* conventions
* formatting
2020-01-29 00:32:43 -05:00
rusefi
fea2394c7b
F7 SPI challenges
2020-01-24 23:52:56 -05:00
Matthew Kennedy
ba0c48e0ac
use NT_PER_SECOND instead of convert from microseconds ( #1107 )
...
* add NT_PER_SECOND
* missed a few
* inject tooth logger timestamp
* inject
2020-01-19 22:23:41 -05:00
rusefi
bb217b01dd
happy new year unification
2020-01-13 21:57:43 -05:00
rusefi
b83a5310be
happy new year
2020-01-08 00:02:40 -05:00
dron0gus
1b42748e60
Spi fixes ( #1083 )
...
* spi: add support for SPI4
* mpu_util: spi: add 8BIT mode definitions for F4, F7 and kineris (?)
2020-01-06 08:44:23 -05:00
rusefi
fde9a449cf
random refactoring: hopefully not changing byte size of any variables but clarifying/fixing type between ticks, US and MS
2019-12-21 21:11:09 -05:00
rusefi
af4f20551b
getting rid of boardConfiguration / binary compatible change
2019-12-11 17:48:55 -05:00
rusefi
0dd517bcc7
The Big Refactoring of 2019: folder structure #723
2019-12-04 00:22:34 -05:00
rusefi
87143bef9f
fixing build
2019-12-02 09:59:53 -05:00
rusefi
0b4f624b2a
cj125 unit test progress!
2019-12-02 01:52:54 -05:00
rusefi
7dfdfc6378
docs & code formatting
2019-11-19 18:17:03 -05:00
rusefi
3c57c3d216
refactoring: time to unify digital pin API
2019-11-11 23:32:09 -05:00
Matthew Kennedy
29804cbc8a
move tsOutputChannels to header ( #970 )
2019-10-08 21:02:51 -04:00
rusefi
f600bbc6d7
ETB target is using integer values #945
...
refactoring - ADC mocking is a mess
2019-09-22 10:02:07 -04:00
rusefi
533087f475
ETB target is using integer values #945
...
refactoring - ADC mocking is a mess
2019-09-22 09:56:06 -04:00
rusefi
9f50f9a4f7
EFI_CJ125_DIRECTLY_CONNECTED_UR should be a runtime parameter fix #914
2019-09-03 18:44:05 -04:00
rusefi
30899abb1b
longer field names
2019-07-13 10:32:36 -04:00
Matthew Kennedy
e0db83e027
Template-ize bin/value length for interpolation ( #878 )
...
* update consumers
* tests
* whitespace
* format
2019-07-09 21:16:36 +03:00
rusefi
34acd20833
More than one aux pid #866
...
renaming this class since we will probably have two different implementations for two different cases
2019-07-08 03:35:41 -04:00
Matthew Kennedy
95003e9a7b
const, explicit, and override ( #831 )
...
* const, explicit, and override
* more const
* more const
* missed a spot
2019-06-08 09:51:36 -04:00
rusefi
8df2320432
docs
2019-05-27 17:02:46 -04:00
rusefi
f04732830f
PID - fix dTime usages #776
2019-04-25 21:31:33 -04:00
dron0gus
def0123503
Exti rework ( #770 )
...
* io_pins: implement efiSetPadUnused
When pin becomes unused it should be switched to safe mode and
disconnected from any IP block. Assume that gpio input mode with
pull-up is safe enough.
* trigger_input: switch triggers pins to safe mode on stop/reinit
* digital_input_exti: rework
* rename enableExti to efiExtiEnablePin
* add efiExtiDisablePin
* keep track of used exti channels
* trigger_input: use digital_input_exti functions
2019-04-21 09:28:49 -04:00
rusefi
cd13a36a6a
input mode control and other pin mode control #767
...
TODO
2019-04-20 10:59:07 -04:00
rusefi
b71ec07238
docs
2019-04-20 10:21:45 -04:00
rusefi
251710ecd8
USB and TLE8888 not working for F4 or F767 #764
2019-04-19 13:01:06 -04:00
rusefi
54b2f311fe
USB and TLE8888 not working for F4 or F767 #764
2019-04-19 12:42:21 -04:00
rusefi
04445b5713
cj125 and hip125 and else SPI broken with chibi18 migration #757
2019-04-14 18:09:58 -04:00
rusefi
7be441a1bc
random cleanup
2019-04-14 13:52:27 -04:00
rusefi
508e9d74e7
defined(__DOXYGEN__) ? #748
2019-04-12 20:52:51 -04:00
rusefi
22ad223d75
smarter PWM API - need to pass arbitrary pointer
2019-04-12 20:11:27 -04:00
dron0gus
572d04a799
Some more include fixes for linux ( #738 )
...
* Some more include fixes for linux
* Pass cross-compile path through CROSS_COMPILE
* Lower-upper case conversion fixes for linux
2019-04-10 01:12:35 +02:00
rusefi
02832ce0c3
The Big Refactoring of 2019: folder structure #723
2019-04-02 23:19:21 -04:00
dron0gus
bc0eaf52d8
console vs ts cleanup and compilation fix for linux ( #728 )
...
* console vs ts cleanup
* include is case-sensetive in linux
2019-04-01 23:04:49 +02:00
rusefi
aff03cdbc5
unifying_file_naming
2019-03-29 09:40:43 -04:00
rusefi
10b1fdf184
git
2019-03-29 09:38:08 -04:00
rusefi
7e58e54976
better error handling for invalid SPI settings
2019-03-26 09:38:23 -04:00
rusefi
cf740411f2
SPI prescaler refactoring
2019-03-25 22:41:31 -04:00
rusefi
fc590524c2
we need TLE8888 driver #714
2019-03-25 20:30:36 -04:00
rusefi
653a735eab
refactoring: no logic changes, just nicer variable and method names
2019-03-12 18:54:46 -04:00
rusefi
9325cd6d23
better (?) variable names
2019-02-10 22:47:49 -05:00
rusefi
7880acec98
CJ125 unit-tests coverage #617
2019-02-02 01:45:26 -05:00
rusefi
e9a1341782
CJ125 unit-tests coverage #617
2019-02-02 01:06:45 -05:00
rusefi
2b852ea48e
CJ125 unit-tests coverage #617
2019-02-01 23:48:11 -05:00
rusefi
3b5a07c9d6
CJ125 unit-tests coverage #617
2019-02-01 23:16:34 -05:00
rusefi
56f0260414
CJ125 heater zero PWM improvement
2019-02-01 22:20:15 -05:00
rusefi
a0d3ed28ea
docs
2019-01-11 08:33:34 -05:00
Matthew Kennedy
a6e8e857af
idle CS pin fix #665 ( #666 )
2019-01-11 08:12:26 -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
970d120a41
The Big Refactoring of 2019: scheduler should not be global #655
2019-01-09 08:50:51 -05:00
rusefi
943bc8e577
cj125 refactoring
2019-01-03 08:26:42 -05:00
rusefi
19c3f7370f
#617 unit test skeleton
2019-01-03 07:57:34 -05:00
rusefi
02f7380921
#617
2019-01-03 07:22:21 -05:00
Fabien Poussin
72fe39ff32
Workarounds for GCC 8 ( #637 )
2018-12-27 09:40:40 -05:00
rusefi
f3f9223048
CJ125 unit-tests coverage #617
2018-11-03 13:45:36 -04:00
rusefi
e28f2b0e3b
CJ125 unit-tests coverage #617
2018-11-03 13:38:02 -04:00
rusefi
0af290c381
CJ125 unit-tests coverage #617
2018-11-03 13:27:48 -04:00
rusefi
5d5c80a8a1
CJ125 unit-tests coverage #617
2018-11-03 13:17:58 -04:00
rusefi
b7b2e53d55
CJ125 unit-tests coverage #617
2018-11-03 11:44:57 -04:00
rusefi
c392ba8844
#613
2018-10-16 21:27:05 -04:00
andreika-git
d2569a1d11
Prepare for TPS-based Advance and tCharge Modes + Fixes ( #610 )
...
* rusefi_config.txt
* rusefi.input for TPS-based Advance
* rusefi.input for tCharge
* Fix compilation for Prometheus config
* Fix CJ125 calibration & debug flood
* Fix EnumToString utility for main.h->global.h refactoring
2018-09-25 15:45:17 -04:00
rusefi
24a85a6331
sorry more manual merge of #602
2018-08-08 20:42:55 -04:00
Matthew Kennedy
1250463b7a
expand lsu4.9 curve size
2018-08-08 20:15:57 -04:00
Matthew Kennedy
e23e025176
only post tunerstudio state if asked to
2018-08-08 19:57:06 -04:00
rusefi
806ad1abf3
cj125 fixing build
2018-07-22 14:17:51 -04:00
rusefi
e48d4687c1
CJ125 more error codes
2018-06-23 09:34:31 -04:00
rusefi
d9ecb9784b
docs & defaults
2018-06-17 19:14:46 -04:00
rusefi
5497522d00
cj125isUaDivided parameter
2018-06-17 15:07:42 -04:00
rusefi
3dd9f103ae
docs
2018-05-27 20:47:40 -04:00
andreika-git
afdef3d8c4
Fix CJ125 postState() debug output ( #582 )
2018-03-21 15:14:53 -04:00
rusefi
8828550edf
merging docs into .h file
...
maybe not perfect but has it's pros
2018-01-29 19:06:19 -05:00
rusEfi
4a43a77b79
CJ125
2018-01-29 14:38:58 -05:00
rusEfi
64641c7a9e
docs
2018-01-29 14:27:53 -05:00
andreika-git
f82c56acf4
Support for CJ125 Wideband controller (alpha version) ( #560 )
2018-01-29 14:26:42 -05:00
andreika-git
abb1c745e6
Prepare debug & output for CJ125 ( #558 )
2018-01-28 13:04:19 -05:00
rusefi
1d31067d19
happy new year
2018-01-20 20:55:31 -05:00
rusEfi
051f954dd8
#495 todo clean-up
2017-11-19 15:24:36 -05:00
rusefi
f53177f5d7
better error handling
2017-07-28 14:27:37 -04:00
rusefi
6f9ff11213
refactoring - reducing GPIO complexity
2017-04-21 18:11:36 -04:00
rusEfi
55e89f0f31
auto-sync
2017-01-03 06:05:22 -05:00
rusEfi
40470efcb0
auto-sync
2016-08-05 00:02:47 -04:00
rusEfi
a6bd537bb6
auto-sync
2016-08-01 22:04:24 -04:00
rusEfi
ffe28254ac
auto-sync
2016-07-30 22:02:52 -04:00
rusEfi
a3ad82682f
auto-sync
2016-07-30 21:03:22 -04:00
rusEfi
d720d9f10a
auto-sync
2016-07-26 22:01:50 -04:00
rusEfi
8ab5cddf72
auto-sync
2016-07-26 00:03:50 -04:00
rusEfi
46b4cb9855
auto-sync
2016-07-25 23:03:45 -04:00
rusEfi
f1207fa292
auto-sync
2016-07-25 22:01:42 -04:00
rusEfi
b0ec0ac927
auto-sync
2016-07-17 03:01:48 -04:00
rusEfi
94625d16f7
auto-sync
2016-07-17 02:03:46 -04:00
rusEfi
f4f8fdb668
auto-sync
2016-06-24 19:02:45 -04:00