* Hardened pin reassignment
Added check as some functions access the pin via registers and had no check.
Added protection for "board default" pin value as it can lock up STM32 board due to wrong board layout.
Added STM32 CAN pins to the `pinIsReserved` check.
* Fixed check for inputs
* Fixed typos on last commit
* Fixed possible problems with some outputs
Fixed first test failed on previous commit
* Correctly init reset pin
---------
Co-authored-by: Josh Stewart <josh@noisymime.org>
* Bug fix - consistent #ifdef (ANALOG_ISR/ANALOG_ISR_MAP)
Also replace multiple #ifdefs with inline function.
* MISRA fixes for sensor.cpp
* Conditional compile to allow MAP sensor read pin even when using analog ISR
Useful for development testing
* Remove unused global variables
statuses::batADC
fpPrimed - duplicate of statuses::fpPrimed
injPrimed - duplicate of statuses::injPrimed
* Replace duplicate filter macros with one inline function: LOW_PASS_FILTER (which is MISRA compliant).
* Remove mapErrorCount - it's unused
(only ever written to, never read)
* Deduplicate MAP reading code
* Encapsulate MAP variables
* Add isEngineRunning() to capture duplicate code
* Make readBaro() independent of instanteneousMAPReading()
Removes a conditional and reduces module surafce area
* Use structs to capture the MAP algorithm state.
Also apply ATOMIC_BLOCK to prevent tearing of ISR modified variables.
* Force loop() inline
Reduces stack usage.
* Use 16-bit comparisons
* Remove validateMAP() - since we validate every sensor reading, it wasn't doing anything.
* Unit test engineIsRunning
* Apply SET_UNITY_FILENAME to K6A unit tests
* Unit test LOW_PASS_FILTER
* Unit test fastMap10Bit
* Reduce scope of MAP ADC variables - only used in sensors.cpp
* MAP: read the sensors in one place in the code & inject the values into the sampling algorithms
* MAP: encapsulate reset of state structures
* MAP: replace magic numbers wirth an enum
* MAP algorithms return a flag indicting whether they recomputed MAP/EMAP
* MAP sampling algorithms: push MAP value calculation up the call stack.
* Remove errors.* - it's never called an uses up RAM
* Unit Test: inject all MAP sampling algorithm dependencies
* Unit test MAP sampling algorithms
* Unit test validateFilterMapSensorReading
* Prevent torn reads during comparisons
* Don't skip readings on cycle/event boundaries
* Add unit tests for triggerSetEndTeeth_SuzukiK6A
* Bug fix - use correct parameter when calling stdGetRPM
* Compute triggerToothAngle from the fixed tooth angle array.
* triggerSetEndTeeth_SuzukiK6A - hoist duplicated code into calcEndTeeth_SuzukiK6A
(like we did for some other decoders).
* MISRA fixes for Suzuki K6A decoder
* feat: adds AEM 30-0300 X-Series UEGO wideband over CAN support
Signed-off-by: wilmardo <info@wilmardenouden.nl>
* fix: add else around setting currentStatus.02
Signed-off-by: wilmardo <info@wilmardenouden.nl>
* refactor: only do the division once for AEM wideband data
Signed-off-by: wilmardo <info@wilmardenouden.nl>
---------
Signed-off-by: wilmardo <info@wilmardenouden.nl>
* Initial test
* Fix syntax
* Fix platform names
* Fix platforms order
* Add sketch-paths
* Add verbose
* Disable fail fast
* Attempt compile only top level file
* Update compile-sketches action version
* Try mega2560 compile with native core
* Try blank source-url
* Change to array for platform
* Change formatting
* Last try
* Use scalar multiline strings for paltform
* Use string literals for newline
* Formatting
* Try mega2560 without library
* Add stm32f407
* Add library board property
* Fixes
* Fix mega platform
* Change Time to TimeLib
* Try different escaping
* Use individual lines for build extra-flags
* Try without escaping
* Try only single build flag
* Add 2nd -D for mega
* Add all mega build options back
* Match stm32 build option format
* Remove HWSERIAL 2 and 3 for stm32
* Lock stm32 to v2.7.1
* Enable reporting on PR
* Disable verbose
* Add workflow name
* Dummy test data to verify memory change
* Revert "Dummy test data to verify memory change"
This reverts commit e83609ec9e.
* Dummy memory increase for Teensy and stm32
* Revert "Dummy memory increase for Teensy and stm32"
This reverts commit 830b255e75.
* Only run on PRs
* Revert "Only run on PRs"
This reverts commit 24d61e5069.
* Split memory deltas workflow into calculating and reporting
* Force v3 of upload-artifact
* Lock report deltas version
* Use latest example as reference