Skip to content

Commit

Permalink
Merge pull request #19 from fedebone00/master
Browse files Browse the repository at this point in the history
Working implementation running in Varano
  • Loading branch information
federico-carbone authored Jul 21, 2022
2 parents cc34e77 + 9033a93 commit f0bdae7
Show file tree
Hide file tree
Showing 4,860 changed files with 2,525,479 additions and 349,721 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
154 changes: 154 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
Language: Cpp
AccessModifierOffset: -2
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: false
AlignConsecutiveMacros: true
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: MultiLine
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 120
CommentPragmas: "^ IWYU pragma:"
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DeriveLineEnding: true
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^"(general\.h)"$'
Priority: -1
SortPriority: -1
- Regex: '^"ltc_defs.h"$'
Priority: 5
SortPriority: 5
- Regex: '^"(Mock).*'
Priority: 0
SortPriority: 4
- Regex: '^"(.*)_cfg.h"$'
Priority: 5
SortPriority: 7
- Regex: '^"(unity)'
Priority: 0
SortPriority: 2
- Regex: '^"HL_.*'
Priority: 10
SortPriority: 10
- Regex: '^"ti_.*'
Priority: 10
SortPriority: 12
- Regex: '^"(FreeRTOS)'
Priority: 15
SortPriority: 15
- Regex: '^"(atomic|croutine|event_groups|message_buffer|queue|semphr|stream_buffer|task|timers)\.h'
Priority: 15
SortPriority: 17
- Regex: '".*"'
Priority: 20
SortPriority: 20
IncludeIsMainRegex: "(_cfg)?$"
IncludeIsMainSourceRegex: ""
IndentCaseLabels: true
IndentGotoLabels: true
IndentPPDirectives: None
IndentWidth: 4
IndentWrappedFunctionNames: true
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ""
MacroBlockEnd: ""
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 20
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 100000
PointerAlignment: Right
ReflowComments: false
SortIncludes: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: false
SpacesInConditionalStatement: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceBeforeSquareBrackets: false
Standard: Latest
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 4
UseCRLF: true
UseTab: Never
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*/Src/*.c filter=clang_format
*/Inc/*.h filter=clang_format
26 changes: 26 additions & 0 deletions .github/workflows/DocYourCode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

name: Documentation
on: [push]

jobs:
docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Documentation
uses: eagletrt/documentation@main
with:
author: E-Agle TRT # project author
project: Fenice BMS HV # project name
rootfile: Software # project title
folders: ../mainboard/Inc ../mainboard/Src ../cellboard/Src ../cellboard/Inc
version: 1.0.0 # project version
release: 1.0.0 # project release
language: c # language used
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
nojekyll: true
branch: docs # The branch the action should deploy to.
folder: docs/_build # The folder the action should deploy.
20 changes: 20 additions & 0 deletions .github/workflows/mainboard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: test-mainboard

on:
push:
branches: [ sw-master, sw-develop ]
pull_request:
branches: [ sw-develop ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.PAT_SUBM }}
submodules: recursive
- name: make
run: make -C mainboard/test
12 changes: 7 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
Release/
Debug/
build/
*.o
*.elf
*.bin
*.hex
*.map
.settings/
.mxproject
.mxproject

**/build/
**/Backup/*

**/.vscode/*
!**/.vscode/extensions.json
17 changes: 17 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[submodule "mainboard/test/munit"]
path = mainboard/test/munit
url = https://github.com/nemequ/munit.git
[submodule "mainboard/lib/micro-libs"]
path = mainboard/lib/micro-libs
url = [email protected]:eagletrt/micro-libs.git
[submodule "cellboard/Core/Lib/micro-libs"]
path = cellboard/Core/Lib/micro-libs
url = [email protected]:eagletrt/micro-libs
[submodule "mainboard/lib/can"]
path = mainboard/lib/can
url = [email protected]:eagletrt/can.git
branch = build
[submodule "cellboard/Core/Lib/can"]
path = cellboard/Core/Lib/can
url = [email protected]:eagletrt/can.git
branch = build
Loading

0 comments on commit f0bdae7

Please sign in to comment.