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 81fffe87b7
* 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()
* OpenBLT: linker file: use last 16 bytes of ram for shared area
This area is used for communication between FW and OpenBLT.
* OpenBLT: startup: invalidate only DFU breadcumb from startup code
Same location (but different seed) is used for shared param's
signature in OpenBLT.
* OpenBLT: enable shared params
* OpenBLT: enable hooks
If 0x01 is stored in shared param idx=0, then stay in OpenBLT forever.
* Jump to OpenBLT: store proper shared param when OpenBLT is requested
TODO: calculate and store CRC too!
* OpenBLT: move shared_params to start of RAM
* Bootloader: Allocate 16 bytes at start of RAM for bootloader shared area
* OpenBLT: shared_params: reuse same .c and .h file for main application
* OpenBLT: shared_params: enable CRC check
* OpenBLT: no need to manualy set breadcumb before reset
* Revert "OpenBLT: startup: invalidate only DFU breadcumb from startup code"
This reverts commit 6b064714b953560227ae53e38355332cf9f46f7f.
* OpenBLT: guard for builds without OpenBLT
* OpenBLT: reboot to OpenBLT on CAN request with ID=0x667 and DLC=2
* config: options to enable OpenBLT on CAN interfaces
* OpenBLT: comments
* tle8888: ups IGN1
* tle8888: more BIT() macro
* tle8888: fix typos
* tle8888: fix LS2 output on MRE when stepper is enabled
Default settings casue one (or few) not used direct driver inputs
to be mapped to OUT5 (LS2 on MRE)
* smart_gpio: comments for TLE8888 on MicroRusEFI
* smart_gpio: typo
* tle8888: more comments
* adc mux
* cypress is a special ADC size case
Co-authored-by: Matthew Kennedy <matthewkennedy@outlook.com>
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
* delete registers/
* update gitignore
* readme
* Revert "delete registers/"
This reverts commit de10448d5479487b529b4e9ee551f45f271daa8c.
* remove dead dram constants
* switch to use generated C source instead of copy/paste
* more memory map
* dead code in stm32
* rusefi.cpp can have some noreturn
* handle lua panic
* unused error codes
* simplifications of error_handling.cpp
* comment
* put that back
* guard
* use backup ram, hard fault handler improvement
* wire it up
* upload elf
* s
* I guess I'll just use strncpy
* s
* what is it even complaining about?
* neat, we don't need a cast
* cypress and kinetis
* cleanup
* ci
* guard for tests
* stub simulator CAN driver
* comments
* CAN sensor
* maybe implement?
* s
* fix
* tx and rx actually work!?!?!
* check_can_isr
* modify chibios
* Sim has no CAN on Windows (for now?)
* safer init/deinit, enable assertions
* smarter handling of missing CAN device
* better guards
* guards for windows
* remove third trigger
* clean up the honda mess
* there was nothing novel about this engine config
* include
* missed a few
* s
* x
* changelog
* don't set the third trigger input
* don't redefine the same thing 3 times
* only two inputs!
* test
* make things c++ friendly
* install various canaries in coal mines
* using is much clearer than typedef
* fixing builds
* lps25
* trigger includes were a mess
* c -> c++ cleanup
* os util
* why did so many include os_util.h?
* fwd declare
* cypress/kinetis
* s
* eg33 happy
* happy sim
* cypress usb
* pch
* cypress
* doesn't need to include all that
* h7