Commit Graph

17 Commits

Author SHA1 Message Date
rusefillc f1862b9cad https://en.wikipedia.org/wiki/Pi 2022-01-14 21:51:03 -05:00
Matthew Kennedy 98c4e71f03 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 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 G 112b4d1182 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 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
dron0gus 055b82ea07 unit test compilation fix under linux (#747) 2019-04-12 22:08:52 +02:00
rusefi d671f569c3 #35 progress 2019-01-19 11:28:37 -05:00
rusefi af7def0cba #35 unit tests 2019-01-19 09:40:39 -05:00
rusefi cd0b49fcfd #35 unit tests 2019-01-19 09:14:48 -05:00
rusefi 1c15d638fd microprogress 2019-01-17 22:59:17 -05:00
rusefi 37ba1d53b2 fixing typo 2019-01-16 23:36:38 -05:00
rusefi 3f21c9e957 gtest 2019-01-08 22:10:54 -05:00
rusefi e14c7e6e92 #35 first unit test with a mock! 2019-01-08 01:20:18 -05:00
rusefi c027473bc1 #35 refactoring towards making class testable 2019-01-08 00:28:53 -05:00
rusefi cf6dcc495c #35 refactoring towards making class testable 2019-01-07 23:55:56 -05:00
rusefi 519316da16 #35 2019-01-07 23:23:50 -05:00
rusefi 8d8d3c32ca better folder structure 2019-01-05 21:49:47 -05:00