Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
259 commits
Select commit Hold shift + click to select a range
bed37f1
Update
Dec 17, 2021
e265271
Try to fix installabelity
Dec 20, 2021
c69c462
Update CMakeLists.txt
Jan 3, 2022
dac59b1
Update CMakeLists.txt, FindChsm.cmake, and install_lib.cmake
Jan 3, 2022
ec34d08
Merge branch 'feature/alternate' of https://github.com/xsession/chsm.git
Jan 3, 2022
06596c7
Add new_project components
xsession Jan 3, 2022
cb5842e
Merge commit 'ec34d08e269a117812a6a40faa3d03cb8d13e0af'
xsession Jan 3, 2022
fd6a208
Add chsm_start.bat
xsession Jan 3, 2022
5463b88
Add new_project sources
xsession Jan 6, 2022
9cdc6a6
Replace and rename new_project.py to generators/new_module_generator.py
xsession Jan 23, 2022
4316a2d
Update chsm_backend.py, directory_generator.py, and 12 more files...
xsession Feb 6, 2022
d092594
New window now opened correctly.
Feb 10, 2022
0dc75a0
Try to add autosave to main.js
Feb 10, 2022
8b364f4
Modified chsm_template_header and clean some mess
Feb 10, 2022
366d04d
Now work the base new_project window
xsession Feb 13, 2022
48a0e2b
Update new_module_generator.py
xsession Feb 13, 2022
05afc7c
The New Window button works properly
xsession Feb 16, 2022
a0ee6db
Update chsm_backend.py, directory_generator.py, and 2 more files...
xsession Feb 16, 2022
261124c
The directory structure, template files source files, template unitte…
xsession Feb 20, 2022
009be70
checkboxes are active now
xsession Feb 20, 2022
ed5b02d
The cmake target selector and code skeleton generation works
xsession Feb 20, 2022
3483e76
Dont want save the default statemachine if we try to exit
xsession Feb 20, 2022
524c420
Merge branch 'feature/new_project_window'
xsession Feb 20, 2022
c6c86a7
Add basic cmake scripts
Feb 28, 2022
72980ec
Update set_signal_classes.cmake, CMakeLists.txt, and 12 more files...
Mar 3, 2022
cd2ae3b
Update CMakeLists.txt and .keep
Mar 20, 2022
e91b99a
Modified the tests CMakeLists.txt files
Mar 20, 2022
9edaddd
Modified the interfaces and ltc2471, now i link the ltc2471_tast_sig_…
Mar 21, 2022
1ba341c
Update CMakeLists.txt, FindUnity.cmake, and 11 more files...
Mar 21, 2022
8238e6f
Try to fix signal_classes_h dependency in ltc4271_test, spoiler not w…
Mar 23, 2022
f33876f
Update .editorconfig, .gitattributes, and 156 more files...
Mar 23, 2022
456c965
Now compiled ltc2471_test
Mar 23, 2022
df89d02
Update CMakeLists.txt, path_list.cmake, and CMakeLists.txt
Mar 23, 2022
e0973bf
Fix all tests compilation it work fine
Mar 23, 2022
9bd4021
Update chsm_start.bat, toolchain-mingw.cmake, and 12 more files...
Apr 3, 2022
8af7784
Update CMakeLists.txt
Apr 28, 2022
0887dd2
Create ci.yml
xsession May 4, 2022
a0e83bb
Update README.md
xsession May 4, 2022
5fcdcce
Update ci.yml
xsession May 4, 2022
0624b82
Update ci.yml
xsession May 4, 2022
19fc6a5
Update CMakeLists.txt
xsession May 4, 2022
481c320
Add chsm_crf_ci.yml, chsm_modules_ci.yml, and update readme file
May 10, 2022
99fec03
Update chsm_modules_ci.yml
xsession May 10, 2022
e6a3127
Merge remote-tracking branch 'refs/remotes/origin/feature/fix_test_runs'
May 10, 2022
e4ccd91
Add to root CMakeLists.txt path_list include and to cmake_init_tests.…
May 10, 2022
ab6780f
Update chsm_modules_ci.yml
May 10, 2022
dd3a693
Add themes to the main window
Aug 21, 2022
dc8b261
Update cmake_init scripts
Aug 21, 2022
7f505bc
Update chsm_start.bat
Aug 22, 2022
fafbbef
The theme handling extend with cookie handling, it works for all tab,…
Aug 22, 2022
eb50b7c
Add .cproject and .project to template project
Aug 24, 2022
c8be84f
Add pygen directory
Sep 6, 2022
3eb8842
Reorganize sm generators
Sep 6, 2022
9469d08
Start to add python and js support
Oct 7, 2022
738c28c
Add cmake_utils as submodule
Oct 8, 2022
45418b8
Add menu_structure projeject in example directory as a submodule
Oct 8, 2022
e76c06a
Remove cmake directory and scripts directory
Oct 9, 2022
07fb12b
Modify example and start to change in cmake libraries to interface_li…
Oct 9, 2022
20969e1
Start Java module
Oct 11, 2022
d9b0565
Update cmake_utils
Oct 12, 2022
ba932c1
Update cmake_utils
Oct 13, 2022
2d41ca7
Start to extract demo from crf tests.
Oct 13, 2022
704a5c3
Update cmake_utils and chsm_backend.py
Oct 13, 2022
1e61944
Fix chsm.bat and the scripts folder, and now run again the chsm_backend
Oct 21, 2022
be42138
Update cmake_utils and chsm_backend.py
Oct 26, 2022
f2c7f76
Update cmake_utils
Oct 26, 2022
7fe05d3
Update CMakeLists.txt, cmake_utils, and 39 more files...
Dec 12, 2022
b7dc83a
Reorganize directories
Dec 13, 2022
b831de0
Upgrade to flat chsm
Dec 13, 2022
8b945d5
Merge branch 'feature/multi_lang_sm_gen' of https://github.com/xsessi…
Dec 13, 2022
f95bce7
Fix some url issues and add i2c_scan to i2c_master
Dec 14, 2022
e573ef2
Update .gitmodules, cmake.yml, and 21 more files...
Dec 25, 2022
c178441
Relocate menu_structure submodule
Dec 25, 2022
947ddee
Update CMakeLists.txt, SwAD.drawio, and 214 more files...
Dec 26, 2022
d6cdf6b
Update CMakeLists.txt, ChsmConfig.cmake.in, and 10 more files...
Dec 29, 2022
09febcb
Refactor a bit the build system, start to add i2c_master bus_scan tes…
Jan 1, 2023
408f1e7
Update cmake_utils
Jan 20, 2023
dffda54
Add new module categories, and update cmake_utils
Jan 22, 2023
4598dd1
delete build-mingw-test
Jan 22, 2023
807526d
Now compile the crf_interfaces
Jan 23, 2023
36e7fae
Update .gitmodules
Jan 24, 2023
27ffc6c
Update .gitmodules
Jan 24, 2023
49eb5d9
Try the concept with two test executable
Jan 24, 2023
1bab92d
Update .gitignore, cmake_utils, and 2 more files...
Jan 26, 2023
6570235
Update include_dirs.cmake.in and include_dirs.cmake.in
Jan 26, 2023
398d17b
Update include_dirs.cmake.in and include_dirs.cmake.in
Jan 26, 2023
a16aed8
Fix template.html url issue add script for i2c_master_test
Jan 28, 2023
23c26ae
The i2c_master test compiles, add new icon to chsm
Jan 29, 2023
88b0bee
Update cmake_utils
Feb 2, 2023
be98811
Replace back to SIGNAL_CLASSES_H, start to work with vcnl4040 statema…
Feb 6, 2023
92bdf84
Update cmake_utils, expand vcnl4040 module, add jinja template files …
Feb 12, 2023
5feb5e8
Update .cproject, .gitignore, and 4 more files...
Feb 25, 2023
4df854c
Update CMakeLists.txt, cmake_utils, and 10 more files...
Feb 28, 2023
d0bd6be
Try to use at build time setting the SIGNAL_CLASSES_H with generator …
Feb 28, 2023
4eaa13f
Experiment with generator expressions
Mar 1, 2023
7d69048
Try to fix build tests
Mar 1, 2023
384e690
Add python hsm base, and try to fix test builds
Mar 3, 2023
e6cf5eb
Add hsm for js and java
Mar 4, 2023
dcceec3
Add a few Software architecture diagrams crf_SwAD.drawio, and vcnl404…
Mar 5, 2023
2ff4975
Start to add architecture design diagrams
Mar 9, 2023
98792ac
Merge branch 'feature/multi_lang_sm_gen' of https://github.com/xsessi…
Mar 9, 2023
8a90c50
Try out plantuml for documentation
Mar 11, 2023
44c8d39
Add some generated documentation with pyreverse
Mar 12, 2023
9822a1d
Try to break out from dependency issue
Mar 17, 2023
47cfb53
Update JSON_figure.puml, asdfg.puml, and signal_classes_distribution.…
Mar 17, 2023
5a331ec
Rework the signal classes system and now runs the tests, now i separe…
Mar 17, 2023
fd8112a
Add devices documnetations
Mar 17, 2023
f19aec4
Remove unessesary scripts from scripts directory, i hope fix the gith…
Mar 17, 2023
4af8156
set to trigger build on github for this branch too
Mar 17, 2023
bdece9c
Update chsm_crf_ci.yml and chsm_modules_ci.yml
Mar 17, 2023
2e52475
Update chsm_crf_ci.yml and chsm_modules_ci.yml
Mar 17, 2023
617d847
Update chsm_crf_ci.yml and chsm_modules_ci.yml
Mar 17, 2023
38e1423
Update chsm_crf_ci.yml and chsm_modules_ci.yml
Mar 17, 2023
7a8f79b
Update chsm_crf_ci.yml
Mar 17, 2023
09f589d
Update chsm_crf_ci.yml and chsm_modules_ci.yml
Mar 18, 2023
889fd49
Update chsm_crf_ci.yml and chsm_modules_ci.yml
Mar 18, 2023
1f11e14
Start to refactor cmake generator to jinja based, replace the chsm co…
Mar 19, 2023
9beadec
Fix an url in the top cmakelists.txt
Mar 19, 2023
1f4b378
Update cbits_test.c and cvalue_test.c
Mar 19, 2023
28ebc00
Update CMakeLists.txt, crf.h, and 18 more files...
Mar 20, 2023
66241e4
Replace web dir to sm_gen
Mar 20, 2023
194fe3f
Add subrepo for containing pdf documents for modules
Mar 23, 2023
15d4769
Replace modulse to modules/c
Mar 25, 2023
1f5bdb8
Rework the directory structure again, and fix the url-s, update docs …
Apr 7, 2023
6752b4a
Remove device documentation pdf-s from modules
Apr 7, 2023
623e704
Add extra jinja files to the c module generators
Apr 9, 2023
b46c126
Add autosave function
Apr 9, 2023
9d76ae6
Partly make the state texts override double click on the nessesary state
Apr 10, 2023
6d14678
Update main.js
Apr 11, 2023
db3af83
Update CMakeLists.txt, cmake_utils, and 2 more files...
May 5, 2023
42cb7c9
Update lm73 module
May 8, 2023
0822493
Fix lm73_test and update cmake_utils
May 11, 2023
6af2804
Update modules
May 15, 2023
64ade1d
Fix the crf tests, enable UNITY_SUPPORT_64 in unity, update chsm to f…
May 18, 2023
e6c9458
Add menu_structure submodule
May 18, 2023
93a68ea
Remove duplicated files
May 19, 2023
c6ad180
Update gitmodules
May 19, 2023
46b367f
Add base generated jinja templates
May 19, 2023
ad25798
Add error counters
May 19, 2023
b56acbb
Start to add tests to i2c_master new features
May 23, 2023
7e73fe1
Start to add debug_trace feature
May 24, 2023
ccaedc8
Debug trace idea
May 24, 2023
bc96bc9
expand the idea
May 25, 2023
5fcfcd1
update cmake_utils
May 30, 2023
5f70fa6
Add into test running mode state-machine tracing
May 30, 2023
4a69252
Start to add jinja template for C generation
May 30, 2023
23bbc36
update cmake_utils submodule and signal_classes_modules remove unness…
May 31, 2023
4c639f5
fix cmake link issue
May 31, 2023
77c1f51
Extend debug functionality
Jun 9, 2023
738bea4
Update sht30 device
Jun 12, 2023
1de6b01
start to fill the jinja templates for c_gen
Jun 12, 2023
5740f61
Add extra debug feature, but just manually need to add as automatism
Jun 16, 2023
4b22277
Merge remote-tracking branch 'origin/feature/multi_lang_sm_gen' into …
Jun 16, 2023
fea90ec
Start to add sphinx based documentation to the project
Jun 16, 2023
f54c284
update some docs
Jun 18, 2023
05781e8
Add extra error handling to i2c_master, and fix debug variable in gen…
Jun 19, 2023
1e5c6b0
Update docs_pages.yml
xsession Jun 20, 2023
bb7d669
Update conf.py
xsession Jun 20, 2023
d127d82
Auto stash before merge of "feature/multi_lang_sm_gen" and "origin/fe…
Jun 27, 2023
79f63af
Fix theme issue in the output html
Jun 28, 2023
091c206
Auto stash before merge of "feature/multi_lang_sm_gen" and "origin/fe…
Jun 28, 2023
95f5984
Test some documentation technic
Jun 29, 2023
3c0971c
use includes in rst
Jun 30, 2023
935feaf
Update docs
Jul 2, 2023
4607ab4
Update lm73 and i2c_master
Jul 8, 2023
0e85a93
Merge remote-tracking branch 'origin/feature/multi_lang_sm_gen' into …
Jul 8, 2023
9d78cca
normalise section counting in doc
Jul 8, 2023
cef9ebe
Start to fillup the docs
Jul 8, 2023
4b5aa0a
re add github workflow
Jul 8, 2023
dbb5341
add github workflow drawio
Jul 8, 2023
8bd31f6
Update docs_pages.yml
xsession Jul 8, 2023
202fe4b
Update docs_page.yml
Jul 8, 2023
f36c469
.
Jul 8, 2023
bbd06e2
__
Jul 8, 2023
58e1a61
Fix doc_gen build folder path
Jul 8, 2023
abb6de2
__
Jul 8, 2023
6c02fc7
__
Jul 8, 2023
9c8a857
__
Jul 8, 2023
83c4c00
__
Jul 8, 2023
7c9f079
__
Jul 8, 2023
613fa78
__
Jul 8, 2023
73acd8f
__
Jul 8, 2023
e832aa4
__
Jul 8, 2023
203be53
__
Jul 8, 2023
7895ea5
__
Jul 8, 2023
e3ef46f
__
Jul 8, 2023
631350d
__
Jul 8, 2023
3dbf6a1
__
Jul 8, 2023
e4ef859
__
Jul 8, 2023
59b838f
rename doc to docs
Jul 9, 2023
bdc495a
Added submodule doc/modules
Jul 9, 2023
772b74f
Re add chsm-docs submodule
Jul 9, 2023
052fa96
__
Jul 9, 2023
ac231b6
__
Jul 9, 2023
4ceec2a
__
Jul 9, 2023
eb1007c
__
Jul 9, 2023
7775162
__
Jul 9, 2023
ad0fc72
__
Jul 9, 2023
b8fdaa1
__
Jul 9, 2023
8f3e895
Merge branch 'feature/multi_lang_sm_gen' of https://github.com/xsessi…
Jul 9, 2023
64e199a
Modify scripts to be able debug tests
Jul 18, 2023
3e7a40e
add launch file for debugging in vscode
Jul 18, 2023
7a35ff4
Fix debug feature memleak, add error_increments to lm73
Jul 18, 2023
e0d656f
Fix include <string.h>
Jul 18, 2023
e0ebef3
expand i2c interface, and add hex display to launch.json
Jul 20, 2023
2eef331
Update docs/modules with ads1115 sensor
Jul 26, 2023
5c76092
#13 Complete this ticket
Jul 29, 2023
557fda1
Update cmake_utils
Jul 30, 2023
d193b2e
Add extra reset functions to i2c_master
Jul 31, 2023
1723af4
A bit rethink
Jul 31, 2023
e33b2a6
Make s_i2c_master_reset_slave_comm just optional
Aug 1, 2023
feba6ce
Merge remote-tracking branch 'origin/feature/multi_lang_sm_gen' into …
Aug 1, 2023
63e3d4f
Update gitignore
Aug 17, 2023
74fb33e
Removed submodule unity
Aug 17, 2023
18ac640
Update cmake_utils include in CMakeLists.txt
Aug 19, 2023
6980359
Update CMakeLists.txt
Aug 19, 2023
db27fd5
Update CMakeLists.txt and cmake_utils
Aug 19, 2023
4f35c96
Add cmake CHSM_INCLUDED guard condition
Aug 19, 2023
91d96e7
Update gui.dockerfile, CMakeLists.txt, and atomic_ops.h
Aug 20, 2023
d138834
Update cmake_utils
Aug 28, 2023
2a38ef1
Update cmake_utils
Sep 10, 2023
87c099e
Add parser logic, template in cookiecutter format to generator folder
Sep 16, 2023
80da878
Start to refactor new_module gui
Sep 18, 2023
84e094f
Update new_module.html and cmake_utils
Sep 19, 2023
af331d0
Update .gitignore
Sep 19, 2023
cc4b3ac
The cookiecutter based new module generation works
Sep 19, 2023
96400de
Update __init__.py, sm_2.py, and 6 more files...
Sep 21, 2023
e5493e7
Start to add templates to the other language generations, add some in…
Sep 21, 2023
46ebea0
#19 Try to fix system sleep issue
Sep 22, 2023
3ddf69c
#19 Tries Update
Sep 22, 2023
84afaa7
Update chsm_start.bat, module_view.drawio, and 6 more files...
Sep 23, 2023
ddc8a96
Fixed the merge bug
Sep 23, 2023
2342caa
Start to refactor cookiecutter template
Sep 24, 2023
f2829ea
Start to add host sleep protection
Oct 7, 2023
7c27b41
Update cmake_utils compilers toolchain
Oct 9, 2023
9eed8ed
Fix toolchain issue
Oct 9, 2023
b9d6802
Update cmake_utils
Oct 9, 2023
502cbcd
Fix the new module generator path, and add the new module comm periph…
Oct 10, 2023
675e40e
update cmake_utils
Nov 3, 2023
0b56f0e
Start to add gui test framework, and add web components to statemachine
Nov 5, 2023
1e55191
Update cmake_utils
Nov 14, 2023
1d009b9
Update atomic_ops.h
Nov 15, 2023
6551140
Remove chsm dependency from debug function
Nov 15, 2023
4669e3a
Start to make visal documentation from core functionality
Dec 3, 2023
6d94cd0
rename chsm canopen cmake target
Dec 19, 2023
cd93da9
update cmake_utils
Jan 1, 2024
a5e93fd
Add multi-language Jinja codegen (Python/JS/Java/VHDL), debug channel…
Apr 12, 2026
ce6057f
Minimize C runtime footprint, fix new module generator
Apr 12, 2026
2f47ead
Add React+FastAPI GUI variant with Electron desktop packaging
Apr 13, 2026
130ac88
Continue react gui
Apr 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
42 changes: 42 additions & 0 deletions .github/workflows/chsm_crf_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: chsm_crf_ci

on:
push:
branches: [feature/multi_lang_sm_gen, feature/fix_test_runs, master, main ]

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

- name: List out the directory
run: tree ${{ github.workspace }}

- name: Check cmake version
run: cmake --version

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -S ${{github.workspace}} -DCHSM_BUILD_TESTS=ON

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build -t crf

- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: |
cmake --build . -t crf_test
ctest -VV -R crf_test

47 changes: 47 additions & 0 deletions .github/workflows/chsm_modules_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: chsm_modules_ci

on:
push:
branches: [ feature/multi_lang_sm_gen, feature/fix_test_runs, master, main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive

- name: List out the directory
run: tree ${{ github.workspace }}

- name: Check cmake version
run: cmake --version

- name: Init the submodules
run: git submodule init

- name: Update submodules
run: git submodule update --recursive

- name: Install Graphviz
# You may pin to the exact commit or the version.
# uses: tlylt/install-graphviz@b2201200d85f06f0189cb74d9b69208504cf12cd
uses: tlylt/install-graphviz@v1.0.0

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -S ${{github.workspace}} -DCHSM_BUILD_TESTS=ON

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build -t all

- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: |
ctest

43 changes: 43 additions & 0 deletions .github/workflows/docs_pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and Deploy Documentation

on:
push:
branches:
- feature/multi_lang_sm_gen

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install Sphinx m2r sphinxcontrib-plantuml sphinx-rtd-dark-mode sphinxcontrib-datatemplates sphinxcontrib-drawio

- name: Install Draw.io
run: |
sudo apt-get update
sudo apt install snapd
sudo snap install drawio

- name: Build documentation
run: |
cd docs/doc_gen
make html
ls -lah
tree

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/doc_gen/build/html
11 changes: 9 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
/.vscode/
/**/__pycache__/
/**/build/*
!/**/build/.keep

#dependencies
**/deps/**
**/unity/**build-mingw-test/
build-mingw-test/

build-mingw/

.vscode/settings.json

docs/sphinx/_build/
docs/typst/*.pdf
11 changes: 11 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[submodule "languages/c/cmake_utils"]
path = languages/c/cmake_utils
url = https://github.com/xsession/cmake_utils.git
[submodule "languages/c/unity"]
path = languages/c/unity
url = https://github.com/xsession/Unity.git
[submodule "languages/c/examples/menu_structure"]
url = https://github.com/xsession/menu_structure.git
[submodule "docs/modules"]
path = docs/modules
url = https://github.com/xsession/chsm-docs.git
102 changes: 102 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "i2c_master_test_debug",
"type": "cppdbg",
"request": "launch",
// "preLaunchTask": "build_i2c_master_test",
"program": "${workspaceFolder}/languages/c/build-mingw-test/bin/i2c_master_test.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:/MinGW/bin/gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
},
{
"description": "Display numbers in hex",
"text": "set output-radix 16",
"ignoreFailures": true
}
]
},
{
"name": "lm73_test_debug",
"type": "cppdbg",
"request": "launch",
// "preLaunchTask": "build_lm73_test",
"program": "${workspaceFolder}/languages/c/build-mingw-test/bin/lm73_test.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:/MinGW/bin/gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
},
{
"description": "Display numbers in hex",
"text": "set output-radix 16",
"ignoreFailures": true
}
]
},
{
"name": "sht30_test_debug",
"type": "cppdbg",
"request": "launch",
// "preLaunchTask": "build_sht30_test",
"program": "${workspaceFolder}/languages/c/build-mingw-test/bin/sht30_test.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:/MinGW/bin/gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
},
{
"description": "Display numbers in hex",
"text": "set output-radix 16",
"ignoreFailures": true
}
]
},

]
}
89 changes: 0 additions & 89 deletions CMakeLists.txt

This file was deleted.

23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[![Actions Status](https://github.com/xsession/chsm/workflows/chsm_crf_ci/badge.svg)](https://github.com/xsession/chsm/actions)
[![Actions Status](https://github.com/xsession/chsm/workflows/chsm_modules_ci/badge.svg)](https://github.com/xsession/chsm/actions)

# CHSM - Hierarchical State Machine (HSM) Framework for C

:warning: **Experimental code, expect breaking changes.**
Expand Down Expand Up @@ -49,7 +52,25 @@ Cloning: `git clone https://github.com/ThrowTheSwitch/Unity.git`
1. Clone the repo
2. Checkout the **master** branch
3. Navigate into the **chsm** folder, open a command prompt and run this command:
**python3 cgen/chsm_backend.py**
**python3 cgen/chsm_backend.py**

The result should be a new window with a simple state machine already in it.


## Compile modules

### To run one individual test, build and run it
```
cd build
cmake --build . -t lm73_test; ctest -VV -R lm73_test
```
### Build and run all tests with one command
```
cd build
cmake --build . -t ; ctest -VV -R
```
### To listout all target
```
cd build
make help
```
1 change: 0 additions & 1 deletion cgen/hsm/__init__.py

This file was deleted.

Loading