Commit Graph

254 Commits

Author SHA1 Message Date
Matthew Kennedy 2c6b8ae3c6
parse with antlr (#2747)
* grammar and libs

* gitignore

* parsing

* allow empty line as root statement

* tolerate #if

* config def changes

* s

* ant build

* workaround

* compiled tool

* console should not build config def tool

* ugh the dependency tree is insane

* this should fix hw ci

* console build

* console jenkins script

* test

* Revert "test"

This reverts commit 73f2da50f990bee9b51a1f919e8fcc6b06327d9a.

* throw on parse failure

* jar

* fix #2821

* comment
2021-06-16 17:07:05 -04:00
Matthew Kennedy 8dec425cec
smarter enum file parsing (#2765)
* enumInputFiles

* fix
2021-05-30 19:24:52 -04:00
rusefillc fda22ad749 minor code refactoring, same exact logic 2021-05-20 20:02:25 -04:00
Matthew Kennedy 84368cae10
Config generator jar (#2716)
* fix test

* jar

* kick config

* guard stuff

* nmea

* nmea

* nmea

* c++ is type safe, which is good

* c++ is type safe
2021-05-17 12:32:59 +03:00
Matthew Kennedy 0ea1f15ca3
compile gpiochips as cpp (#2702)
* rename

* core

* structing

* more

* makefile

* structing

* 6240 compiles

* explicit cast instead of implicit narrowing

* 8888

* no extern C

* fix tests build

* extern "C"

* 33810

* 8860

* 33810

* linker

* unbreak master

* don't need that if compiling as C++

* bump config

* fix test

* tests

* unit tests bad merge

* build

* move subaru logic to cpp file

* cpp goodness

* hpp include

* this is probably the right thing to do

* simulator
2021-05-17 08:42:56 +03:00
rusefillc 969609f3e3 gen_config.sh code duplication #2451
docs
2021-05-09 13:16:18 -04:00
David Holdeman 550517eb6c
Fix config CI (#2638)
* add yaml to inputFiles

* add jar
2021-05-06 23:12:05 -04:00
rusefillc e32ec60dbe Refactoring, technical debt: export more of trigger attributes into triggers.txt file #2077 2021-05-06 10:44:14 -04:00
rusefillc d10115ae5c h64 more better error handling 2021-05-01 15:40:27 -04:00
rusefillc 2181b05013 config definition better error handling 2021-05-01 15:12:39 -04:00
rusefillc c8ddf05bb5 Refactoring, technical debt: export more of trigger attributes into triggers.txt file #2077 2021-04-30 01:45:35 -04:00
rusefillc 2575c8beeb Refactoring, technical debt: export more of trigger attributes into triggers.txt file #2077 2021-04-30 01:05:23 -04:00
rusefillc 23c04c9ddc random clean-up 2021-04-30 00:22:40 -04:00
rusefillc 2054f68edd random docs 2021-04-29 22:36:21 -04:00
rusefillc e7991b3626 code style 2021-04-29 22:36:20 -04:00
rusefillc 28560dbd79 Refactoring, technical debt: export more of trigger attributes into triggers.txt file #2077
moving methods
2021-04-29 21:45:35 -04:00
rusefillc afffdbd41c Refactoring, technical debt: export more of trigger attributes into triggers.txt file #2077
some pretty dead code and moving methods
2021-04-29 21:30:49 -04:00
rusefillc d445181a5e Refactoring, technical debt: export more of trigger attributes into triggers.txt file #2077
only extracting methods without any changes to the logic
2021-04-29 21:15:51 -04:00
rusefillc b0d2a7b8bd Refactoring, technical debt: export more of trigger attributes into triggers.txt file #2077 2021-04-29 17:35:50 -04:00
rusefillc 0594a5b305 field type into header comment 2021-04-26 17:51:29 -04:00
rusefillc 122fe16db7 is gen_config invoked too often now? #2387 2021-03-12 22:25:03 -05:00
rusefillc 06e05d821b is gen_config invoked too often now? #2387
unzip is complicated
2021-03-05 21:39:26 -05:00
rusefillc bc7ff44cb2 is gen_config invoked too often now? #2387
how about we do not trust anyone to properly handle EOL CRLF?
2021-03-05 20:35:53 -05:00
rusefi 40e9c4174f TS does not support zero length arrays? #2366 2021-02-16 17:25:52 -05:00
rusefillc 78c7cfe896 refactoring 2021-02-10 20:36:56 -05:00
rusefillc 9fbf16ce08 code generator: better handing of array size 1 2021-02-08 23:47:48 -05:00
rusefillc d5aa951a49 trying to help kinetis by reducing RAM usage back to where it was 2021-02-08 23:21:34 -05:00
rusefillc 02f08808ef spaces into multiplication 2021-02-01 12:11:00 -05:00
Matthew Kennedy 622a47c70b
Remove whitespace (#2246)
* don't tab in fields

* jar
2021-01-27 15:44:52 -05:00
Matthew Kennedy bed6819d8b
normalize configuration grammar (#2240)
* modify grammar

* add missing typedefs

* these typedefs are easier to handle in the parser

* make the existing parser work with the changed format

* grumble grumble jar

* we can deal with this part later

* handle later

* deal with this later
2021-01-26 21:56:47 -05:00
David Holdeman 6ead64e512
New board pin-mapping system (#2231)
* convert mre mapping

* convert mre mapping

* funny stuff for GPIOA_5

* move class next to id

* rough draft

* update scripts

* fix some errors

* fix some errors

* try

* check against null

* try amp

* try

* try

* fix some errors

* update scripts

* fix maybe

* fix maybe 2

* fix maybe

* fix maybe

* fix

* try

* fix

* use .equals

* use StringBuilder

* use instanceof

* use .max

* remove getMaxValue

* Suppress Warning

* major optimization

* fix maybe

* off-by-one error

* move yaml file loop

* add j2 connector

* add pads yaml

* check for null or empty

* add AV pins to pads

* forgot class

* move registerpins out of loop

* fix typo

* rebase

* check if string

* convert frankenso

* convert frankenso

* tyop

* missing class

* copy mre to skel

* remove prometheus yaml

* remove kinetis yaml

* build configDefinition

* replace var with string

* slight refactor
2021-01-22 12:03:14 -05:00
andreika-git f5820190cd
add #if/#else/#endif support to gen_config (#1928)
Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-11-05 07:59:47 -05:00
David Holdeman 8ebdf6fcdc
fix type mismatch (#1808)
* fix type mismatch

* comment

* change field

* switch to efitimesec16_t

* add typedef

* add type to configdefinition

* build
2020-09-19 17:17:44 -04:00
rusefi 88bedcb978 Tokenisation of multipler expressions #1735 2020-08-30 15:31:22 -04:00
rusefi 22a947d498 https://github.com/rusefi/web_backend/issues/97 2020-08-30 14:58:05 -04:00
rusefi 4b9f69b02e https://github.com/rusefi/web_backend/issues/97
base line unit test
2020-08-30 14:50:13 -04:00
rusefi ea052ed2b2 https://github.com/rusefi/web_backend/issues/73
toolset progress
2020-08-14 16:20:10 -04:00
rusefi 8bcc3aeb64 https://github.com/rusefi/web_backend/issues/73
toolset progress
2020-08-14 15:56:59 -04:00
rusefi 9d240fd536 toolset progress 2020-08-14 15:38:56 -04:00
rusefi 7882e9b2e1 toolset progress 2020-08-14 15:27:27 -04:00
rusefi e1d9e7a349 refactoring: static bad 2020-08-14 13:54:27 -04:00
rusefi 2b06b4a0fc Console commands are broken #1671 2020-08-05 19:51:43 -04:00
rusefi c20ee800b8 Console commands are broken #1671
code generator test coverage
2020-08-05 19:27:23 -04:00
rusefi 530439c424 TS SD integration #1653 2020-08-05 00:04:02 -04:00
rusefi ce091f2778 progress 2020-08-04 23:18:35 -04:00
rusefi b4a8d25909 progress 2020-08-04 22:51:27 -04:00
rusefi 5a83645e8c that's a tiny problem 2020-08-04 19:25:32 -04:00
rusefi af4dcc10f2 STRING support for java fields 2020-07-18 19:30:49 -04:00
rusefi a3393133a6 STRING support for java fields 2020-07-18 19:12:47 -04:00
rusefi dee2cc0a68 progress 2020-07-14 21:34:59 -04:00
rusefi 3f5ce4a7b4 migrate amazing idle from FSIO to less opaque TS #1581 2020-07-07 23:01:14 -04:00
rusefi 15731e29f9 something was broken? 2020-07-06 02:05:34 -04:00
rusefi 1deecb35a8 generated 2020-07-06 01:09:05 -04:00
rusefi d78089be81 SHORT_BOARDNAME becomes BUNDLE_NAME 2020-07-06 00:48:43 -04:00
rusefi a2b14cb297 trying to simplify things a bit 2020-07-05 23:09:43 -04:00
rusefi 0f62bcf804 steps towards Android 2020-07-03 10:49:14 -04:00
rusefi 83833df6d9 logging refactoring 2020-07-02 20:10:22 -04:00
rusefi 7f9dddc435 one step back 2020-07-02 16:28:07 -04:00
andreika-git 2ccae8669c
gen_config new hash (#1561)
Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-07-02 14:19:35 -04:00
andreika-git 1e8bebd5b3
Gen config refactor 2 (#1560)
* gen_config refactor, part II

* short board defines

* oops

* comment & undef

* define QUOTE

Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-07-02 12:33:31 -04:00
andreika-git 11f1988803
Gen config refactor 1 (#1558)
* fix signature

* gen_config refactor, part I

* Add empty cache.zip

Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-07-02 08:16:18 -04:00
rusefi c80a230e2b all fields should have TS info 2020-06-30 15:20:30 -04:00
rusefi 7b6da35920 all fields should have TS info 2020-06-30 15:19:11 -04:00
rusefi 1dd173b49e convention for fields without TS info 2020-06-29 21:54:30 -04:00
rusefi 811b616aaa convention for fields without TS info 2020-06-29 21:53:26 -04:00
andreika-git d5083d84ea
gen_live_documentation cache (#1544)
Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-06-28 11:50:51 -04:00
andreika-git 3635d0077a
gen_config cache (#1543)
* use cache for gen_config

* create dummy cache files to store them in github

* fix typo

* comment

* text

Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-06-28 10:00:11 -04:00
andreika-git 76bfbf62d6
gen_config is no more lazy (#1541)
* gen_config: replace lazyFile with timestamp checks

* board_generator: use LazyFile

* fix romraider and TOTAL_CONFIG_SIZE

* merge

Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
2020-06-27 14:23:51 -04:00
rusefi 81756b2e94 minor refactoring & docs 2020-06-27 12:46:01 -04:00
rusefi b5d1ce124d minor refactoring & docs 2020-06-27 12:45:18 -04:00
rusefi ad3367ea1b Only two .ini files got auto-generated #1519 2020-06-19 00:28:50 -04:00
rusefi c27dfae2bb TS plugin 2020-06-17 23:19:07 -04:00
rusefi 1221de56a4 TS project: hide all invalid entries fix #1505 2020-06-17 20:51:29 -04:00
rusefi cbc7d4a73e TS project: hide all invalid entries #1505 2020-06-17 20:33:17 -04:00
rusefi 127dd67838 restoring ldmp 2020-06-17 19:03:10 -04:00
rusefi e01a260552 TS project: hide all invalid entries #1505 2020-06-17 18:48:48 -04:00
rusefi 05932f9e75 fixing stuff by reducing the gap between Windows and Linux scripts 2020-06-16 14:12:27 -04:00
rusefi a7aea821b7 something is broken somewhere :( 2020-06-14 18:01:23 -04:00
rusefi 63ab889e2f happy new year 2020-06-09 20:08:16 -04:00
rusefi 4429e3c13f TS plugin progress 2020-06-03 17:28:14 -04:00
rusefi 7bf4c362d0 progress 2020-05-31 14:05:03 -04:00
rusefi 1053f98985 char type java generation 2020-05-25 13:57:34 -04:00
rusefi 39671f3c33 "-skip" is probably not needed anymore 2020-05-23 19:39:04 -04:00
rusefi f4169b0819 progress with _hex and _16_hex 2020-05-22 01:23:38 -04:00
rusefi 716b442c56 why not? 2020-05-09 00:49:57 -04:00
rusefi 75d76f850d progress - firing order logic to be re-evaluated every time we generate 2020-05-04 23:54:28 -04:00
rusefi 48fc6d91d9 better location 2020-05-04 23:38:19 -04:00
rusefi f2e7e825be screen generator 2020-04-29 22:34:51 -04:00
rusefi ad09177105 code generator progress 2020-04-12 23:44:14 -04:00
rusefi 1322c1dfac composition instead of inheritance 2020-04-12 23:43:25 -04:00
rusefi 302fc02545 processor progress 2020-04-12 23:32:22 -04:00
rusefi 2decb5f196 that's how this works now 2020-04-12 23:24:14 -04:00
rusefi 04a5a39858 documentation 2020-04-11 22:08:04 -04:00
rusefi 5c2794c2e0 critical error usability improvements 2020-03-28 21:28:32 -04:00
rusEfi d576b8e627 live docs: whitespace support 2020-02-22 15:37:58 -05:00
rusefi 64c83fa4cd he owes me one now 2020-02-14 23:03:26 -05:00
rusefi 7e02210cb8 adding flexibility 2020-02-14 22:44:59 -05:00
rusefi 1ac264acc0 unit test refactoring 2020-02-14 22:27:37 -05:00
rusefi a62340b8b9 gen_config should fail with misaligned integers fix #1115 2020-02-02 13:24:32 -05:00
rusefi 3f3cddbf01 Config generation handles padding after packed booleans (bits) wrong
fix #1057
2019-12-14 16:11:31 -05:00