-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80c11be
commit 8b000b0
Showing
36 changed files
with
6,457 additions
and
3,633 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
--- | ||
Checks: -*,bugprone-*,cert-*,clang-analyzer-*,concurrency-*, | ||
cppcoreguidelines-*,fuchsia-*,google-*,hicpp-*,llvm-*, | ||
misc-*,modernize-*,performance-*,readability-*, | ||
-llvm-header-guard,-modernize-use-trailing-return-type, | ||
-fuchsia-default-arguments-calls,-readability-identifier-length, | ||
-hicpp-braces-around-statements,-readability-braces-around-statements | ||
-fuchsia-statically-constructed-objects,-cert-err58-cpp | ||
HeaderFilterRegex: ^((?!/lib/).)*(src|include)/((?!/lib/).)*$ | ||
UseColor: true | ||
CheckOptions: | ||
readability-identifier-naming.VariableCase: lower_case | ||
readability-identifier-naming.ConstantCase: CamelCase | ||
readability-identifier-naming.ConstantPrefix: k | ||
readability-identifier-naming.FunctionCase: CamelCase | ||
readability-identifier-naming.EnumCase: CamelCase | ||
readability-identifier-naming.EnumConstantCase: CamelCase | ||
readability-identifier-naming.EnumConstantPrefix: k | ||
readability-identifier-naming.ClassCase: CamelCase | ||
readability-identifier-naming.StructCase: CamelCase | ||
readability-identifier-naming.MemberCase: lower_case | ||
readability-identifier-naming.PrivateMemberSuffix: _ | ||
readability-identifier-naming.NamespaceCase: lower_case | ||
readability-identifier-naming.MacroDefinitionCase: UPPER_CASE | ||
readability-identifier-naming.TypeAliasCase: CamelCase | ||
readability-identifier-naming.TypeTemplateParameterCase: CamelCase | ||
... | ||
|
||
--- | ||
Checks: -*,bugprone-*,cert-*,clang-analyzer-*,concurrency-*, | ||
cppcoreguidelines-*,fuchsia-*,google-*,hicpp-*,llvm-*, | ||
misc-*,modernize-*,performance-*,readability-*, | ||
-llvm-header-guard,-modernize-use-trailing-return-type, | ||
-fuchsia-default-arguments-calls,-readability-identifier-length, | ||
-hicpp-braces-around-statements,-readability-braces-around-statements | ||
-fuchsia-statically-constructed-objects,-cert-err58-cpp | ||
HeaderFilterRegex: ^((?!/lib/).)*(src|include)/((?!/lib/).)*$ | ||
UseColor: true | ||
CheckOptions: | ||
readability-identifier-naming.VariableCase: lower_case | ||
readability-identifier-naming.ConstantCase: CamelCase | ||
readability-identifier-naming.ConstantPrefix: k | ||
readability-identifier-naming.FunctionCase: CamelCase | ||
readability-identifier-naming.EnumCase: CamelCase | ||
readability-identifier-naming.EnumConstantCase: CamelCase | ||
readability-identifier-naming.EnumConstantPrefix: k | ||
readability-identifier-naming.ClassCase: CamelCase | ||
readability-identifier-naming.StructCase: CamelCase | ||
readability-identifier-naming.MemberCase: lower_case | ||
readability-identifier-naming.PrivateMemberSuffix: _ | ||
readability-identifier-naming.NamespaceCase: lower_case | ||
readability-identifier-naming.MacroDefinitionCase: UPPER_CASE | ||
readability-identifier-naming.TypeAliasCase: CamelCase | ||
readability-identifier-naming.TypeTemplateParameterCase: CamelCase | ||
... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
CompileFlags: | ||
Add: [-std=c++2b, -isystem/usr/include/c++/v1] | ||
CompilationDatabase: build | ||
CompileFlags: | ||
Add: [-std=c++2b, -isystem/usr/include/c++/v1] | ||
CompilationDatabase: build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
name: build | ||
on: [push] | ||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
platform: [{ os: windows-latest, shell: 'msys2 {0}', gen: 'MSYS Makefiles' }, { os: ubuntu-latest, shell: bash, gen: 'Ninja' }] | ||
toolchain: [{ cross: true, cpref: 'arm-none-eabi-' }, { cross: false, cpref: '' }] | ||
runs-on: ${{ matrix.platform.os }} | ||
defaults: | ||
run: | ||
shell: ${{ matrix.platform.shell }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Windows Toolchain (arm-cross) | ||
uses: msys2/setup-msys2@v2 | ||
if: ${{ matrix.platform.os == 'windows-latest' && matrix.toolchain.cross }} | ||
with: | ||
path-type: inherit | ||
msystem: mingw64 | ||
install: mingw-w64-x86_64-arm-none-eabi-toolchain | ||
- name: Windows Toolchain (host=target) | ||
uses: msys2/setup-msys2@v2 | ||
if: ${{ matrix.platform.os == 'windows-latest' && !matrix.toolchain.cross }} | ||
with: | ||
path-type: inherit | ||
msystem: mingw64 | ||
install: mingw-w64-x86_64-toolchain | ||
- name: Linux Toolchain (arm-cross) | ||
if: ${{ matrix.platform.os == 'ubuntu-latest' && matrix.toolchain.cross }} | ||
run: | | ||
sudo apt-get upgrade | ||
sudo apt install -y gcc-arm-none-eabi | ||
sudo apt-get install -y ninja-build | ||
- name: Linux Toolchain (host=target) | ||
if: ${{ matrix.platform.os == 'ubuntu-latest' && !matrix.toolchain.cross }} | ||
run: | | ||
sudo apt-get upgrade | ||
sudo apt install -y gcc-13 | ||
sudo apt install -y g++-13 | ||
sudo apt-get install -y ninja-build | ||
- uses: jwlawson/[email protected] | ||
- name: Configure | ||
run: | | ||
cmake -DCMAKE_C_COMPILER="${{ matrix.toolchain.cpref }}gcc" -DCMAKE_CXX_COMPILER="${{ matrix.toolchain.cpref }}g++" -G"${{ matrix.platform.gen }}" -Bbuild . | ||
- name: Build | ||
run: | | ||
cmake --build ./build --config Debug --target all | ||
- name: Test | ||
if: ${{ !matrix.toolchain.cross }} | ||
run: | | ||
name: build | ||
on: [push] | ||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
platform: [{ os: windows-latest, shell: 'msys2 {0}', gen: 'MSYS Makefiles' }, { os: ubuntu-latest, shell: bash, gen: 'Ninja' }] | ||
toolchain: [{ cross: true, cpref: 'arm-none-eabi-' }, { cross: false, cpref: '' }] | ||
runs-on: ${{ matrix.platform.os }} | ||
defaults: | ||
run: | ||
shell: ${{ matrix.platform.shell }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Windows Toolchain (arm-cross) | ||
uses: msys2/setup-msys2@v2 | ||
if: ${{ matrix.platform.os == 'windows-latest' && matrix.toolchain.cross }} | ||
with: | ||
path-type: inherit | ||
msystem: mingw64 | ||
install: mingw-w64-x86_64-arm-none-eabi-toolchain | ||
- name: Windows Toolchain (host=target) | ||
uses: msys2/setup-msys2@v2 | ||
if: ${{ matrix.platform.os == 'windows-latest' && !matrix.toolchain.cross }} | ||
with: | ||
path-type: inherit | ||
msystem: mingw64 | ||
install: mingw-w64-x86_64-toolchain | ||
- name: Linux Toolchain (arm-cross) | ||
if: ${{ matrix.platform.os == 'ubuntu-latest' && matrix.toolchain.cross }} | ||
run: | | ||
sudo apt-get upgrade | ||
sudo apt install -y gcc-arm-none-eabi | ||
sudo apt-get install -y ninja-build | ||
- name: Linux Toolchain (host=target) | ||
if: ${{ matrix.platform.os == 'ubuntu-latest' && !matrix.toolchain.cross }} | ||
run: | | ||
sudo apt-get upgrade | ||
sudo apt install -y gcc-13 | ||
sudo apt install -y g++-13 | ||
sudo apt-get install -y ninja-build | ||
- uses: jwlawson/[email protected] | ||
- name: Configure | ||
run: | | ||
cmake -DCMAKE_C_COMPILER="${{ matrix.toolchain.cpref }}gcc" -DCMAKE_CXX_COMPILER="${{ matrix.toolchain.cpref }}g++" -G"${{ matrix.platform.gen }}" -Bbuild . | ||
- name: Build | ||
run: | | ||
cmake --build ./build --config Debug --target all | ||
- name: Test | ||
if: ${{ !matrix.toolchain.cross }} | ||
run: | | ||
ctest --test-dir ./build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,58 @@ | ||
# Prerequisites | ||
*.d | ||
|
||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Fortran module files | ||
*.mod | ||
*.smod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
# Local Settings | ||
**/.settings/** | ||
**/*.mxproject | ||
|
||
# Build Artifacts | ||
**/Debug/** | ||
**/Release/** | ||
*.scratch | ||
*.elf | ||
*.map | ||
*.hex | ||
|
||
# Library Code | ||
**/Middlewares/** | ||
**/Drivers/** | ||
|
||
# CMake Files | ||
/build | ||
|
||
# Clangd | ||
compile_commands.json | ||
.cache | ||
|
||
# VSCode | ||
# Prerequisites | ||
*.d | ||
|
||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Fortran module files | ||
*.mod | ||
*.smod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
# Local Settings | ||
**/.settings/** | ||
**/*.mxproject | ||
|
||
# Build Artifacts | ||
**/Debug/** | ||
**/Release/** | ||
*.scratch | ||
*.elf | ||
*.map | ||
*.hex | ||
|
||
# Library Code | ||
**/Middlewares/** | ||
**/Drivers/** | ||
|
||
# CMake Files | ||
/build | ||
|
||
# Clangd | ||
compile_commands.json | ||
.cache | ||
|
||
# VSCode | ||
/.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
[submodule "units"] | ||
path = extern/units | ||
url = [email protected]:nholthaus/units.git | ||
[submodule "extern/stm32-cmake"] | ||
path = extern/stm32-cmake | ||
url = [email protected]:ObKo/stm32-cmake.git | ||
[submodule "extern/googletest"] | ||
path = extern/googletest | ||
url = https://github.com/google/googletest.git | ||
[submodule "STM32CubeH7"] | ||
path = extern/STM32CubeH7 | ||
url = https://github.com/STMicroelectronics/STM32CubeH7.git | ||
[submodule "extern/x-cube-freertos"] | ||
path = extern/x-cube-freertos | ||
url = https://github.com/STMicroelectronics/x-cube-freertos.git | ||
[submodule "extern/STM32CubeH7"] | ||
path = extern/STM32CubeH7 | ||
url = https://github.com/STMicroelectronics/STM32CubeH7.git | ||
[submodule "units"] | ||
path = extern/units | ||
url = [email protected]:nholthaus/units.git | ||
[submodule "extern/stm32-cmake"] | ||
path = extern/stm32-cmake | ||
url = [email protected]:ObKo/stm32-cmake.git | ||
[submodule "extern/googletest"] | ||
path = extern/googletest | ||
url = https://github.com/google/googletest.git | ||
[submodule "STM32CubeH7"] | ||
path = extern/STM32CubeH7 | ||
url = https://github.com/STMicroelectronics/STM32CubeH7.git | ||
[submodule "extern/x-cube-freertos"] | ||
path = extern/x-cube-freertos | ||
url = https://github.com/STMicroelectronics/x-cube-freertos.git | ||
[submodule "extern/STM32CubeH7"] | ||
path = extern/STM32CubeH7 | ||
url = https://github.com/STMicroelectronics/STM32CubeH7.git |
Oops, something went wrong.