Commit Graph

17 Commits

Author SHA1 Message Date
rusefillc d305f2c5cf https://en.wikipedia.org/wiki/Pi 2022-01-14 21:51:03 -05:00
Matthew Kennedy c72bd07179
enable address sanitizer (#3217)
* enable asan

* lua

* this is dead and leaky

* leaky nissan

* fix pwm generator use-after-stack

* initializers

* prevent problems in case of invalid trigger shape

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-09-05 05:56:59 -04:00
Matthew Kennedy 25414ebdad
yet more pch (#3068)
* big pch energy

* put back ramdisk stub

* tests are happy

* h743 nucleo

* kinetis

* I love deleting code!

* make stepper happy

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-08-03 22:05:01 -04:00
Andrey 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 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
dron0gus a122451301 unit test compilation fix under linux (#747) 2019-04-12 22:08:52 +02:00
rusefi d299d02240 #35 progress 2019-01-19 11:28:37 -05:00
rusefi 8b66bdc86b #35 unit tests 2019-01-19 09:40:39 -05:00
rusefi c6f19d77be #35 unit tests 2019-01-19 09:14:48 -05:00
rusefi 82131d590c microprogress 2019-01-17 22:59:17 -05:00
rusefi c852686f00 fixing typo 2019-01-16 23:36:38 -05:00
rusefi f68cb90e6c gtest 2019-01-08 22:10:54 -05:00
rusefi 60e747481f #35 first unit test with a mock! 2019-01-08 01:20:18 -05:00
rusefi 778c1968e7 #35 refactoring towards making class testable 2019-01-08 00:28:53 -05:00
rusefi 21c2695c93 #35 refactoring towards making class testable 2019-01-07 23:55:56 -05:00
rusefi c51af79731 #35 2019-01-07 23:23:50 -05:00
rusefi aced64810f better folder structure 2019-01-05 21:49:47 -05:00