Matthew Kennedy
1a73dcc46e
fast adc callback ( #3031 )
...
* fast adc callback
* guard
* missed one
* now cypress will be happy
2021-07-23 14:19:59 -04:00
Matthew Kennedy
e3849b95d5
don't require EXTERN_ENGINE in every file ( #2969 )
...
* move enginePins
* no more extern engine
* uses
* more
* extern config too
* put this where it belongs
* include correct header
* merge
2021-07-16 18:13:33 -04:00
Andrey
050a009b3d
trigger signal debug pins - logic level output #2959
2021-07-15 01:46:30 -04:00
Andrey
0f30fec7c2
trigger signal debug pins - logic level output #2959
2021-07-15 01:28:44 -04:00
rusefillc
8e8737d6ce
trigger signal debug pins - logic level output #2959
2021-07-15 00:03:31 -04:00
Andrey
d1b3eb065d
trigger signal debug pins - logic level output #2959
2021-07-14 23:20:18 -04:00
Andrey
bb38cc60eb
trigger signal debug pins - logic level output #2959
2021-07-14 23:05:51 -04:00
Andrey
b53b23b140
trigger signal debug pins - logic level output #2959
2021-07-14 22:51:08 -04:00
Andrey
122ef9f637
making code more testable
2021-07-14 22:37:05 -04:00
Matthew Kennedy
1bba234920
inject ( #2938 )
2021-07-09 17:02:25 -04:00
Andrey G
6d849d05c7
Hw layer rearrangement ( #2703 )
...
* max31855: move to sensors
* uart GPS driver: move to sensors and rename
* i2c_bb: move to drivers
* LCD HD44780: move to drivers
* ping?
2021-05-16 06:01:00 -04:00
Matthew Kennedy
5f0791f9fb
Destroy all shared logger ( #2574 )
...
* most of shared logger
* a few more
* one more
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-21 14:28:48 -04:00
Matthew Kennedy
737ee444b8
rip the bandaid: find-replace most of scheduleMsg ( #2572 )
...
* biiiig find replace
* more trivial find replace
* pwm
* almost all of them
* few more
* gpio
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-21 12:53:13 -04:00
Matthew Kennedy
8cfb63455d
Logging remove 3 ( #2568 )
...
* ts logger
* sensors
* wideband too
* missed one
* init
* motors, pid, etc
* vvt
* more
* idle
* missed one
* dynoview
* launch
* can
* console IO
* s
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-20 14:09:41 -04:00
Matthew Kennedy
ce142907a0
replace print/printMsg with scheduleMsg ( #2497 )
...
* start cleaning
* disabled feature means don't print that it's disabled
* cli
* usages
* printMsg -> scheduleMsg
* this is alllll dead now
* no crlf please
* all hope is lost if you manage to hit this line
* tests
* tests
* ok we did actually need that part
* sim
* d
* kinetis
* it did ifdef, not if
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-26 17:23:26 -04:00
Matthew Kennedy
368415972e
read configuration from flash exactly once ( #2481 )
...
* early hw init
* s
* read configuration exactly once
* cleanup
* housekeeping
* test friendly
* ugh bad merge
* that is a noop
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-25 18:16:26 -04:00
Matthew Kennedy
53a579abbf
move some initialization steps earlier ( #2480 )
...
* early hw init
* s
* Revert "s"
This reverts commit 10d3039168613cfb2b0cf1c960d2f18894745ce3.
* bor
* I can't type
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-25 16:22:03 -04:00
Matthew Kennedy
910f46267f
VVT uses closed loop controller framework ( #2453 )
...
* vvt uses framework
* builds
* rename, update headers
* s
* testable
* write some basic tests
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-14 19:31:46 -04:00
Matthew Kennedy
e6d24d3010
avoid various "no connect" scenarios ( #2432 )
...
* init mmc and USB earlier
* connect USB faster
2021-03-07 20:21:42 -05:00
rusefillc
3354691778
trying to fix AuxValves
2021-02-17 08:57:18 -05:00
rusefillc
95b78a48ed
aux to vvt rename
2021-02-17 08:53:39 -05:00
Matthew Kennedy
55facb6613
use DECLARE_ENGINE_PTR for Engine class ( #2365 )
...
* engine cleanup
* do the cleanup
* one last spot
* expand_engine noop for firmware
* simulator
2021-02-16 16:58:54 -05:00
Matthew Kennedy
c75af2ac75
properly put buffers in no-cache regions ( #2357 )
...
* configure for no cache
* this doesn't need a setting
* now we don't need invalidate
* reorder and comment
* mmc
* sw knock
2021-02-15 17:39:11 -05:00
rusefi
6c9416daa9
aux pid is now VVT
2021-02-10 12:41:38 -05:00
rusefillc
83d8bd9369
H7 compilation #2284
2021-02-06 00:37:12 -05:00
Matthew Kennedy
3cf6b67b87
fix #2269 ( #2272 )
...
* fix #2269
* cleanup
2021-02-03 08:04:22 -06:00
Andrey G
27905c6817
Chibi os 20 ( #2212 )
...
* Update ChibiOS
* Fix Makefiles includes paths
* halconf.h: remove flash hack
* mcuconf: fix EXTI ptiorityes
* Digital Input: ICU: use designated initializers, initialize 'arr'
* ChibiOS: lis302dl fix
* ADC: update to new API
* UARTConfig: timeout_cb field, formating
* ChibiOS: remove _exit, _kill, _getpid
* Fix lis302dl
* Bump config versions
* chconfig_common: cosmetic changes
* stm32f4ems: commulative config update
* Update Simulator
* ALLCSRC already contain all needed ChibiOS files.
Same for ALLINC and ALLCPPSRC
* ChibiOS fix for Simulator
* ChibiOS: port lock/unlock hook and MMC over SPI timeout
* STM32F7: update configs
* STM32F7: update linker file
* Cypress: port ADC lld to ChibiOS-20
* Cypress: port SPI lld to ChibiOS-20
* Cypress: port CAN lld to ChibiOS-20
* Cypress: fix include path for rules.ld
* Cypress: update chconf.h and halconf.h for ChibiOS-20
* Kinetis: update ADC lld to ChibiOS-20
* Kinetis: update SPI lld to ChibiOS-20
* Kinetis: update UART lld driver for ChibiOS-20
* Kinetis: update chconf.h and halconf.h for ChibiOS-20
* Kinetis: fix include path for rules.ld
* Nucleo F746: update ld script
* Nucleo F746: fix compile
* Bootloader: fix compilation with ChibiOS-20, cleanup
* Bootloader: add way to pass crosscompiler using CROSS_COMPILE
* Debug build arguments
* Simulator: fix windows compilation
Exclude syscalls_cpp.cpp from compilation
2021-01-19 15:20:35 -05:00
Matthew Kennedy
4e6c841729
boost fixes ( #2230 )
...
* fix boost pin reinit
* call boost from periodic slow
* ui
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-01-18 07:04:14 -05:00
Andrey G
12728ccd82
Call startSmartCsPins when applying new settings ( #2194 )
...
Only stopSmartCsPins was called from applyNewHardwareSettings.
This cause lost of CS pins for external gpio chips
2021-01-06 08:59:13 -05:00
Andrey G
71fe582ce5
Adc isAdcChannelValid helper ( #2188 )
...
* Guard define argument
* ADC: isAdcChannelValid
Check for both <= EFI_ADC_NONE and >= EFI_ADC_LAST_CHANNEL
Also check for value out of enum range (corrupted settings)
* Fix unit tests
2021-01-05 16:02:20 -05:00
Matthew Kennedy
279f8bad03
use limp mgr for trigger disable ( #2145 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-26 18:12:36 -05:00
rusefi
6ddfff8fd9
Proteus is compiled without VSS feature #2122
2020-12-22 20:50:01 -05:00
rusefillc
2f15c08498
basic hw in the loop - pwm self validation #2028
2020-12-08 04:52:49 -05:00
rusefillc
3a3586f730
basic hw in the loop - pwm self validation #2028
2020-12-07 20:42:47 -05:00
rusefillc
ee9aaf4e0d
basic hw in the loop - pwm self validation #2028
2020-12-07 20:01:05 -05:00
rusefillc
5390fccada
Starter is engaged on start-up in pull-up configuration #1969
2020-11-26 10:55:39 -05:00
rusefillc
7b8d20108f
Starter is engaged on start-up in pull-up configuration #1969
2020-11-26 10:41:22 -05:00
Matthew Kennedy
ebb8ede1da
squash warnings ( #1984 )
...
* warnings
* unused
* a few more
* too much
* uint16_t-ify
2020-11-23 09:43:16 -05:00
Andrey G
83f5c8e6b6
Typo fix ( #1978 )
2020-11-22 08:27:03 -05:00
rusefillc
3a38c837cc
Starter seems to be engaged forever #1965
2020-11-18 22:45:37 -05:00
Matthew Kennedy
6b0c533d2c
consolidate EFI_UNIT_TEST and friends ( #1940 )
...
* restructure
* guard c++
* idle too
* status_loop.h
* consolidate definitions
* use 1/0 instead, check for existence
* missed a few
* dead define
* defs for bootloader
2020-11-11 20:34:39 -05:00
Matthew Kennedy
e8bb0cfd00
extract idle hardware to its own file ( #1923 )
...
* extract idle hardware
* should fix the build
2020-11-03 18:06:32 -05:00
rusefi
4dc5c61f60
Output pin init/deinit needs a linked list #1803
...
trying to make things more consistent & smarter
2020-11-03 00:46:03 -05:00
Matthew Kennedy
4c3046a707
remove spiMtx ( #1907 )
2020-10-25 17:26:46 -04:00
Matthew Kennedy
8f6982dd54
disable i2c, other unused features ( #1891 )
...
* dead
* more
2020-10-20 22:24:32 -04:00
David Holdeman
9536590a25
Debounce refactor ( #1809 )
...
* 1,2,4,7,9
* 6
* fix type mismatch
* change field
* comment
* Revert "comment"
This reverts commit f7ce8ed48d015490ed82d692270198817569b5a3.
* Revert "Revert "comment""
This reverts commit 99f2d5cadcbf444bf58acf9e57a6fed61355d5be.
* Revert "change field"
This reverts commit 55ec050cd947696cdffccae6b29fe48d95ab5f17.
* rename var
* comments
* use func in init
* default values
* remove redundant check
2020-09-20 14:01:00 -04:00
rusefi
c98e78640a
Hellen says merge #1772 hardware.cpp
2020-09-15 15:01:31 -04:00
David Holdeman
ffb5e0b1e4
switch start/stop to ButtonDebounce ( #1777 )
2020-09-09 08:22:15 +01:00
David Holdeman
65b60df172
Debounce pin management ( #1760 )
...
* add linked list
* macros, and use in buttonshift
* unit_tests macros
* add extern
* add parens
* move extern
* move extern
* move buttonDebounceListHead
* move buttonDebouncePointerHead
* merge gore
* undo
* reduce unused size
* don't store pointer if already initialized
* few changes
* remove oldPin
* fix merge conflict
* merge in changes commited to wrong branch
* fix definition
* out of class?
* brute force programming
* fix few problemos
* am confuse
* am confuse
* am confuse
* am confuse
* oldPin snuck in
* move to public?
* define again
* try constexpr
* def in cpp
* remove constexpr
* fix def
* fix?
* update active
* fix a few things
2020-09-08 11:29:38 -04:00
Matthew Kennedy
1b07647e72
Software knock detection ( #1730 )
...
* s
* science
* set pin mode
* turn stuff off so it fits
* filtering maybe
* filtering actually works
* generate filter parameters internally
* shorter window
* guard behind enable flag
* use checked in filter
* add biquad reset
* tracing
* const
* exec order
* do it from a thread
* smaller buffer, comment
* configure with header
* only for proteus
* oops
* unused
* not needed
* guards
* pin config
* don't need that include
* precook filter steady state
* define sample rate
* config enable switch
2020-08-28 21:13:50 -04:00