rusefillc
1ac86f50a2
my first Lua
2021-09-01 07:47:50 -04:00
rusefillc
6247a50662
Revert "Revert "memory savings ( #3195 )""
...
This reverts commit 86cf9cf7
2021-08-27 06:18:05 -04:00
rusefillc
86cf9cf7c9
Revert "memory savings ( #3195 )"
...
This reverts commit 1b485ca2
2021-08-27 02:32:31 -04:00
Matthew Kennedy
1b485ca2d8
memory savings ( #3195 )
...
* d
* dead code
* all your ram are belong to me
* turn off gpiochips we don't need
* save
* save by using the same file handle
* smaller stack ok
* these can be on the stack
* this is closer
* what about ccm?
* probing available
* now probe ccm
* ccm
* put stuff in ccm
* fsio
* memory usage
* memory
2021-08-26 23:05:31 +03:00
Matthew Kennedy
210aa31ef3
cleanup missing fsio stuff ( #3189 )
2021-08-24 08:19:03 +03:00
Matthew Kennedy
a02c8dc7c3
lua & fsio cleanup ( #3175 )
2021-08-18 15:25:46 -04:00
rusefillc
2533838016
dead FSIO
2021-08-14 11:52:41 -04:00
rusefillc
9c32b39e7f
dead idle FSIO
2021-08-12 18:34:06 -04:00
Matthew Kennedy
39388c75d8
even more pch ( #3112 )
...
* s
* more
* s
* f7
2021-08-04 19:30:52 -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
Matthew Kennedy
d3ec2b21d1
Use pch in lots of files ( #3066 )
...
* most engine.h
* most engine_configuration
* more
* more
* more
* more
* more
* moooooore
* ok I'm done for now
* oops
2021-07-26 01:05:17 -04:00
Matthew Kennedy
82b30d8f78
cleanup for pch ( #3062 )
...
* cleanup
* d
2021-07-25 20:43:02 -04:00
Andrey
173fb7bbbe
Nissan 360 CAS #3003
...
docs
2021-07-20 21:11:08 -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
b3433b97ef
progress - reducing code duplication
2021-07-12 21:22:20 -04:00
Matthew Kennedy
a3d3638232
more graceful chibios assertion failure ( #2859 )
...
* no custom assert hook
* dead
* setjmp/longjmp
* always call tid hook
* tests get threadid
* simulator threadid
* kick
* stubs for kinetis
* make it happier
* noreturn
* oops
* comments
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-07-05 18:18:58 -04:00
Matthew Kennedy
fe6f123be5
Move AC logic out of FSIO ( #2872 )
...
* new impl
* remove fsio
* inject "is ac active" to fan
* include the correct code
* include
* test
* more AC features
* AC switch vs. actual AC indicators
* include
* duh
2021-06-27 18:51:34 -04:00
Matthew Kennedy
e39eadce85
dead fsio alt ( #2871 )
2021-06-26 20:15:48 -04:00
Andrey
fef89328d3
helping build?
2021-06-25 11:48:17 -04:00
rusefillc
d69ad4f45c
unit_tests: mapAveragingTriggerCallback causes segmentation fault fix #2858
2021-06-25 10:43:58 -04:00
Matthew Kennedy
dad704a926
don't stack overflow on early ch dbg assert ( #2853 )
2021-06-24 16:36:20 -04:00
Matthew Kennedy
41104dcca8
hard coded fan logic ( #2805 )
...
* remove fsio
* hard code impl
* test it
* enable fan with AC
* make commented stuff match
2021-06-11 06:25:12 -04:00
Matthew Kennedy
70c0db189d
warnings & assorted cleanup ( #2793 )
...
* lua hook
* validateBuffer
* tables
* simplify fsio table
* test
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-06-03 14:30: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
76f2f063d2
Maf in sensor model ( #2672 )
...
* init
* consumers
* hasMafSensor
* consumers
* remove
* remove
* s
* guard
* tiny bit of ram
* ram
2021-05-09 20:59:06 -04:00
Matthew Kennedy
3dd6b2efc9
move FSIO aux analog inputs to sensor model ( #2669 )
...
* sensor entries
* init
* non-explicit for list init to work
* switch fsio
* no longer need this lua hook
* init
2021-05-09 19:47:37 -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
967383dd8e
remove simple cases of LoggingWithStorage ( #2569 )
...
* remove simple cases
* more simple
* serial
* s
* more
* try memory
* easy
* mmc acc
* that's how much memory
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-04-19 08:11:59 -04:00
rusefillc
80d080da6f
helping us trace CUSTOM_FSIO_STACK_SIZE
2021-04-08 15:59:42 -04:00
rusefillc
c3270fb715
helping us trace CUSTOM_FSIO_STACK_SIZE
2021-04-08 15:15:12 -04:00
rusefillc
4a94e65a2e
code style?
2021-04-04 22:09:22 -04:00
Matthew Kennedy
f24c15a9a2
More gppwm and fsio ( #2509 )
...
* gppwm aux temp
* fsio fuel flow rate and oil pressure
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-29 08:57:37 -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
4e1d30f86d
plumbing for multiple vvt ( #2488 )
...
* plumb multiple vvt
* fix test
* s
* fix barra while we're at it
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-25 07:39:23 -04:00
Matthew Kennedy
962e0b32e7
fix error/warning buffer overflow ( #2456 )
...
* fix error printing overflow
* make the worst offender shorter
* error as warning
* these don't need that flag set
2021-03-14 09:31:11 -04:00
Matthew Kennedy
943e6078c8
logging cleanup before refactor ( #2438 )
...
* minor cleanup
* more cleaning
* signature
* spelling
* doy
2021-03-09 08:43:29 -05:00
Matthew Kennedy
d7536bf059
finish off vbatt -> sensor model ( #2433 )
...
* more vbatt
* s
* goodbye voltage
* makefile
* apparently that part was in use
* include
* mocking
2021-03-07 20:18:32 -05:00
Matthew Kennedy
350a047ead
cleanup ( #2386 )
2021-02-23 16:57:14 -05:00
Matthew Kennedy
321fe48b27
rework FSIO LEelement ( #2374 )
...
* save
* firmware
* test parsing multiple things
* split tests
2021-02-17 23:32:44 -05:00
rusefi
b9f8978c22
no one expects to make FSIO progress
2021-02-17 10:53:35 -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
rusefillc
8d730b6ea9
M62T vanos support #2243
2021-02-10 19:51:14 -05:00
Andrey G
04c7ad67aa
Some fixes prior to board pull request ( #2291 )
...
* ChibiOS: add support for STM32F765
This chip is used on Subaru EG33 p'n'p RusEFI board from Dron_Gus
* drivers: gpio: mc33810: commulative update
- use BIT macro
- fix wake-up method
- fix order of arguments in _add function
* port: stm32f4/7: detectCanDevice check for enabled interfaces only
* ADC: fix internal array size
internalAdcIndexByHardwareIndex should be EFI_ADC_LAST_CHANNEL size
couse adc_channel_e is used as index
* status LEDs: support status LEDs that driven by low level
2021-02-06 12:22:57 -05:00
Matthew Kennedy
b047ec4f12
clean up some includes ( #2227 )
...
* cleanup
* make c happy
2021-01-16 09:45:45 -05:00
rusefillc
33e2e3707a
cmd_test_main_relay
...
helping build
2021-01-11 20:01:20 -05:00
rusefillc
e15faa8696
cmd_test_main_relay
2021-01-11 19:37:50 -05:00
rusefillc
5e1a94ef1e
cmd_test_main_relay
2021-01-10 23:46:50 -05:00
rusefillc
dff1334c28
cmd_test_main_relay
2021-01-10 20:30:08 -05:00
Andrey G
b61ae75fe2
gpio helper ( #2195 )
...
* gpios: isBrainPinValid helper
* LCD HD44780: do not touch pins if DM_NONE or invalid gpio
* Fix isEnabled checks for GPS and Joystick
* LCD HD44780: writePad use this method wider
2021-01-08 20:01:26 -05:00
Matthew Kennedy
add0dcd390
switch more map to read from sensor model ( #2162 )
...
* hook up map
* check for init
* switch some consumers
* that's the rest of them
* test
* tests
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-01-02 19:13:10 -05:00
Matthew Kennedy
924ca4f3a4
progress to fsio type safety ( #2137 )
...
* rename
* packed type safe fsio value
* comment
* rename
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-27 17:22:11 -05:00
Matthew Kennedy
b0f7fbf28a
create limp manager ( #2142 )
...
* move rev limit to limp manager
* call fatal error
* include order
* fix bug
* tests
* comment
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-26 17:30:46 -05:00
Matthew Kennedy
c0857d6f02
unused ivalue ( #2138 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-25 09:47:33 -05:00
Matthew Kennedy
90cdd2ee84
rename ( #2136 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-25 08:40:54 -05:00
Matthew Kennedy
c29f40bdf4
format in tests ( #2100 )
2020-12-18 08:48:19 -05:00
rusefillc
f147aabcd7
trigger and start button pins not displayed by "pins" command #2084
...
progress but not complete fix yet
2020-12-16 22:00:42 -05:00
Matthew Kennedy
abf683e775
test ( #2071 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-12 23:40:05 -05:00
shadowm60
92304460dd
Fsio eval check ( #2068 )
...
* FSIO error signaling
- wrong keyword in FSIO now shows up as nice TS error message
- added f7 debug option for vsCode as well.
* Keep unit_test happy
2020-12-12 20:03:52 -05:00
Matthew Kennedy
719e341eeb
start fuel pump as soon as trigger events happen ( #2038 )
...
* switch pump fsio logic
* value collision
* fuel pump in tests
* mock time since trigger
* test fp
* init pin in test
* fix gpio outputs in tests
* comment
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-10 01:23:24 -05:00
Matthew Kennedy
73fc01ceec
put back safe part of #2005 ( #2036 )
...
* put back some safe bits
* dumb typo
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-06 22:28:29 -05:00
rusefillc
8d6255b1e2
Revert "switch rpm calculator to use timer class ( #2005 )"
...
This reverts most of 622021e799
commit.
2020-12-06 18:05:53 -05:00
Matthew Kennedy
622021e799
switch rpm calculator to use timer class ( #2005 )
...
* add api
* rpm calculator
* fix fsio
* fix float
* remove wrong comment
* fix timer
* clang didn't like this
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-06 16:01:45 -05:00
Matthew Kennedy
bb2208fb52
add timer since last trigger tooth ( #2004 )
...
* add elapsed time to timer
* store trigger time
* fsio method
* don't do a 64b divide
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-12-03 11:13:45 -05:00
rusefillc
59655af204
Fuel pump should turn on at the first sign of engine rotation #1961
2020-12-02 23:09:39 -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
74d2af9c6c
Move all DECLARE_ENGINE_PTR etc to one place ( #1937 )
...
* restructure
* guard c++
* idle too
* status_loop.h
2020-11-11 19:06:04 -05:00
Matthew Kennedy
cca175c6ea
Etb function cfg, try again ( #1860 )
...
* two throttles one thread
* look at all this RAM!
* add enum
* switch from index to function
* test fixup
* improve init logic
* remove old vw idle mode bit
* add config
* better spot for it
* use config init values
* handle null controller array
* fatal error testability
* test new init config
* defaults
* fix for default config
2020-10-08 14:12:03 -04:00
Matthew Kennedy
22a55ce7e6
switch from float to expected<float> ( #1862 )
2020-10-06 22:33:00 -04:00
Matthew Kennedy
7b333e60ea
FSIO refactoring ( #1861 )
...
* better fsio tests
* condense operators
* minor parser cleanup too
* comments, too!
2020-10-06 21:54:49 -04:00
Matthew Kennedy
da3242f2fc
missing iat ( #1854 )
2020-10-04 21:33:54 -04:00
rusefillc
aee984d0c2
HW CI has failed 11 times since Oct 2 #1849
...
Revert "ETB function config (#1831 )"
This reverts commit fd7dae8a
2020-10-03 22:00:00 -04:00
Matthew Kennedy
fd7dae8ab8
ETB function config ( #1831 )
...
* two throttles one thread
* look at all this RAM!
* add enum
* switch from index to function
* test fixup
* improve init logic
* remove old vw idle mode bit
* add config
* better spot for it
* use config init values
* handle null controller array
* fatal error testability
* test new init config
* defaults
* fix for default config
2020-10-02 20:51:02 -04:00
Matthew Kennedy
a11338d642
print red ( #1843 )
2020-10-01 17:14:25 -04:00
Matthew Kennedy
36234961c1
logging simplification: switch bare functions to member functions: try the second ( #1794 )
...
* first pass
* first pass
* const means we don't have to check!
* static
* test fixup
* fix sniffer
2020-09-13 11:49:25 +03:00
rusefi
ead14bd1ca
Revert "logging simplification: switch bare functions to member functions ( #1788 )"
...
This reverts commit 39280fb2
2020-09-12 04:36:24 -04:00
Matthew Kennedy
39280fb2c6
logging simplification: switch bare functions to member functions ( #1788 )
...
* first pass
* first pass
* const means we don't have to check!
* static
* test fixup
2020-09-12 03:08:11 +03:00
rusefi
06763dc98f
Hellen says merge #1772 Kinetis needs help
2020-09-10 21:51:58 -04:00
rusefi
e289977e37
Hellen says merge #1772 main relay progress
2020-09-10 21:11:02 -04:00
rusefi
554a019e2e
Hellen says merge #1772 error pin logic
2020-09-09 18:35:17 -04:00
rusefi
41cecd15eb
Merge remote-tracking branch 'origin/Hellen_fork_point' into master
...
# Conflicts:
# firmware/controllers/core/error_handling.cpp
# firmware/controllers/system/efi_gpio.cpp
2020-09-09 18:23:04 -04:00
rusefi
fe3d03ba5a
Hellen says merge #1772 error pin
2020-09-09 18:18:59 -04:00
rusefi
3d0f92c4a1
microRusEFI used as Body Control Module BCM BCU
2020-09-07 11:09:48 -04:00
Matthew Kennedy
fc02c2bdf4
fix broken master, inject engine ptr to rpmcalculator ( #1759 )
...
* fix
* oops
2020-09-05 18:49:42 -04:00
rusefi
b7f7b917ec
A vague bug #1684
2020-08-08 21:38:09 -04:00
rusefi
6b2c1d4d59
NA6 progress
2020-07-29 22:48:41 -04:00
Matthew Kennedy
4703b4be6d
guard perf track lock hooks ( #1591 )
...
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-07-11 00:16:36 -04:00
Matthew Kennedy
1a0cad431b
trace global lock/unlock ( #1582 )
...
* trace global lock/unlock
* bootloader stub
* add to java
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-07-10 23:27:27 -04:00
rusefi
21c35874a5
idle_min through FSIO not working as intended #1553
2020-07-01 20:45:37 -04:00
rusefi
a743b55e5e
index for fsio_analog_input
2020-06-01 22:39:56 -04:00
rusefi
0847dc4683
useFSIO6ForRevLimiter
2020-06-01 09:09:55 -04:00
Matthew Kennedy
a2313a853c
switch some firmware warnings to errors ( #1465 )
...
* warnings as errors
* throw instead of exit
* test massaging
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2020-05-23 10:46:28 -04:00
rusefi
e063aa492a
build and board info into critical error message
2020-05-22 16:45:13 -04:00
rusefi
714979586b
refactoring
2020-05-22 16:36:37 -04:00
rusefi
19bef7870c
fixing build
2020-05-22 01:03:27 -04:00
rusefi
5c91d96ce6
new LED logic: constant WARNING if VBATT is below 7v
2020-05-13 01:17:48 -04:00
rusefi
a88b41a8d0
refactoring related to RED FATAL/CRITICAL LED is a bit dim when it should be OFF
...
#157
2020-05-11 18:22:51 -04:00
rusefi
94ca216936
nicer error messages
2020-05-09 01:49:17 -04:00
rusefi
cfd8889236
class constructors are a great way to have simple initialization sequence
2020-05-03 10:58:52 -04:00
rusefi
0ec3ce595e
dead code
2020-04-26 17:40:12 -04:00