* smt32_common.mk: reduce copy-paste
* SENT: sentPins is not used
* hw: stm32: add ICU helper
* hw: stm32: icu helpers: also return timer base clock
* SENT: icu: use helper to get ICU & channel and AF
* SENT: icu: use CPU ticks for pulse measurements
* hw: stm32: icu: cleanup
* use tabs
* SENT: Lua glue: getSentValue returns ETB position now
Can be tested with following LUA script:
setTickRate(100)
function onTick()
pos = getSentValue(1)
setLuaGauge(1, 10000 * pos)
print(pos)
end
* SENT: measure more pulses during Unit time calibration
* SENT: no magic numbers
* SENT: fix typo
* SENT: setninfo output: do not show slow channels if not detected
* SENT: fix GM-style CRC calculation
* SENT: another one CRC algorithm, now for pressure sensor
* SENT: show CRC error percentage
* SENT: cache current setting to do proper clean-up on stop
* SENT: microRusEfi supports send on "AN temp 2" = PA1 only
* SENT: microRusEfi: fix pin number
* SENT: use activeConfiguration during sentStop()
* MRE: pin 23: can accept events (for SENT)
* 429 boots and LEDs work
* oops missed a comma
* enable on f767 too, since it should be the same board
* why not just completely duplicate it
* script should not be fancy
* script should not be fancy
* correct pins
* h743 while we're at it
Driver sets (period - 1) to ARR (auto-reload register)
So we need to set period to (1 << 32) to get maximum
0xffffffff value in ARR. But period is uint32_t.
So set it to 0 and it will ovelap to UINT32_MAX at
pwmp->tim->ARR = pwmp->period - 1;
* Do lightweight checks first
* Dead getTimeIgnitionSeconds()
Dead since 5274cffff3
* Get rid of efitime_t.
Purpose are not clear. Use efitick_t where ticks are used,
use efitimeus_t for uS, use efitimems_t or efitimems64_t for mS.
* Fix unit tests
* Fix misc: stm32f1_test_project
* Extract time helpers from engine_controller_misc to efitime.cpp
* Rename currentTimeMillis() to getTimeNowMs()
We have getTimeNowNt(), getTimeNowUs(), currentTimeMillis() and getTimeNowSeconds()
Align a bit.
find . -type f -name '*.c*' -exec sed -i 's/currentTimeMillis/getTimeNowMs/g' {} \;
* Rename getTimeNowSeconds() to getTimeNowS()
To align with Nt, Us, Ms versions.
* Some comments about getTimeNowLowerNt()