Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs M2 #373

Open
wants to merge 54 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 52 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
0ddd224
Update requirements.txt and overview
Cam0Cow Nov 18, 2023
53a4c0e
Fix up BSP layer docs
Cam0Cow Nov 18, 2023
1dc6de1
Update conf and landing page
Cam0Cow Nov 25, 2023
5d3ad04
Modify drivers docs
Cam0Cow Dec 2, 2023
f28478b
Actually modified drivers docs
Cam0Cow Dec 2, 2023
09d6d40
Merge branch 'master' into docs-m2
IshDeshpa Dec 19, 2023
a1941e2
fixed up docs for Main and ReadCarCAN
IshDeshpa Dec 19, 2023
a778963
moved macros from ReadCarCAN.c to ReadCarCAN.h so they are visible in…
IshDeshpa Dec 19, 2023
e28268a
fixed header comment so doxygen recognizes it
IshDeshpa Dec 19, 2023
c296b58
created helper script for printing all sphinx references
IshDeshpa Dec 19, 2023
d6e8247
updated readtritium docs
IshDeshpa Dec 19, 2023
f9ce511
updated Minions.rst
IshDeshpa Dec 19, 2023
f0bcf2a
stash pop
IshDeshpa Dec 20, 2023
42e322c
small changes fixing sphinx warnings and other clerical issues
IshDeshpa Dec 20, 2023
ca4b8c3
changed all doxygengroups to doxygenfiles and removed all doxygengrou…
IshDeshpa Dec 21, 2023
f9c44f7
ReadCarCAN complete
IshDeshpa Dec 21, 2023
101ec9e
documented SendTritium.h
IshDeshpa Dec 21, 2023
15795a8
added brief to SendTritium, fixed small build error in ReadCarCAN
IshDeshpa Dec 21, 2023
ed5f51e
updated UpdateDisplay docs
IshDeshpa Dec 22, 2023
1ab2345
SendCarCAN updates
IshDeshpa Dec 22, 2023
aa132f9
updated ReadTritium docs
IshDeshpa Dec 22, 2023
92be566
almost finished with updating Apps layer docs
IshDeshpa Dec 22, 2023
ddd5d49
more updates to SendTritium docs
IshDeshpa Dec 23, 2023
9262e2f
build fix
IshDeshpa Dec 23, 2023
9990303
changed ordering
IshDeshpa Dec 24, 2023
54c0a0f
More workflow updates lol. Now, all documentation will be included wi…
IshDeshpa Dec 25, 2023
cef8291
more updates (trying to figure out images)
IshDeshpa Dec 25, 2023
673f6eb
configured more breathe stuff, finally figured out how to do images f…
IshDeshpa Dec 31, 2023
950a5f6
more docs updates
IshDeshpa Dec 31, 2023
21f5846
Contactors documentation updates
IshDeshpa Jan 1, 2024
c980d33
finished last bits of driver documentation
IshDeshpa Jan 2, 2024
1cebef8
Merge branch 'master' into docs-m2
IshDeshpa Jan 2, 2024
c6d3885
added BSP and StdPeriph docs
IshDeshpa Jan 3, 2024
650cc08
docs build with a lot of warnings, but they're all from StdPeriph so …
IshDeshpa Jan 3, 2024
c9f462f
Merge branch 'master' into docs-m2
IshDeshpa Jan 3, 2024
986a83c
fixed ReadTritium
IshDeshpa Jan 12, 2024
1f46742
more readtritium fixes
IshDeshpa Jan 13, 2024
3c43fd4
Fixed ReadCarCAN
IshDeshpa Jan 13, 2024
540110a
updated SendTritium
IshDeshpa Jan 20, 2024
d9b9cb0
updated UpdateDisplay docs
IshDeshpa Jan 20, 2024
1778607
updates to naming
IshDeshpa Jan 20, 2024
d0bc272
Dev/code cleanup again (#404)
NathanielDelgado Jan 20, 2024
1e96bb1
update sendcarcan docs
IshDeshpa Jan 20, 2024
affe4af
misc changes
IshDeshpa Jan 20, 2024
972caef
Modifed workflow to enforce clang and format (#408)
NathanielDelgado Jan 20, 2024
efc5ab2
Merge remote-tracking branch 'origin/master' into docs-m2 (This took …
IshDeshpa Jan 22, 2024
a059090
Merge branch 'master' into docs-m2
IshDeshpa Jan 22, 2024
d44219e
make format fixes
IshDeshpa Jan 22, 2024
d04b2d4
applied clang tidy/format fixes and fixed build after merge
IshDeshpa Jan 22, 2024
a4f2b0c
renames
IshDeshpa Jan 23, 2024
443c517
updated more naming, updated Tasks.c and added diagram for the TaskSw…
IshDeshpa Jan 23, 2024
301d29a
got error handling to show up as a sub item of tasks, renamed Main to…
IshDeshpa Jan 23, 2024
aeb852f
minor edits
IshDeshpa Jan 24, 2024
ce338e0
sendcarcan
IshDeshpa Jan 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
270 changes: 270 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,270 @@
---
Language: Cpp
# BasedOnStyle: Google
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveAssignments:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
PadOperators: true
AlignConsecutiveBitFields:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
PadOperators: false
AlignConsecutiveDeclarations:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
PadOperators: false
AlignConsecutiveMacros:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
PadOperators: false
AlignConsecutiveShortCaseStatements:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCaseColons: false
AlignEscapedNewlines: Left
AlignOperands: Align
AlignTrailingComments:
Kind: Always
OverEmptyLines: 0
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: Yes
AttributeMacros:
- __capability
BinPackArguments: true
BinPackParameters: true
BitFieldColonSpacing: Both
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterExternBlock: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakAfterAttributes: Never
BreakAfterJavaFieldAnnotations: false
BreakArrays: true
BreakBeforeBinaryOperators: None
BreakBeforeConceptDeclarations: Always
BreakBeforeBraces: Attach
BreakBeforeInlineASMColon: OnlyMultiline
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: true
DisableFormat: false
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IfMacros:
- KJ_IF_MAYBE
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<ext/.*\.h>'
Priority: 2
SortPriority: 0
CaseSensitive: false
- Regex: '^<.*\.h>'
Priority: 1
SortPriority: 0
CaseSensitive: false
- Regex: '^<.*'
Priority: 2
SortPriority: 0
CaseSensitive: false
- Regex: '.*'
Priority: 3
SortPriority: 0
CaseSensitive: false
IncludeIsMainRegex: '([-_](test|unittest))?$'
IncludeIsMainSourceRegex: ''
IndentAccessModifiers: false
IndentCaseBlocks: false
IndentCaseLabels: true
IndentExternBlock: AfterExternBlock
IndentGotoLabels: true
IndentPPDirectives: None
IndentRequiresClause: true
IndentWidth: 4
IndentWrappedFunctionNames: false
InsertBraces: false
InsertNewlineAtEOF: false
InsertTrailingCommas: None
IntegerLiteralSeparator:
Binary: 0
BinaryMinDigits: 0
Decimal: 0
DecimalMinDigits: 0
Hex: 0
HexMinDigits: 0
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
KeepEmptyLinesAtEOF: false
LambdaBodyIndentation: Signature
LineEnding: DeriveLF
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Never
ObjCBlockIndentWidth: 4
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PackConstructorInitializers: NextLine
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakOpenParenthesis: 0
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyIndentedWhitespace: 0
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Left
PPIndentWidth: -1
QualifierAlignment: Leave
RawStringFormats:
- Language: Cpp
Delimiters:
- cc
- CC
- cpp
- Cpp
- CPP
- 'c++'
- 'C++'
CanonicalDelimiter: ''
BasedOnStyle: google
- Language: TextProto
Delimiters:
- pb
- PB
- proto
- PROTO
EnclosingFunctions:
- EqualsProto
- EquivToProto
- PARSE_PARTIAL_TEXT_PROTO
- PARSE_TEST_PROTO
- PARSE_TEXT_PROTO
- ParseTextOrDie
- ParseTextProtoOrDie
- ParseTestProto
- ParsePartialTestProto
CanonicalDelimiter: pb
BasedOnStyle: google
ReferenceAlignment: Pointer
ReflowComments: true
RemoveBracesLLVM: false
RemoveParentheses: Leave
RemoveSemicolon: false
RequiresClausePosition: OwnLine
RequiresExpressionIndentation: OuterScope
SeparateDefinitionBlocks: Leave
ShortNamespaceLines: 1
SortIncludes: CaseSensitive
SortJavaStaticImport: Before
SortUsingDeclarations: LexicographicNumeric
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceAroundPointerQualifiers: Default
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeJsonColon: false
SpaceBeforeParens: ControlStatements
SpaceBeforeParensOptions:
AfterControlStatements: true
AfterForeachMacros: true
AfterFunctionDefinitionName: false
AfterFunctionDeclarationName: false
AfterIfMacros: true
AfterOverloadedOperator: false
AfterRequiresInClause: false
AfterRequiresInExpression: false
BeforeNonEmptyParentheses: false
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: Never
SpacesInContainerLiterals: true
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
SpacesInParens: Never
SpacesInParensOptions:
InCStyleCasts: false
InConditionalStatements: false
InEmptyParentheses: false
Other: false
SpacesInSquareBrackets: false
Standard: Auto
StatementAttributeLikeMacros:
- Q_EMIT
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 8
UseTab: Never
VerilogBreakBetweenInstancePorts: true
WhitespaceSensitiveMacros:
- BOOST_PP_STRINGIZE
- CF_SWIFT_NAME
- NS_SWIFT_NAME
- PP_STRINGIZE
- STRINGIZE
...

59 changes: 59 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
Checks: 'clang-diagnostic-*,clang-analyzer-*,
bugprone-*, cppcoreguidelines-*, readability-*,
-cppcoreguidelines-avoid-non-const-global-variables,
-bugprone-easily-swappable-parameters,
-clang-analyzer-security.insecureAPI.*'
WarningsAsErrors: ''
HeaderFileExtensions:
- ''
- h
- hh
- hpp
- hxx
ImplementationFileExtensions:
- c
- cc
- cpp
- cxx
HeaderFilterRegex: ''
AnalyzeTemporaryDtors: false
FormatStyle: none
User: nate
CheckOptions:
cppcoreguidelines-avoid-magic-numbers.IgnoredIntegerValues: 1;2;3;4;100
readability-magic-numbers.IgnoredIntegerValues: 1;2;3;4;100
readability-identifier-naming.EnumCase: CamelCase
readability-identifier-naming.EnumConstantCase: CamelCase
readability-identifier-naming.EnumConstantPrefix: k
readability-identifier-naming.FunctionCase: camelBack
readability-identifier-naming.GlobalConstantCase: CamelCase
readability-identifier-naming.GlobalConstantPrefix: k
readability-identifier-naming.GlobalConstantPointerCase: CamelCase
readability-identifier-naming.GlobalConstantPointerPrefix: k
readability-identifier-naming.GlobalFunctionCase: CamelCase
readability-identifier-naming.GlobalPointerCase: lower_case
readability-identifier-naming.GlobalVariableCase: lower_case
readability-identifier-naming.LocalConstantCase: CamelCase
readability-identifier-naming.LocalConstantPrefix: k
readability-identifier-naming.LocalConstantPointerCase: CamelCase
readability-identifier-naming.LocalConstantPointerPrefix: k
readability-identifier-naming.LocalPointerCase: lower_case
readability-identifier-naming.LocalVariableCase: lower_case
readability-identifier-naming.MacroDefinitionCase: UPPER_CASE
readability-identifier-naming.ParameterCase: lower_case
readability-identifier-naming.PointerParameterCase: lower_case
readability-identifier-naming.StaticConstantCase: CamelCase
readability-identifier-naming.StaticConstantPrefix: k
readability-identifier-naming.StaticVariableCase: lower_case
readability-identifier-naming.TypedefCase: CamelCase
readability-identifier-naming.StructCase: lower_case
readability-identifier-naming.UnionCase: CamelCase
readability-identifier-naming.VariableCase: lower_case
readability-identifier-naming.IgnoreMainLikeFunctions: false
readability-identifier-length.MinimumVariableNameLength: 2
readability-identifier-length.MinimumParameterNameLength: 2
readability-function-cognitive-complexity.Threshold: 32
SystemHeaders: false
...

9 changes: 9 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,12 @@ jobs:
run: make clean
- name: make leader
run: make leader
# Check that format was ran and has no errors
- name: format-check
run: make format-check
# Apply format in case newline changes create tidy warnings (NOLINT comments change lines)
- name: format
run: make format
# Check that tidy was ran and has no errors
- name: tidy-check
run: make tidy-check
5 changes: 3 additions & 2 deletions .vscode/LHR.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
}
],
"settings": {
"liveServer.settings.multiRootWorkspaceName": "renode",
"terminal.integrated.defaultProfile.linux": "bash",
"terminal.integrated.profiles.linux": {
"bash": {
Expand All @@ -17,6 +16,9 @@
"args": ["-i"]
},
},
"livePreview.defaultPreviewPath": "./Docs/build/html/",
"C_Cpp.simplifyStructuredComments": false,
"C_Cpp.autoAddFileAssociations": false
},
"tasks": {
"version": "2.0.0",
Expand Down Expand Up @@ -292,5 +294,4 @@
"waderyan.gitblame" // For tracking commit history and authors within code
]
}

}
Loading
Loading