Commit Graph

75 Commits

Author SHA1 Message Date
rusefi 9c72e22f23 set_lua_setting 2024-03-22 09:26:37 -04:00
rusefillc 2b5178b03f only:Lua refresh rate transparency/logic etc #5939
new scope
2024-02-15 09:17:36 -05:00
rusefillc 98db7a68f3 bugfix: sleep outside of luaLastCycleDuration measurment 2024-02-12 23:27:41 -05:00
rusefillc 61f73accfb Lua runtime stats 2024-02-12 21:55:42 -05:00
rusefillc 4c143d8051 only:static 2024-02-12 20:46:58 -05:00
rusefillc 9dbf3896d8 luaDigitalState into TS 2023-11-21 11:57:20 -05:00
rusefillc b3b8cb6ed5 unused 2023-11-03 20:54:02 -04:00
Andrey ba66fdcf82 reducing code duplication around assert 2023-09-05 21:28:39 -04:00
rusefi e8c45a2e7d refactoring: reducing code duplication. Also, do we even care for critical error codes?! 2023-08-20 22:23:44 -04:00
rusefillc 8680acdfea only:small-can-board 2023-06-24 00:39:53 -04:00
rusefillc 04a4a28664
only:small-can-board (#5351) 2023-06-23 10:51:01 -04:00
rusefillc 70badc6c4c
only:small-can-board (#5350) 2023-06-23 00:06:20 -04:00
Matthew Kennedy 61e5b4b1ad change ObdCode to enum class builds firmware 2023-04-29 00:44:00 -04:00
Matthew Kennedy d6521492b7 guard for tests
(cherry picked from commit e3136f317a)
2023-04-28 23:50:48 -04:00
Matthew Kennedy c70c6ccec5 lua memory leak detection and prevention
(cherry picked from commit cfa9bfa44d)
2023-04-28 23:50:35 -04:00
rusefillc 9f0e2b2eb4 Norman is asking to see Lua ram stats more often 2023-03-22 19:11:34 -04:00
rusefillc ac03ac76a6 Norman is asking to see Lua ram stats more often 2023-03-22 18:49:09 -04:00
Matthew Kennedy ec9b2a52e8
fix no-lua build (#4690) 2022-10-20 22:01:33 -04:00
Andrey 35a71f8960 test coverage and some magic constant refactoring 2022-08-21 15:22:22 -04:00
Matthew Kennedy b99d90b006
Start -> start (#4366) 2022-07-21 15:17:32 -04:00
rusefillc cad14d6541 #4308 progress 2022-07-14 12:36:55 -04:00
Matthew Kennedy 5d844b1ebe
Error handling cleanup (#4332)
* 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
2022-07-07 23:49:02 -04:00
rusefillc 82131e5572 Uniform reset pattern for all Lua adjustments #4308
no progress only preparation
2022-06-30 20:07:27 -04:00
Matthew Kennedy 9f15218089
remove system lua VM (#3864)
* well, that was a fun experiment

* don't need that file

* s

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2022-06-29 16:52:17 -04:00
Matthew Kennedy 67932483fb
use the right define (#4184) 2022-05-19 09:46:49 -04:00
rusefillc 4aea193684 Hellen wants Lua RAM 2022-05-18 23:14:48 -04:00
rusefillc ed6ed0d93e Air Conditioning Improvements #4054 2022-04-08 21:28:50 -04:00
rusefillc 7a675580a9 We have working runtime RAM detection - we shall use it for Lua #3970 2022-03-27 19:39:41 -04:00
rusefillc 970d63568f Revert "lua: TDD of enabling base lib"
This reverts commit d8b3712817.
2022-02-22 20:50:38 -05:00
rusefillc d80f3e0b80 Revert "lua: enabling string lib"
This reverts commit f4297bafe6.
2022-02-22 20:50:38 -05:00
rusefillc f4297bafe6 lua: enabling string lib 2022-02-22 17:31:44 -05:00
rusefillc d8b3712817 lua: TDD of enabling base lib 2022-02-22 16:25:41 -05:00
rusefi 89ea770f00 Lua CAN relay performance #3911 2022-02-13 00:07:36 -05:00
rusefillc 0d66a5873a Lua CAN relay performance #3911 2022-02-10 21:01:15 -05:00
rusefillc 3c73ca8dab random piece of https://github.com/dron0gus/rusefi/tree/f429-discovery-ram-dev 2022-01-09 22:42:24 -05:00
Andrey 940b04ab24 Let's always have TS structure so that unit tests can check values in outputChannels, kind of making outputChannels a god dump for state but whatever since Live View is coming 2021-12-07 20:18:47 -05:00
rusefillc 6d4b1e6020 proteus to have enlarged Lua
one step back
2021-11-30 22:35:29 -05:00
Matthew Kennedy 5eea2764f5
strtof (#3623)
* strtof

* do fewer divides
2021-11-26 18:39:45 -05:00
Scott Smith 9668626008
Move LuaThread to CCM, and shuffle a couple items out. (#3587)
Lua's stack probably doesn't need DMA.  Allows us to group more of our unused RAM together
in one place.
2021-11-21 20:35:03 -05:00
Matthew Kennedy bb57a4b084
detect more overflows with asan (#3582)
* overflow detector

* type list dynamic allocate

* fix the buffer length

* comment

* pr fb

* sanitize sim

* fix sim sanitizer bug

* didn't mean to turn off optimization for sim

* asan can do that, if you turn it on!

* cleaning
2021-11-20 01:38:39 -05:00
Scott Smith 823d9a07e0
Programmatically replace ENGINE() and CONFIG() with engine-> etc (#3565)
git grep -l -w ENGINE | xargs sed -i -r "s/ENGINE\(([]a-zA-Z_0-9.[]+)\)/engine->\1/g"

git grep -l -w CONFIG | xargs sed -i -r "s/([^a-zA-Z_])CONFIG\(([]a-zA-Z_0-9.[]+)\)/\1engineConfiguration->\2/g"
2021-11-17 03:54:21 -05:00
Matthew Kennedy a831bec797
update luaaa (#3540)
* lua update

* no stdlib mode

* turn off system luaaa for now since it makes luaaa sad

* let user heap do a little

* gitmodules

* memory shuffling

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-11-12 22:10:05 -05:00
Matthew Kennedy 57ad75aa98
load lua libs correctly (#3529)
* fix lua lib loading

* test
2021-11-11 13:44:13 -05:00
Matthew Kennedy 383d8caad9
Lua CAN RX (#3403)
* wiring

* static

* implementation

* comment

* unit tests happy

* guard

* guard smarter, not harder

* guard smarter not harder

* guard even smarter, not even harder

* don't need that
2021-10-24 08:37:04 -04:00
Matthew Kennedy ed7f7e693c
per-MCU lua size (#3339)
* per-MCU lua size

* simulator happy
2021-10-09 09:02:30 -04:00
rusefi 69ac9f7577 looks like a typo 2021-10-08 23:14:11 -04:00
rusefi e73ed5bcc5 luamemory does same but better 2021-10-08 14:48:16 -04:00
rusefillc 84c1b04de6 "luastats" command 2021-09-29 21:04:50 -04:00
Matthew Kennedy 0978722225
lua hook for timing add (#3260)
* load script

* test

* needs more rams

* embiggen stack

* init system lua from lua thread

* de-embiggen stack

* infra

* hook

* system needs a little more

* semicolon

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-09-23 23:50:47 -04:00
Matthew Kennedy f41a2715a3
system lua: load a script! (#3231)
* load script

* test

* needs more rams

* embiggen stack

* init system lua from lua thread

* de-embiggen stack

* system needs a little more

* memory

* om nom nom delicious memory

* how much more memory could it want

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-09-23 21:45:14 -04:00