Commit Graph

551 Commits

Author SHA1 Message Date
Lenar Khannanov 2347858d70 Feature 3014 migrating to gradle (#3079)
* feat: restructured autotest for migrating to gradle

* feat: restructured enum_to_string for migrating to gradle

* feat: restructured configuration_definition for migrating to gradle; fix: corrected build.xml

* feat: restructured logging for migrating to gradle; fix: corrected build.xml's

* feat: restructured romraider for migrating to gradle; fix: corrected build.xml's

* feat: restructured autotest for migrating to gradle

* feat: restructured enum_to_string for migrating to gradle

* feat: restructured configuration_definition for migrating to gradle; fix: corrected build.xml

* feat: restructured logging for migrating to gradle; fix: corrected build.xml's

* feat: restructured romraider for migrating to gradle; fix: corrected build.xml's

* feat: restructured autotest for migrating to gradle

* feat: restructured enum_to_string for migrating to gradle

* feat: restructured configuration_definition for migrating to gradle; fix: corrected build.xml

* feat: restructured logging for migrating to gradle; fix: corrected build.xml's

* feat: restructured romraider for migrating to gradle; fix: corrected build.xml's

* feat: restructured enum_to_string for migrating to gradle

* fix: corrected main build.xml

* fix: corrected main build.xml for romraider

* fix: corrected main build.xml for romraider

* feat: restructured autotest for migrating to gradle

* feat: restructured enum_to_string for migrating to gradle

* feat: restructured configuration_definition for migrating to gradle; fix: corrected build.xml

* feat: restructured logging for migrating to gradle; fix: corrected build.xml's

* feat: restructured romraider for migrating to gradle; fix: corrected build.xml's

* feat: restructured enum_to_string for migrating to gradle

* fix: corrected main build.xml

* fix: corrected main build.xml for romraider

* fix: corrected main build.xml for romraider

* feat: restructured enum_to_string for migrating to gradle

* feat: restructured configuration_definition for migrating to gradle; fix: corrected build.xml

* upd: get changes from master; fix: rebasing conflicts

* feat: restructured logging for migrating to gradle; fix: corrected build.xml's

* upd: up-to-master; fix: conflicts in build.xml's

* feat: restructured logging for migrating to gradle; fix: corrected build.xml's

* fix: conflicts from master

* feat: restructured shared_ui module for gradle; fix: main build.xml

* feat: restructured tools module; fix: main build.xml according to new structure

* feat: restructured modules in java_tools with build.xml; fix: corrected paths in build.xml's and .iml's according to the new structure; corrected path in gen_ptrace_enums.bat
2021-07-30 08:15:32 -04:00
rusefillc a364a5f105 https://github.com/rusefi/rusefi/issues/3053 2021-07-24 13:04:07 -04:00
Matthew Kennedy 0fde085a44 remove TS file read (#3004)
* remove

* more defines

* test

* lots of java

* s
2021-07-21 14:24:53 -04:00
rusefillc b42a02d774 docs 2021-07-19 01:12:49 -04:00
rusefillc 499ac6d9cb docs 2021-07-13 09:01:08 -04:00
David Holdeman 127a638502 ConfigDefinition stuff (#2940)
* add check for empty string

* try catching duplicates, while allowing same id on a pin

* js brain

* fixes

* fixes

* comment out

* build

* bump submo

* comment
2021-07-09 22:07:07 -04:00
rusefi 3472002b30 extra state validation is needed 2021-07-09 01:11:20 -04:00
rusefi 021a21a1b6 refactoring 2021-07-09 00:28:03 -04:00
rusefillc 5438bb5a4b human readable warning codes into TS #2898
preparation
2021-07-03 21:01:42 -04:00
rusefillc fcd1ede72f MRE same pin or not? #2897 2021-07-02 18:22:13 -04:00
rusefillc cc13245488 H64 uses GPIOD_12 twice why does it not fail? #2877 2021-07-02 13:15:48 -04:00
rusefillc ee6cbc20fc H64 uses GPIOD_12 twice why does it not fail? #2877
only code clean-up no functional changes
2021-07-02 13:11:11 -04:00
Matthew Kennedy 1e7b50bea9 multi dim arrays (#2867) 2021-06-26 20:16:31 -04:00
Matthew Kennedy 3bb93f2107 new parse: write C structs (#2852)
* fix offsets inside struct arrays

* style

* fix index writing for arrays of structs

* write TS context comments

* cleanup

* ts writer copies all lines input -> output

* Add _hex and _char definitions

* definition tostring

* replace variables

* wire up firing order replacement

* c struct writer

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-06-24 19:43:56 -04:00
Matthew Kennedy 55d2231ccc new parse: read rusefi.input, write almost-working output ini! (#2851)
* fix offsets inside struct arrays

* style

* fix index writing for arrays of structs

* write TS context comments

* cleanup

* ts writer copies all lines input -> output

* Add _hex and _char definitions

* definition tostring

* replace variables

* wire up firing order replacement

* jar
2021-06-24 16:36:30 -04:00
Matthew Kennedy 40466e1e6f new parse: write TS tooltip comments (#2850)
* fix offsets inside struct arrays

* style

* fix index writing for arrays of structs

* write TS context comments

* cleanup
2021-06-24 15:54:04 -04:00
Matthew Kennedy 8f1a55e122 new parsing: fix names of arrays of structs (#2849)
* fix offsets inside struct arrays

* style

* fix index writing for arrays of structs
2021-06-24 05:13:06 -04:00
David Holdeman 34095492d1 Yaml parsing refactor (#2842)
* throw error on unknown class

* build

* refactor, first try

* fix some errors

* fix some errors

* fix some errors

* fix some errors

* fix some errors

* build

* start at one more

* checks, minor refactor

* try toString

* check for null, idk

* try throwing class not found error

* oh duh

* oh duh numba two

* oh duh numba three

* build

* switch to switch_inputs

* switch output to outputs

* try

* build

* break loop when found

* fix maybe

* add missing s

* fix a bug

* move nothingname check

* catch other class

* use PinType
2021-06-21 19:10:25 -04:00
rusefillc 639ce86835 Yaml parsing refactor #2842 2021-06-20 22:55:48 -04:00
Matthew Kennedy f28c10e87f parse enums (#2832)
* enums and definitions

* bad merge

* txt format

* endBit

* handle 1-size arrays

* strings

* fix auto enum

* hard code 0 and 1

* jar

* jar
2021-06-20 17:35:31 -04:00
Matthew Kennedy c473f44904 fix dependencies (#2835) 2021-06-18 22:53:13 -04:00
Matthew Kennedy b6195fcc55 config gen layout fixes (#2829)
* grammar and libs

* gitignore

* parsing

* allow empty line as root statement

* tolerate #if

* config def changes

* s

* ant build

* workaround

* compiled tool

* grammar for unions

* parse unions

* layout logic

* fix union alignment

* union in config

* enable definition resolve

* testing

* zero init behavior

* bit fields respect custom options

* ts prints arrays correctly

* ts prints structs correctly

* auto round numbers

* cleanup

* bad merge

* bad merge

* jar

* kick
2021-06-18 16:58:04 -04:00
Matthew Kennedy 14e1aeac53 cleanup for easier ini compare (#2830)
* remove dot zero

* don't parse as double

* minor formatting

* Revert "don't parse as double"

This reverts commit f2427927f7df0f5fa27ed66c888009e3a3da8412.

* expect integer "1"

* jar
2021-06-18 15:43:16 -04:00
Matthew Kennedy d3d6c1694a Antlr 2 (#2823)
* grammar and libs

* gitignore

* parsing

* allow empty line as root statement

* tolerate #if

* config def changes

* s

* ant build

* workaround

* compiled tool

* grammar for unions

* parse unions

* layout logic

* fix union alignment

* union in config

* jar

* comment

* jar

* jar

* no prefix on root struct

* stray space

* normalize some enums
2021-06-18 12:31:23 -04:00
Matthew Kennedy 5ae4af23fe 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 ca35b393d4 smarter enum file parsing (#2765)
* enumInputFiles

* fix
2021-05-30 19:24:52 -04:00
rusefillc 50636dbe17 minor code refactoring, same exact logic 2021-05-20 20:02:25 -04:00
Matthew Kennedy f6ddc2c17c 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 4b69e7d441 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 b9ebb6b9b9 gen_config.sh code duplication #2451
David saw dead code
2021-05-11 22:00:36 -04:00
rusefillc 4f01d63520 gen_config.sh code duplication #2451
docs
2021-05-09 13:16:18 -04:00
David Holdeman 9eb4698184 Fix config CI (#2638)
* add yaml to inputFiles

* add jar
2021-05-06 23:12:05 -04:00
rusefillc 166afe76bb Refactoring, technical debt: export more of trigger attributes into triggers.txt file #2077 2021-05-06 10:44:14 -04:00
rusefillc 84441c1dcb h64 more better error handling 2021-05-01 15:40:27 -04:00
rusefillc c2721985b0 config definition better error handling 2021-05-01 15:12:39 -04:00
rusefillc 8ae708d68e helping build 2021-04-30 16:05:35 -04:00
rusefillc 3c4cdb4300 Refactoring, technical debt: export more of trigger attributes into triggers.txt file #2077 2021-04-30 01:45:35 -04:00
rusefillc c492d91c86 fresh enum2string 2021-04-30 01:32:53 -04:00
rusefillc de72978255 Refactoring, technical debt: export more of trigger attributes into triggers.txt file #2077 2021-04-30 01:05:23 -04:00
rusefillc 9825e011ee random clean-up 2021-04-30 00:22:40 -04:00
rusefillc 9f22f17dde random docs 2021-04-29 22:36:21 -04:00
rusefillc f47bac2417 code style 2021-04-29 22:36:20 -04:00
rusefillc 8bd064901c Refactoring, technical debt: export more of trigger attributes into triggers.txt file #2077
moving methods
2021-04-29 21:45:35 -04:00
rusefillc efa91e755f 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 f97e162e04 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 a577968dd9 Refactoring, technical debt: export more of trigger attributes into triggers.txt file #2077 2021-04-29 17:35:50 -04:00
rusefillc f80f165cdb Refactoring, technical debt: export more of trigger attributes into triggers.txt file #2077 2021-04-29 17:20:54 -04:00
rusefillc 5b02073b20 field type into header comment 2021-04-26 17:51:29 -04:00
rusefillc 8ba2658406 is gen_config invoked too often now? #2387 2021-03-12 22:25:03 -05:00
rusefillc dbe084bd22 is gen_config invoked too often now? #2387
unzip is complicated
2021-03-05 21:39:26 -05:00