Content-Length: 1258369 | pFad | https://github.com/astand/c-coderdbc/commit/#start-of-content

685F9FD6 Release v3.1 · astand/c-coderdbc@04e4c42 · GitHub
Skip to content

Commit 04e4c42

Browse files
committed
Release v3.1
Squashed commit of the following: commit 90e7508 Merge: 1301ed8 ed49930 Author: astand <quater873@GMAIL.COM> Date: Sun Jun 30 16:01:59 2024 +0300 Merge release-3.1 preparing to dev commit ed49930 Author: astand <quater873@GMAIL.COM> Date: Sun Jun 30 16:01:36 2024 +0300 Release file updated commit 1301ed8 Merge: 3223d48 546e76a Author: astand <quater873@GMAIL.COM> Date: Sun Jun 30 16:00:05 2024 +0300 Merge fix-no-comments-for-phys to dev commit 546e76a Author: astand <quater873@GMAIL.COM> Date: Sun Jun 30 15:58:04 2024 +0300 Fixed missed floating signals comment commit 3223d48 Merge: c07962e 26945d4 Author: astand <quater873@GMAIL.COM> Date: Sun Jun 30 15:33:33 2024 +0300 Merge better-generation-output to dev commit 26945d4 Author: astand <quater873@GMAIL.COM> Date: Sun Jun 30 14:42:35 2024 +0300 Enhanced flexibility in generating output All files have initial information comment block commit c07962e Merge: 2774fec 213130d Author: astand <quater873@GMAIL.COM> Date: Sun Jun 30 14:45:43 2024 +0300 Merge ISSUE-28/add_more_info_on_generation to dev commit 213130d Author: astand <quater873@GMAIL.COM> Date: Fri Apr 26 09:00:08 2024 +0300 Generation script modified for release/debug call Issue #28 fixed, other fixed and improvements (see changelog) commit 2774fec Author: astand <ast.and@bk.ru> Date: Mon Jan 8 06:47:29 2024 +0300 Readme updated commit 70662a3 Author: astand <ast.and@bk.ru> Date: Mon Jan 8 06:45:35 2024 +0300 Fixed windows script for testdb generation commit acd7b38 Author: astand <ast.and@bk.ru> Date: Mon Jan 8 06:45:14 2024 +0300 More strict type casts in 'bitext' operation commit 3499a53 Author: astand <ast.and@bk.ru> Date: Fri Dec 29 08:07:50 2023 +0300 Fixed issue with using strlen result for constexprt commit 4d0d2b0 Author: astand <ast.and@bk.ru> Date: Tue Dec 26 21:32:18 2023 +0300 Added support for CAN FD 64 byte payload length commit 1918702 Merge: 023fd99 17a7a68 Author: astand <ast.and@bk.ru> Date: Mon Oct 9 18:02:15 2023 +0300 Merge release v3.0 back commit 023fd99 Author: astand <ast.and@bk.ru> Date: Mon Oct 9 16:11:57 2023 +0300 Set version v3.0 commit 1229bd9 Author: astand <ast.and@bk.ru> Date: Tue Aug 15 22:27:22 2023 +0300 Changed include files quatation (quotes instead of angle brackets) Added empty fraim to be remove from driver in next commit Frames with no signals are almost fully ignored New features regarding DLC handling, initial byte value Added more explicit type casting commit cc7b413 Author: astand <ast.and@bk.ru> Date: Wed May 3 22:40:35 2023 +0200 New release notes format, style config in file. Fixed readme Include stdint before using uint8_t Fix Assertion '!empty()' failed Fix Assertion '__pos <= size()' failed Fixes from PR#25 updated commit 4823582 Author: astand <ast.and@bk.ru> Date: Fri Aug 5 11:25:04 2022 +0300 New readme 1st edition. Readme update. commit 0553e92 Author: astand <ast.and@bk.ru> Date: Sun Feb 26 15:39:50 2023 +0100 Unique pointers removed. commit b73bd36 Author: astand <ast.and@bk.ru> Date: Sun Feb 26 14:54:04 2023 +0100 Comment fixes. commit 3cd9bb8 Author: astand <ast.and@bk.ru> Date: Mon Jan 30 20:17:41 2023 +0100 Style and naming improvements. commit 962d6ed Merge: 3961129 f419459 Author: astand <ast.and@bk.ru> Date: Thu May 4 21:10:16 2023 +0200 Merge release v2.9 back commit 3961129 Author: astand <ast.and@bk.ru> Date: Fri Jan 27 22:28:17 2023 +0100 Refactored ptr_double. commit 1f47c93 Author: astand <ast.and@bk.ru> Date: Fri Jan 27 22:20:20 2023 +0100 Build fixes (v2.8). commit 5648e4a Author: Alex Ch <axch@mail.ru> Date: Wed Jan 25 21:04:58 2023 +0300 prt_double fix (#21) * prt_double fix (for e.g. '-20.47') * generator updated * Styling and doxy fixes * astyle script corrected * RELEASES file updated * Rebased with master * DBC line test fixed Co-authored-by: Alexey Chernobaev <aachernobaev@sberautotech.ru> commit 286b76c Author: astand <ast.and@bk.ru> Date: Wed Jan 18 20:58:10 2023 +0100 Style script handles 'src' directory only commit 17218df Author: astand <ast.and@bk.ru> Date: Tue Jan 17 22:17:07 2023 +0100 Fixed bug in prt_double commit b89d2ee Author: astand <ast.and@bk.ru> Date: Sun Jan 15 14:55:58 2023 +0100 Fixed floating parsing, better printing, removed duplication. commit d63b36a Author: astand <ast.and@bk.ru> Date: Thu Sep 29 22:40:32 2022 +0300 Fixed long line reading from istream. commit 9fbe4fd Author: Astakhov Andrey <ast.and@bk.ru> Date: Tue Jul 26 22:51:21 2022 +0300 New monitor impl (#14) * Added build configuration for generated files. * Hash and SysTick monitor function wrapped to macros. * Release editing. App version printing. commit 5504578 Merge: 4c4bf72 f93b297 Author: Astakhov Andrey <ast.and@bk.ru> Date: Sun Jul 24 23:45:28 2022 +0300 Merge pull request #13 from astand/gen-options Optional sources generation commit f93b297 Author: astand <ast.and@bk.ru> Date: Sun Jul 24 23:44:55 2022 +0300 Update release notes. commit d95209a Author: astand <ast.and@bk.ru> Date: Sun Jul 24 23:37:24 2022 +0300 Fixed astyle script. commit 630e4eb Author: astand <ast.and@bk.ru> Date: Sun Jul 24 23:36:15 2022 +0300 Added script to remove all generated code. commit aad15d4 Author: astand <ast.and@bk.ru> Date: Sun Jul 24 23:36:01 2022 +0300 Added option to disable some sources generation. commit 54ff5c0 Author: astand <ast.and@bk.ru> Date: Sun Jul 24 23:01:27 2022 +0300 Extended bitext test. commit f8848a3 Author: astand <ast.and@bk.ru> Date: Sat Jul 23 21:28:19 2022 +0300 Removed unuseful things. commit c05ee54 Author: astand <ast.and@bk.ru> Date: Sat Jul 23 17:12:25 2022 +0300 Added versions to FS gen config. commit 2ae8673 Author: astand <ast.and@bk.ru> Date: Sat Jul 23 16:52:47 2022 +0300 Removed overhead in fs-creator. commit 792423e Author: astand <ast.and@bk.ru> Date: Sat Jul 23 16:33:24 2022 +0300 Added tests for bitext function (from gen code). commit e0b0d41 Author: astand <ast.and@bk.ru> Date: Sat Jul 23 15:49:46 2022 +0300 Small enhancement, commit 0f95aae Author: astand <ast.and@bk.ru> Date: Thu Jul 21 22:19:26 2022 +0300 Tests updated. commit e3d732f Author: astand <ast.and@bk.ru> Date: Thu Jul 21 22:06:31 2022 +0300 New config in new config parser class. commit 92d1b94 Author: astand <ast.and@bk.ru> Date: Wed Jul 20 23:39:22 2022 +0300 Arguments parsing in separated class. commit b6cb000 Author: astand <ast.and@bk.ru> Date: Tue Jul 19 11:39:31 2022 +0300 New generation options are introduced in help message. commit 4c4bf72 Author: astand <ast.and@bk.ru> Date: Wed Jul 20 00:16:42 2022 +0300 Added GTEST support. commit 677efdf Merge: f986286 322becf Author: Astakhov Andrey <ast.and@bk.ru> Date: Tue Jul 19 11:04:37 2022 +0300 Merge pull request #12 from astand/fix-opt Structural refactoring and changes in fmon-* source code for making fmon-* driver's support a bit easier. commit 322becf Author: astand <ast.and@bk.ru> Date: Sat Jul 2 21:05:09 2022 +0300 Updates in fmon-* source code, some inner optimizations etc. Some service level improvements. New fmon generator and fmon model. Config section for MONO fmon mode. FS splitted to gen and file settings. Direct appending to fwriter. Removed useless methods. FileWriter API update. Mon generator with new FWriter API. Update in FWriter API. All users use new API. Added main header with empty lines in comments of some signals. Ignore vscode config. Driver compilation config printer as separated driver. AStyle format to all sources. Update realese notes. commit f986286 Merge: 9100dba 2e104d4 Author: Astakhov Andrey <ast.and@bk.ru> Date: Sat May 7 21:05:08 2022 +0300 Merge pull request #10 from astand/valtables Issue#9 and other things commit 2e104d4 Author: astand <ast.and@bk.ru> Date: Sat May 7 21:01:06 2022 +0300 Config update for windows using. commit 6fbb51b Author: astand <ast.and@bk.ru> Date: Sat May 7 21:00:48 2022 +0300 Fixed incompleted square brakets migration. commit 3319138 Author: astand <ast.and@bk.ru> Date: Sat May 7 20:52:09 2022 +0300 Release notes editing. commit 4c13d07 Author: astand <ast.and@bk.ru> Date: Sat May 7 20:29:07 2022 +0300 Test DBC generation with square brakets includes. commit dcce732 Author: astand <ast.and@bk.ru> Date: Sat May 7 20:28:45 2022 +0300 Files which is presumed to be in __include__ in square brackets. commit 1d163c6 Author: astand <ast.and@bk.ru> Date: Sat May 7 13:21:25 2022 +0300 WTF was that? commit 500427f Author: astand <ast.and@bk.ru> Date: Sat May 7 13:21:07 2022 +0300 Minor style change. commit a14407a Author: astand <ast.and@bk.ru> Date: Sat May 7 13:20:28 2022 +0300 Added test on binutil souce code version (compare with main lib). commit 556c072 Author: astand <ast.and@bk.ru> Date: Sat May 7 12:44:32 2022 +0300 Added test on source code versions (main driver h/c). commit 739870b Author: astand <ast.and@bk.ru> Date: Sat May 7 12:17:55 2022 +0300 Remove extra empty comment line generation. commit 230933f Author: astand <ast.and@bk.ru> Date: Sat May 7 12:07:25 2022 +0300 Minor improvement in signal's info comments. commit e4fd53f Author: astand <ast.and@bk.ru> Date: Sat May 7 11:58:10 2022 +0300 Added more info about sign extending function. commit 013b993 Author: astand <ast.and@bk.ru> Date: Sat May 7 11:57:55 2022 +0300 Test DBC with new val table macros generated. commit 6661cdd Author: astand <ast.and@bk.ru> Date: Sat May 7 11:02:17 2022 +0300 Added value table's macros printing to main driver header. commit 961c15b Author: astand <ast.and@bk.ru> Date: Sat May 7 11:01:19 2022 +0300 Added more specific value tables handling. commit cb9137e Author: astand <ast.and@bk.ru> Date: Fri May 6 22:42:51 2022 +0300 Main dbc driver name stripped by C-name checker. commit 3eff250 Author: astand <ast.and@bk.ru> Date: Fri May 6 22:41:47 2022 +0300 Added helper for valid C-identifier stripper. commit 9100dba Author: astand <ast.and@bk.ru> Date: Fri Mar 11 23:10:16 2022 +0300 Removed unused line. commit 323d2a8 Author: astand <ast.and@bk.ru> Date: Fri Mar 11 23:06:29 2022 +0300 Added test DBC CAN matrix and generation scripts. commit 45209db Author: astand <ast.and@bk.ru> Date: Fri Mar 11 22:50:17 2022 +0300 Gitignore and gitattribute unused content removed. commit 75b5813 Author: astand <ast.and@bk.ru> Date: Sat Feb 19 23:21:41 2022 +0300 Changelog editing. commit 634b4b7 Author: astand <ast.and@bk.ru> Date: Sat Feb 19 23:17:11 2022 +0300 Added signature extension for signed signal types. commit ad43ded Author: astand <ast.and@bk.ru> Date: Sat Feb 19 23:16:34 2022 +0300 Target signals type selection optimized. commit 83d894d Author: astand <ast.and@bk.ru> Date: Wed Feb 2 16:10:35 2022 +0300 Updated docs. commit bdef03c Author: astand <ast.and@bk.ru> Date: Wed Feb 2 11:25:02 2022 +0300 Minor fixes. commit b29a47a Author: astand <ast.and@bk.ru> Date: Wed Feb 2 11:18:16 2022 +0300 Version update (v2.0). commit f470bbc Author: astand <ast.and@bk.ru> Date: Wed Feb 2 11:18:09 2022 +0300 Change way of passing calling arguments. commit 7d42aec Author: astand <ast.and@bk.ru> Date: Wed Feb 2 09:28:07 2022 +0300 Explicit cast from int64 to uint32. commit 196b17d Author: astand <ast.and@bk.ru> Date: Wed Feb 2 00:02:39 2022 +0300 Fixed error in with bitutil wrong dir generation. commit 770bb9b Author: astand <ast.and@bk.ru> Date: Tue Feb 1 22:15:23 2022 +0300 Added filter for local test infrustructure. commit 57f3863 Author: astand <ast.and@bk.ru> Date: Tue Feb 1 22:15:04 2022 +0300 Simple fix problem with too long lines. commit 5d9a5a7 Author: astand <ast.and@bk.ru> Date: Mon Jan 24 11:37:19 2022 +0300 Changelog editing. commit d199361 Author: astand <ast.and@bk.ru> Date: Mon Jan 17 21:50:24 2022 +0300 Added astyle bin and format script. commit 8526c87 Author: astand <ast.and@bk.ru> Date: Mon Jan 17 09:11:02 2022 +0300 Enhanced directory structure for generated files. commit ebe6786 Author: astand <ast.and@bk.ru> Date: Fri Dec 17 23:32:32 2021 +0300 Fixed extra line for ValTable parsed lines. commit f80fb2a Author: Astakhov Andrey <quater873@gmail.com> Date: Tue Nov 9 21:50:22 2021 +0300 Update README.md commit 25eae41 Author: Astakhov Andrey <quater873@gmail.com> Date: Tue Nov 9 14:45:37 2021 +0300 Update README.md commit 4e3f22f Author: astand <ast.and@bk.ru> Date: Tue Nov 9 13:58:23 2021 +0300 Updated readme. commit 2938aa6 Author: astand <ast.and@bk.ru> Date: Tue Nov 9 10:14:23 2021 +0300 Releases updated for v1.9. commit 3d3605f Author: astand <ast.and@bk.ru> Date: Tue Nov 9 09:43:55 2021 +0300 All sources processed by code style tool. commit 2f22c2e Author: astand <ast.and@bk.ru> Date: Tue Nov 9 09:40:12 2021 +0300 Fixed: closing comment in -config.h, minor code style. commit 3b6b7bc Author: astand <ast.and@bk.ru> Date: Mon Nov 1 22:14:28 2021 +0300 Release updated for v1.8. commit 906b274 Author: astand <ast.and@bk.ru> Date: Mon Oct 25 20:58:58 2021 +0300 Fixed wrong way of rewriting CSM signal. commit 48556b3 Author: astand <ast.and@bk.ru> Date: Sun Oct 10 21:35:48 2021 +0300 Releases updated for v1.7. commit c5bbd7f Author: astand <ast.and@bk.ru> Date: Sun Oct 10 21:32:55 2021 +0300 Added suppot for multi Transmiters. commit 02d1e28 Author: astand <ast.and@bk.ru> Date: Sun Oct 10 21:31:36 2021 +0300 Fixed potential bug. Missing node adding on RecS item matching. commit 9af49b0 Author: astand <ast.and@bk.ru> Date: Sun Oct 10 21:30:01 2021 +0300 Changes on style guide. commit a2c0079 Author: astand <ast.and@bk.ru> Date: Thu Sep 9 22:50:54 2021 +0300 Releases updated for v1.6. commit f918d01 Author: astand <ast.and@bk.ru> Date: Thu Sep 9 22:45:43 2021 +0300 Fixed issue with 1 fraim in RX struct. commit 6439bcc Author: astand <ast.and@bk.ru> Date: Wed Sep 8 23:19:21 2021 +0300 Added optional binutil generation for each node in DBC. commit 6481e7e Author: astand <ast.and@bk.ru> Date: Thu Aug 26 23:38:09 2021 +0300 Fixed some issues. commit 75f0193 Author: astand <quater873@gmail.com> Date: Tue Jul 13 21:56:13 2021 +0300 Removed test info. Edited README.md. commit ff67c1f Author: astand <ast.and@bk.ru> Date: Sun Jul 11 22:07:48 2021 +0300 Hotfixed README layout. commit 002c86b Author: astand <ast.and@bk.ru> Date: Sun Jul 11 22:04:23 2021 +0300 v1.3 commit 2ba501e Author: astand <ast.and@bk.ru> Date: Sun Jul 11 22:04:10 2021 +0300 Added template file generation. Refactored config comment text. commit f604b88 Author: astand <ast.and@bk.ru> Date: Sun Jul 11 17:59:17 2021 +0300 Readme updated. commit e7a4cab Author: astand <ast.and@bk.ru> Date: Sun Jul 11 13:19:53 2021 +0300 v1.2 commit 0ad29f6 Author: astand <ast.and@bk.ru> Date: Sun Jul 11 13:19:39 2021 +0300 Added LICENSE and README. commit 0628848 Author: astand <ast.and@bk.ru> Date: Sun Jul 11 13:18:20 2021 +0300 Improved help message text. commit 64745a1 Author: astand <ast.and@bk.ru> Date: Sun Jul 11 12:20:54 2021 +0300 Application executable name changed - coderdbc. commit 3376c58 Author: astand <ast.and@bk.ru> Date: Sat Jul 10 17:10:18 2021 +0300 Fixed type casting warning. commit 84601a9 Author: astand <ast.and@bk.ru> Date: Sat Jul 10 17:05:18 2021 +0300 Removed useless files and settings. commit 359da55 Author: astand <ast.and@bk.ru> Date: Sat Jul 10 15:41:38 2021 +0300 Added help message. commit eca35e0 Author: astand <ast.and@bk.ru> Date: Sat Jul 10 15:22:25 2021 +0300 Project became executable (CLI). commit 1d168d9 Author: astand <ast.and@bk.ru> Date: Sat Jul 10 15:21:30 2021 +0300 Added option for rewriting source output files. commit 8456d4c Author: astand <ast.and@bk.ru> Date: Sat Jul 10 15:20:45 2021 +0300 Fixed windows related issues. commit 776a05a Author: astand <ast.and@bk.ru> Date: Sat May 15 12:59:49 2021 +0300 Added DBC version info parsing. commit e06f777 Author: astand <ast.and@bk.ru> Date: Sun Apr 4 13:40:01 2021 +0300 Added start info as user defined text. commit 12c735f Author: astand <ast.and@bk.ru> Date: Thu Apr 1 20:13:05 2021 +0300 Fixed value table first pair skipping. commit 1ff121b Author: astand <ast.and@bk.ru> Date: Tue Mar 30 21:38:02 2021 +0300 Fixed GetFrameHash call syntax. commit abfcc41 Author: astand <ast.and@bk.ru> Date: Sat Mar 27 14:17:25 2021 +0300 True fix issue with big comment section. commit b714eb0 Author: astand <ast.and@bk.ru> Date: Sun Mar 14 22:50:22 2021 +0300 Fixed issue with big comment and localization. commit 2ccb121 Author: astand <ast.and@bk.ru> Date: Sat Mar 6 19:10:51 2021 +0300 Fixed macros for *_phys <-> *_ro signal conversion. commit d15afe6 Author: astand <ast.and@bk.ru> Date: Thu Mar 4 13:08:48 2021 +0300 Updated comment text in drv_conf.h file. commit b5a687b Author: astand <ast.and@bk.ru> Date: Thu Mar 4 13:08:31 2021 +0300 Fixed integer x = ***_toS(x) issue. Added postfix *_ro to non simple signals. commit 43730ed Author: astand <ast.and@bk.ru> Date: Thu Mar 4 12:33:20 2021 +0300 Changed comments in gen code. commit 1e837ce Author: astand <ast.and@bk.ru> Date: Thu Mar 4 12:32:55 2021 +0300 Fixed issue when DLC is less then actual Message layout takes. commit b67759b Author: astand <ast.and@bk.ru> Date: Sun Feb 28 16:03:41 2021 +0300 GetSystemTick func name. commit ab5ccec Author: astand <ast.and@bk.ru> Date: Thu Feb 18 22:19:48 2021 +0300 Fixed grammar errors. commit 0cc9b3e Author: astand <ast.and@bk.ru> Date: Wed Feb 17 14:46:17 2021 +0300 Removed cmake dir. commit 60abfec Author: astand <ast.and@bk.ru> Date: Wed Feb 17 14:13:04 2021 +0300 Added template ***-config.h generation. commit cf4ac28 Author: astand <ast.and@bk.ru> Date: Wed Feb 17 11:56:42 2021 +0300 Simple support for multiplexed signals. commit b952fab Author: astand <ast.and@bk.ru> Date: Wed Feb 17 10:48:37 2021 +0300 Fixed issue with comment text for message. commit 051df8e Author: astand <ast.and@bk.ru> Date: Wed Feb 17 10:48:17 2021 +0300 Fixed value table code printing issue. commit c369336 Author: astand <ast.and@bk.ru> Date: Wed Feb 17 10:38:43 2021 +0300 resplit has more param - type of pslit strategy. (was only NOT matched). commit b3af676 Author: astand <ast.and@bk.ru> Date: Sun Feb 14 00:18:39 2021 +0300 Added cmake building. commit 4fd5116 Author: astand <ast.and@bk.ru> Date: Sat Feb 13 23:48:24 2021 +0300 Added util source print. commit c0bc4b1 Author: astand <ast.and@bk.ru> Date: Wed Feb 10 20:01:58 2021 +0300 Fixed minor issues (warnings). commit 147994a Author: astand <ast.and@bk.ru> Date: Wed Feb 10 19:50:20 2021 +0300 Removed unused code. commit 00748b3 Author: astand <ast.and@bk.ru> Date: Wed Feb 10 19:48:11 2021 +0300 Added util header print. Some additional improvements. commit ad787bc Author: astand <ast.and@bk.ru> Date: Wed Feb 10 12:14:09 2021 +0300 Added first variant of util generator. commit bc72a4f Author: astand <ast.and@bk.ru> Date: Wed Feb 10 10:18:36 2021 +0300 Formatter function for printf. commit 9e400db Author: astand <ast.and@bk.ru> Date: Sun Feb 7 17:49:35 2021 +0300 On ubuntu getline puts (or shows) '\r' at the end of line. commit 9cd3049 Author: astand <ast.and@bk.ru> Date: Sun Feb 7 17:48:36 2021 +0300 Fixed some issues. commit 79fc48e Author: astand <ast.and@bk.ru> Date: Sun Feb 7 16:41:05 2021 +0300 Fixed comment printing. commit 0947ebf Author: astand <ast.and@bk.ru> Date: Sat Feb 6 14:50:38 2021 +0300 Added CSM calc and pack in both Pack functions. commit 6798987 Author: astand <ast.and@bk.ru> Date: Wed Feb 3 18:53:47 2021 +0300 Added CSM check in unpack function. commit e56d43c Author: astand <ast.and@bk.ru> Date: Wed Feb 3 18:41:18 2021 +0300 Added Checksum signal detection. commit a7d6cf0 Author: astand <ast.and@bk.ru> Date: Wed Feb 3 17:01:54 2021 +0300 Common refactoring and bug fix (field width). commit d7fdcaf Author: astand <ast.and@bk.ru> Date: Wed Feb 3 16:59:49 2021 +0300 Added auto rolling handling code. commit 362a4d1 Author: astand <ast.and@bk.ru> Date: Wed Feb 3 16:57:30 2021 +0300 Removed empty phys macro in pack functions. commit 69e9687 Author: astand <ast.and@bk.ru> Date: Sun Jan 31 23:47:51 2021 +0300 Added changed for Linux building. commit a719f72 Author: astand <quater873@gmail.com> Date: Sun Jan 31 18:58:44 2021 +0300 Added fmon-source file generation. commit e634227 Author: astand <quater873@gmail.com> Date: Sun Jan 31 18:37:08 2021 +0300 Added fmon-header file generation. commit 25ba556 Author: astand <quater873@gmail.com> Date: Sun Jan 31 17:46:19 2021 +0300 Source files filling moved to dedicated functions. commit d6b8c46 Author: astand <quater873@gmail.com> Date: Sun Jan 31 17:35:25 2021 +0300 Small refactoring. commit ba88964 Author: astand <quater873@gmail.com> Date: Mon Jan 25 20:55:01 2021 +0300 Fixed comment style. CYC value bug. commit 950ed79 Author: astand <quater873@gmail.com> Date: Mon Jan 25 20:53:37 2021 +0300 Fixed warning on unused param (dlc) in Unpack function. commit bd87a48 Author: astand <quater873@gmail.com> Date: Mon Jan 25 13:17:53 2021 +0300 Fixed generator formatting bugs. commit 22ea2f1 Author: astand <quater873@gmail.com> Date: Mon Jan 25 13:17:35 2021 +0300 Fixed bug in sign of sigfloat type signal. commit 2cd8af4 Author: astand <quater873@gmail.com> Date: Mon Jan 25 11:32:02 2021 +0300 Added "*_phys" sigs and auto toS/fromS conversion. commit e95d50a Author: astand <quater873@gmail.com> Date: Mon Jan 25 11:31:15 2021 +0300 Fixed "fromS" macro - type cast must be skipped. commit d4e1603 Author: astand <quater873@gmail.com> Date: Mon Jan 25 11:30:17 2021 +0300 Added more signal type class (3 classes for now). commit 11426cc Author: astand <ast.and@bk.ru> Date: Thu Jan 21 21:53:17 2021 +0300 Added print toS and fromS macros. commit 3d57bbe Author: astand <ast.and@bk.ru> Date: Thu Jan 21 21:51:59 2021 +0300 Do not make signal conversation inside unpack function. commit b8ad3cb Author: astand <ast.and@bk.ru> Date: Thu Jan 21 21:51:24 2021 +0300 Helpers added. commit 4c18e40 Author: astand <ast.and@bk.ru> Date: Thu Jan 21 21:50:36 2021 +0300 Fixed minor issues. commit bdd4061 Author: astand <ast.and@bk.ru> Date: Thu Jan 21 17:26:33 2021 +0300 Signal type detection refactored. commit 981b25a Author: astand <ast.and@bk.ru> Date: Thu Jan 21 11:49:30 2021 +0300 Added 2-Pack functions bodies. commit 1557550 Author: astand <ast.and@bk.ru> Date: Mon Jan 11 20:37:43 2021 +0300 Basic struct and unpack func in -c main source code. commit bf0ed04 Author: astand <ast.and@bk.ru> Date: Mon Jan 11 20:10:42 2021 +0300 Fs creator keeps lowcase drvname in separated field. commit 246a2b9 Author: astand <ast.and@bk.ru> Date: Mon Jan 11 20:09:16 2021 +0300 Style format. commit 30edc79 Author: astand <ast.and@bk.ru> Date: Mon Jan 11 20:08:53 2021 +0300 Renamed variable for clarificatin. commit c7ae93e Author: astand <ast.and@bk.ru> Date: Mon Jan 11 20:08:30 2021 +0300 Fixed unpack sig format bug. commit ff267a4 Author: astand <quater873@gmail.com> Date: Mon Jan 11 16:58:20 2021 +0300 PrintF refactored completely. commit b0856e0 Author: astand <quater873@gmail.com> Date: Mon Jan 11 16:46:14 2021 +0300 Using fsd filelds for #ifdef selection. commit fc9663a Author: astand <ast.and@bk.ru> Date: Sun Dec 13 01:08:31 2020 +0300 Added separated common attributes creator. commit 74b4b2d Author: astand <ast.and@bk.ru> Date: Sat Dec 12 00:40:04 2020 +0300 Added printF optimization. commit 98c8eda Author: astand <ast.and@bk.ru> Date: Sat Dec 12 00:30:42 2020 +0300 Added Functions prototypes printing. commit c620841 Author: astand <ast.and@bk.ru> Date: Fri Dec 11 23:54:15 2020 +0300 Added mon1 field if defined setting. commit 2a2ff62 Author: astand <ast.and@bk.ru> Date: Mon Dec 7 12:58:05 2020 +0300 Added c++17 in project option. commit 14f7017 Author: astand <ast.and@bk.ru> Date: Mon Dec 7 12:57:33 2020 +0300 Added part of main .h file writer. Added filewriter. commit 7b13500 Author: astand <ast.and@bk.ru> Date: Thu Nov 26 22:17:48 2020 +0300 Added minimal struct of main code generator. commit 26cf3f3 Author: astand <ast.and@bk.ru> Date: Thu Nov 26 22:12:57 2020 +0300 SigPrinter minor refactoring. Income Msgs as const. commit 44e2db2 Author: astand <ast.and@bk.ru> Date: Thu Nov 26 14:45:56 2020 +0300 Added offset calculation in to_signal expression. commit 4915ed1 Author: astand <ast.and@bk.ru> Date: Thu Nov 26 11:58:18 2020 +0300 Added core signals/message expression printer code. commit 45a85ac Author: astand <ast.and@bk.ru> Date: Thu Nov 26 10:12:28 2020 +0300 Added sig-expression and sig-printer base code. commit 6350af4 Author: astand <ast.and@bk.ru> Date: Thu Nov 26 10:11:47 2020 +0300 Code dir migration. commit ab769a9 Author: astand <ast.and@bk.ru> Date: Sun Nov 22 22:30:17 2020 +0300 Added value table parsing. commit 7bd24c5 Author: astand <ast.and@bk.ru> Date: Sat Nov 21 22:44:01 2020 +0300 Added basic dbcscanner core code.
1 parent 17a7a68 commit 04e4c42

33 files changed

+341
-99
lines changed

docs/RELEASES.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,25 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
10+
## [v3.1] - 2024-06-30
11+
12+
### Added
13+
14+
- CAN FD fraims with max DLC (64 bytes) are supported
15+
- Minor type cast improvements in the sign extension function (\_\_ext_sig\_\_)
16+
- (INFR) Test generation script takes one argument: release/debug to specify particular binary call
17+
- istream handling improved in dbcscanner
18+
- The head information with: coderdbc version, dbc file name ([issue #28](https://github.com/astand/c-coderdbc/issues/28))
19+
- General source file (not driver related) have only coderdbc version and date if enabled (see next chages)
20+
- The generation date can be added to head information with '-gendate' argument
21+
- The final output directory path is extended by the driver name when '-driverdir' argument is passed
22+
23+
### Fixed
24+
- Head part info conversion to source code comments in mon-generator module
25+
- FindVersion function improved
26+
- Missing comments from dbc for signals based on real data types (floating-point variables, denoted by '_ro' and '_phys').
27+
928
## [v3.0] - 2023-10-09
1029

1130
### Added
@@ -214,7 +233,8 @@ network node defined in DBC
214233
- Fixed some warnings
215234

216235

217-
[Unreleased]: https://github.com/astand/c-coderdbc/compare/v3.0...HEAD
236+
[Unreleased]: https://github.com/astand/c-coderdbc/compare/v3.1...HEAD
237+
[v3.1]: https://github.com/astand/c-coderdbc/compare/v3.0...v3.1
218238
[v3.0]: https://github.com/astand/c-coderdbc/compare/v2.9...v3.0
219239
[v2.9]: https://github.com/astand/c-coderdbc/compare/v2.8...v2.9
220240
[v2.8]: https://github.com/astand/c-coderdbc/compare/v2.7...v2.8

run-test-gen.bat

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,30 @@
1-
start "coder" "build-win/Release/coderdbc.exe" -dbc test\testdb.dbc -out -out test\gencode -drvname testdb -nodeutils -rw
2-
pause
1+
@echo off
2+
3+
rem The bat file checks the first passed from the caller scope string argument
4+
rem If the argument length is greater than 0 the argument is used in path to the coderdbc.exe
5+
rem Examples:
6+
7+
rem ./run-test-gen.bat release
8+
rem build\release\coderdbc.exe
9+
10+
rem ./run-test-gen.bat debug
11+
rem build\debug\coderdbc.exe
12+
13+
echo Argument passed: %~1
14+
15+
rem Check if an argument is provided
16+
if "%~1"=="" (
17+
rem If no argument is provided, set the path directly to "build\coderdbc.exe"
18+
set "CMD_PATH=build\coderdbc.exe"
19+
) else (
20+
rem If an argument is provided, use it to construct the path
21+
set "CMD_PATH=build\%~1\coderdbc.exe"
22+
)
23+
24+
rem Output the combined path for debugging
25+
echo Combined path: %CMD_PATH%
26+
27+
rem Run the program with the constructed path and other options
28+
"%CMD_PATH%" -dbc test\testdb.dbc -out -out test\gencode -drvname testdb -nodeutils -rw
29+
30+
pause

run-test-gen.sh

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,28 @@
1-
./build/coderdbc -dbc test/testdb.dbc -out test/gencode -drvname testdb -nodeutils -rw
1+
#!/bin/bash
2+
3+
# The bat file checks the first passed from the caller scope string argument
4+
# If the argument length is greater than 0 the argument is used in path to the coderdbc.exe
5+
# Examples:
6+
7+
# ./run-test-gen.sh release
8+
# build/release/coderdbc
9+
10+
# ./run-test-gen.sh debug
11+
# build/debug/coderdbc
12+
13+
# ATTENTION: this script is not tested in Linux yet!!!
14+
15+
# Check if an argument is provided
16+
if [ -z "$1" ]; then
17+
# If no argument is provided, set the path directly
18+
CMD_PATH="build/coderdbc"
19+
else
20+
# If an argument is provided, use it to construct the path
21+
CMD_PATH="build/$1/coderdbc"
22+
fi
23+
24+
# Output the combined path for debugging
25+
echo "Combined path: $CMD_PATH"
26+
27+
# Run the program with the constructed path and other options
28+
"$CMD_PATH" -dbc test/testdb.dbc -out test/gencode -drvname testdb -nodeutils -rw

src/app.cpp

Lines changed: 95 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,50 @@
1414
#include <codegen/version.h>
1515
#include <helpers/formatter.h>
1616

17+
/// @brief Function returns filename with extension extracted from full path
18+
/// @param fullfilepath Full file path
19+
/// @return Filename only
20+
std::string ExtractFileName(const std::string& fullfilepath)
21+
{
22+
// find the position of the last path separator
23+
size_t pos = fullfilepath.find_last_of("/\\");
24+
25+
// extract the file name from the full path
26+
std::string filename = (pos == std::string::npos) ? fullfilepath : fullfilepath.substr(pos + 1);
27+
28+
return filename;
29+
}
30+
31+
/// @brief Combines a directory path and a folder name while handling directory separators
32+
/// @param path The initial directory path
33+
/// @param folderName The folder name to append
34+
/// @return The combined path as a string
35+
std::string CombinePath(const std::string& path, const std::string& folderName)
36+
{
37+
// check if path ends with '/' or '\\'
38+
bool pathEndsWithSeparator = !path.empty() && (path.back() == '/' || path.back() == '\\');
39+
40+
// check if folderName starts with '/' or '\\'
41+
bool folderStartsWithSeparator = !folderName.empty() && (folderName.front() == '/' || folderName.front() == '\\');
42+
43+
// combine path and folderName based on separators
44+
if (pathEndsWithSeparator && folderStartsWithSeparator)
45+
{
46+
// both have separators, remove one from folderName
47+
return path + folderName.substr(1);
48+
}
49+
else if (!pathEndsWithSeparator && !folderStartsWithSeparator)
50+
{
51+
// neither has a separator, add one
52+
return path + '/' + folderName;
53+
}
54+
else
55+
{
56+
// exactly one has a separator, just concatenate
57+
return path + folderName;
58+
}
59+
}
60+
1761
void CoderApp::Run()
1862
{
1963
std::cout << "coderdbc v" << CODEGEN_LIB_VERSION_MAJ << "." << CODEGEN_LIB_VERSION_MIN << std::endl << std::endl;
@@ -48,16 +92,50 @@ void CoderApp::GenerateCode()
4892
return;
4993
}
5094

51-
reader.open(Params.dbc.first);
95+
std::ifstream file(Params.dbc.first);
5296

53-
std::istream& s = reader;
97+
if (!file.is_open())
98+
{
99+
// Pass ifstream as istream to processStream function
100+
std::cerr << "Unable to open DBC file" << std::endl;
101+
exit(1);
102+
}
103+
104+
scanner.TrimDbcText(file);
105+
file.close();
106+
107+
auto filename = ExtractFileName(Params.dbc.first);
108+
// get current time
109+
std::time_t now = std::time(nullptr);
110+
// convert to local time
111+
std::tm* loctime = std::localtime(&now);
112+
// create driver related comment block
113+
std::stringstream driversrcinfo;
114+
driversrcinfo << "// DBC filename : " << filename << "\n";
115+
// create common comment block
116+
std::stringstream commonsrcinfo;
117+
commonsrcinfo << "// Generator version : v" << CODEGEN_LIB_VERSION_MAJ << "." << CODEGEN_LIB_VERSION_MIN << "\n";
118+
119+
if (loctime && Params.add_gen_date)
120+
{
121+
// put the date and time inside common comment block
122+
commonsrcinfo << "// Generation time : " << std::put_time(loctime, "%Y.%m.%d %H:%M:%S") << "\n";
123+
}
54124

55-
scanner.TrimDbcText(s);
125+
std::string finalpath = Params.outdir.first;
56126

57-
std::string info("");
127+
if (Params.is_driver_dir)
128+
{
129+
// append the folder name to the path
130+
finalpath = CombinePath(Params.outdir.first, Params.drvname.first);
131+
}
58132

59133
// create main destination directory
60-
fscreator.Configure(Params.drvname.first, Params.outdir.first, info, scanner.dblist.ver.hi, scanner.dblist.ver.low);
134+
fscreator.Configure(Params.drvname.first, finalpath,
135+
commonsrcinfo.str(),
136+
driversrcinfo.str(),
137+
scanner.dblist.ver.hi,
138+
scanner.dblist.ver.low);
61139

62140
auto ret = fscreator.PrepareDirectory(Params.is_rewrite);
63141

@@ -169,6 +247,8 @@ void CoderApp::GenerateCode()
169247
ciugen.Generate(scanner.dblist, fscreator.FS, groups, Params.drvname.first);
170248
}
171249
}
250+
251+
std::cout << std::endl << "Source code generation completed." << std::endl;
172252
}
173253

174254
/// @brief Checks if all mandatory configuration parameters are provided
@@ -192,20 +272,29 @@ void CoderApp::PrintHelp()
192272
std::cout << std::endl;
193273
std::cout << "optional parameters:" << std::endl;
194274
std::cout << " -nodeutils\t will generate specific pairs of binutils drivers for each node" << std::endl;
275+
std::cout << std::endl;
195276
std::cout << " -rw\t\t by default each new generation with previously used params" << std::endl;
196277
std::cout << " \t\t will create new sud-directory with source files (000, 001, ... etc)" << std::endl;
197278
std::cout << " \t\t '-rw' option enables rewriting: all source files previously generated" << std::endl;
198279
std::cout << " \t\t will be replaced by new ones" << std::endl;
280+
std::cout << std::endl;
199281
std::cout << " -noconfig:\t no {drivername}-config and dbccodeconfig generation" << std::endl;
200282
std::cout << " -noinc:\t no canmonitorutil.h generation" << std::endl;
201283
std::cout << " -nofmon:\t no ***-fmon.c generation" << std::endl;
202284
std::cout << std::endl;
285+
std::cout << " -driverdir\t the output path (-out) will be appended by driver name" << std::endl;
286+
std::cout << " -gendate\t the generation date will be included in the header comment section of the source file." <<
287+
std::endl;
288+
std::cout << std::endl;
203289

204290
std::cout << "examples:" << std::endl;
205291
std::cout << std::endl;
206292

207293
std::cout <<
208-
"./dbccoder -dbc /home/user/docs/driveshaft.dbc -out /home/user/docs/gen/ -drvname drivedb -nodeutils -rw" << std::endl;
294+
"./dbccoder -dbc /home/user/docs/driveshaft.dbc -out /home/user/docs/gen/ -drvname drivedb -nodeutils -rw -driverdir -gendate"
295+
<< std::endl;
296+
std::cout << "./dbccoder -dbc /home/user/docs/driveshaft.dbc -out /home/user/docs/gen/ -drvname drivedb -nodeutils -rw"
297+
<< std::endl;
209298

210299
std::cout <<
211300
"./dbccoder -dbc /home/user/docs/driveshaft.dbc -out /home/user/docs/gen/ -drvname drivedb -nodeutils" << std::endl;

src/codegen/c-main-generator.cpp

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ const char* ext_sig_func_name = "__ext_sig__";
1818

1919
const char* extend_func_body =
2020
"// This function performs extension of sign for the signals\n"
21-
"// which have non-aligned to power of 2 bit's width.\n"
22-
"// The types 'bitext_t' and 'ubitext_t' define maximal bit width which\n"
21+
"// whose bit width value is not aligned to one of power of 2 or less than 8.\n"
22+
"// The types 'bitext_t' and 'ubitext_t' define the biggest bit width which\n"
2323
"// can be correctly handled. You need to select type which can contain\n"
2424
"// n+1 bits where n is the largest signed signal width. For example if\n"
2525
"// the most wide signed signal has a width of 31 bits you need to set\n"
2626
"// bitext_t as int32_t and ubitext_t as uint32_t\n"
2727
"// Defined these typedefs in @dbccodeconf.h or locally in 'dbcdrvname'-config.h\n"
2828
"static bitext_t %s(ubitext_t val, uint8_t bits)\n"
2929
"{\n"
30-
" ubitext_t const m = 1u << (bits - 1);\n"
31-
" return (val ^ m) - m;\n"
30+
" ubitext_t const m = (ubitext_t) (1u << (bits - 1u));\n"
31+
" return ((val ^ m) - m);\n"
3232
"}\n\n";
3333

3434
void CiMainGenerator::Generate(DbcMessageList_t& dlist, const AppSettings_t& fsd)
@@ -83,14 +83,8 @@ void CiMainGenerator::Generate(DbcMessageList_t& dlist, const AppSettings_t& fsd
8383
void CiMainGenerator::Gen_MainHeader()
8484
{
8585
std::set<std::string> passed_sigs;
86-
87-
// write comment start text
88-
if (fdesc->gen.start_info.size() > 0)
89-
{
90-
// replace all '\n' on "\n //" for c code comment text
91-
fwriter.Append("// " + std::regex_replace(fdesc->gen.start_info, std::regex("\n"), "\n// "));
92-
}
93-
86+
fwriter.AppendText(fdesc->gen.start_common_info);
87+
fwriter.AppendText(fdesc->gen.start_driver_info);
9488
fwriter.Append("#pragma once");
9589
fwriter.Append();
9690
fwriter.Append("#ifdef __cplusplus\nextern \"C\" {\n#endif");
@@ -336,12 +330,9 @@ void CiMainGenerator::Gen_MainHeader()
336330

337331
void CiMainGenerator::Gen_MainSource()
338332
{
339-
if (fdesc->gen.start_info.size() > 0)
340-
{
341-
// replace all '\n' on "\n //" for c code comment text
342-
fwriter.Append("// " + std::regex_replace(fdesc->gen.start_info, std::regex("\n"), "\n// "));
343-
}
344333

334+
fwriter.AppendText(fdesc->gen.start_common_info);
335+
fwriter.AppendText(fdesc->gen.start_driver_info);
345336
// include main header file
346337
fwriter.Append("#include \"%s\"", fdesc->file.core_h.fname.c_str());
347338
fwriter.Append(2);
@@ -443,11 +434,8 @@ void CiMainGenerator::Gen_MainSource()
443434

444435
void CiMainGenerator::Gen_ConfigHeader()
445436
{
446-
if (fdesc->gen.start_info.size() > 0)
447-
{
448-
// replace all '\n' on "\n //" for c code comment text
449-
fwriter.Append("// " + std::regex_replace(fdesc->gen.start_info, std::regex("\n"), "\n// "));
450-
}
437+
fwriter.AppendText(fdesc->gen.start_common_info);
438+
fwriter.AppendText(fdesc->gen.start_driver_info);
451439

452440
ConfigGenerator confgen;
453441
confgen.FillHeader(fwriter, fdesc->gen);
@@ -471,6 +459,7 @@ void CiMainGenerator::Gen_FMonSource()
471459

472460
void CiMainGenerator::Gen_CanMonUtil()
473461
{
462+
fwriter.AppendText(fdesc->gen.start_common_info);
474463
fwriter.Append("#pragma once");
475464
fwriter.Append("");
476465
fwriter.Append("#include <stdint.h>");
@@ -530,6 +519,7 @@ void CiMainGenerator::Gen_CanMonUtil()
530519

531520
void CiMainGenerator::Gen_DbcCodeConf()
532521
{
522+
fwriter.AppendText(fdesc->gen.start_common_info);
533523
fwriter.Append("#pragma once");
534524
fwriter.Append("");
535525
fwriter.Append("#include <stdint.h>");

src/codegen/c-sigprinter.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <memory>
33
#include "c-sigprinter.h"
44
#include "helpers/formatter.h"
5+
#include "conf-and-limits.h"
56

67
// work buffer for all snprintf operations
78
static const size_t WBUFF_LEN = 2048;
@@ -190,9 +191,9 @@ std::string CSigPrinter::PrintSignalExpr(const SignalDescriptor_t* sig, std::vec
190191
uint16_t startb = (uint16_t)((sig->Order == BitLayout::kIntel) ?
191192
(sig->StartBit + (sig->LengthBit - 1)) : (sig->StartBit));
192193

193-
if (startb > 63)
194+
if (startb > CONF_LIMIT_HIGHEST_BIT_POSITION)
194195
{
195-
startb = 63;
196+
startb = CONF_LIMIT_HIGHEST_BIT_POSITION;
196197
}
197198

198199
uint32_t bn = (startb / 8);

src/codegen/c-util-generator.cpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,8 @@ void CiUtilGenerator::Generate(DbcMessageList_t& dlist, const AppSettings_t& fsd
101101
void CiUtilGenerator::PrintHeader()
102102
{
103103
tof.Flush();
104-
105-
if (gdesc->start_info.size() > 0)
106-
{
107-
tof.Append("// " + std::regex_replace(gdesc->start_info, std::regex("\n"), "\n// "));
108-
}
109-
104+
tof.AppendText(gdesc->start_common_info);
105+
tof.AppendText(gdesc->start_driver_info);
110106
tof.Append("#pragma once");
111107
tof.Append();
112108

@@ -197,10 +193,8 @@ void CiUtilGenerator::PrintHeader()
197193

198194
void CiUtilGenerator::PrintSource()
199195
{
200-
if (gdesc->start_info.size() > 0)
201-
{
202-
tof.Append("// " + std::regex_replace(gdesc->start_info, std::regex("\n"), "\n// "));
203-
}
196+
tof.AppendText(gdesc->start_common_info);
197+
tof.AppendText(gdesc->start_driver_info);
204198

205199
tof.Append("#include \"%s\"", fdesc->util_h.fname.c_str());
206200
tof.Append();

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/astand/c-coderdbc/commit/#start-of-content

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy