-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔖 (v1.0.0): Merge branch 'release/v1.0.0'
* release/v1.0.0: (1727 commits) 🍱 (img): Add img/id 🍱 (os): Add LekaOS-1.0.0.bin 🐛 (bootload): Fix delay of watchdog to avoid HardFault ✅ (tests): Adapt battery tests 🔊 (spike): Spike battery show robot voltage 🚸 (battery): Adapt-voltage-battery-level 🩺 (bootloader): Add watchdog + LogKit 🐛 (spike): Fix delay issues when playing video 🚚 (BehaviorKit): Update video paths 🍱 (vid): Add vid/{system,states,actions,emotions} 🚚 (BehaviorKit): Update img paths fs/usr/test/vid-1-ok.avi,fs/usr/test/vid-2-ok.avi,fs/usr/test/vid-3-ko-broken_content.avi,fs/usr/test/vid-4-ko-empty.avi,fs/usr/test/vid-5-ok.avi: convert to Git LFS 🔧 (lfs): Activate git-lfs for .avi files fs/home/wav/fur-elise.wav: convert to Git LFS 🔧 (lfs): Activate git-lfs for .wav files 🚚 (behavior): Rename charging behavior 🍱 (img): Add img/system/misc 🍱 (img): Add img/system/faces 🍱 (img): Add img/system/battery 🩺 (fs): Improve fs check test with new content ...
- Loading branch information
Showing
1,111 changed files
with
83,658 additions
and
175 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
BasedOnStyle: Google | ||
IndentWidth: 4 | ||
TabWidth: 4 | ||
ColumnLimit: 120 | ||
|
||
Language: Cpp | ||
Standard: Latest | ||
|
||
IncludeBlocks: Regroup | ||
|
||
IncludeCategories: | ||
- Regex: '(<|"mbed)' | ||
Priority: 0 | ||
SortPriority: 0 | ||
- Regex: '"(drivers|rtos|events|platform)' | ||
Priority: 2 | ||
SortPriority: 0 | ||
- Regex: "PinNames.h" | ||
Priority: 1 | ||
SortPriority: 0 | ||
- Regex: '"(connectivity|features|storage|ble)' | ||
Priority: 3 | ||
SortPriority: 0 | ||
|
||
AccessModifierOffset: -2 | ||
|
||
Cpp11BracedListStyle: true | ||
|
||
DerivePointerAlignment: false | ||
PointerAlignment: Right | ||
AlignAfterOpenBracket: true | ||
AlignConsecutiveAssignments: true | ||
|
||
FixNamespaceComments: true | ||
IndentCaseLabels: true | ||
|
||
AlignEscapedNewlines: Right | ||
|
||
SpacesBeforeTrailingComments: 3 | ||
AlignTrailingComments: true | ||
ReflowComments: true | ||
|
||
AlignConsecutiveMacros: true | ||
|
||
NamespaceIndentation: Inner | ||
SpaceBeforeCpp11BracedList: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceBeforeRangeBasedForLoopColon: false | ||
|
||
UseTab: Always | ||
KeepEmptyLinesAtTheStartOfBlocks: false | ||
|
||
AllowShortFunctionsOnASingleLine: Inline | ||
AllowShortBlocksOnASingleLine: Never | ||
AllowShortLambdasOnASingleLine: All | ||
|
||
BreakBeforeBraces: Custom | ||
BraceWrapping: | ||
AfterClass: true | ||
AfterFunction: true | ||
AfterEnum: true | ||
AfterNamespace: false | ||
BeforeLambdaBody: false | ||
|
||
IndentPPDirectives: BeforeHash |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
./extern | ||
./cmake | ||
./targets | ||
./_build | ||
./_build_unit_tests | ||
./_build_cmake_tools |
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 |
---|---|---|
@@ -0,0 +1,102 @@ | ||
# vim: set filetype=yaml: | ||
--- | ||
HeaderFilterRegex: "" | ||
UseColor: true | ||
FormatStyle: file | ||
|
||
Checks: " \ | ||
-* \ | ||
, bugprone-assert-side-effect \ | ||
, bugprone-bool-pointer-implicit-conversion \ | ||
, bugprone-branch-clone \ | ||
, bugprone-copy-constructor-init \ | ||
, bugprone-dangling-handle \ | ||
, bugprone-dynamic-static-initializers \ | ||
, bugprone-exception-escape \ | ||
, bugprone-forward-declaration-namespace \ | ||
, bugprone-implicit-widening-of-multiplication-result \ | ||
, bugprone-incorrect-roundings \ | ||
, bugprone-infinite-loop \ | ||
, bugprone-integer-division \ | ||
, bugprone-lambda-function-name \ | ||
, bugprone-macro-parentheses \ | ||
, bugprone-macro-repeated-side-effects \ | ||
, bugprone-misplaced-operator-in-strlen-in-alloc \ | ||
, bugprone-misplaced-pointer-arithmetic-in-alloc \ | ||
, bugprone-misplaced-widening-cast \ | ||
, bugprone-move-forwarding-reference \ | ||
, bugprone-multiple-statement-macro \ | ||
, bugprone-not-null-terminated-result \ | ||
, bugprone-parent-virtual-call \ | ||
, bugprone-redundant-branch-condition \ | ||
, bugprone-signed-char-misuse \ | ||
, bugprone-sizeof-container \ | ||
, bugprone-sizeof-expression \ | ||
, bugprone-string-constructor \ | ||
, bugprone-string-integer-assignment \ | ||
, bugprone-string-literal-with-embedded-nul \ | ||
, bugprone-suspicious-enum-usage \ | ||
, bugprone-suspicious-include \ | ||
, bugprone-suspicious-memset-usage \ | ||
, bugprone-suspicious-missing-comma \ | ||
, bugprone-suspicious-semicolon \ | ||
, bugprone-suspicious-string-compare \ | ||
, bugprone-swapped-arguments \ | ||
, bugprone-terminating-continue \ | ||
, bugprone-too-small-loop-variable \ | ||
, bugprone-undefined-memory-manipulation \ | ||
, bugprone-undelegated-constructor \ | ||
, bugprone-unused-raii \ | ||
, bugprone-unused-return-value \ | ||
, bugprone-use-after-move \ | ||
, bugprone-virtual-near-miss \ | ||
, cppcoreguidelines-avoid-goto \ | ||
, cppcoreguidelines-init-variables \ | ||
, cppcoreguidelines-interfaces-global-init \ | ||
, cppcoreguidelines-macro-usage \ | ||
, cppcoreguidelines-narrowing-conversions \ | ||
, cppcoreguidelines-no-malloc \ | ||
, cppcoreguidelines-prefer-member-initializer \ | ||
, cppcoreguidelines-pro-bounds-constant-array-index \ | ||
, cppcoreguidelines-pro-type-const-cast \ | ||
, cppcoreguidelines-pro-type-cstyle-cast \ | ||
, cppcoreguidelines-pro-type-member-init \ | ||
, cppcoreguidelines-pro-type-reinterpret-cast \ | ||
, cppcoreguidelines-pro-type-static-cast-downcast \ | ||
, cppcoreguidelines-pro-type-union-access \ | ||
, cppcoreguidelines-slicing \ | ||
, cppcoreguidelines-special-member-functions \ | ||
, google-readability-avoid-underscore-in-googletest-name \ | ||
, google-readability-casting \ | ||
, google-readability-todo \ | ||
, google-upgrade-googletest-case \ | ||
, hicpp-multiway-paths-covered \ | ||
, misc-definitions-in-headers \ | ||
, misc-misplaced-const \ | ||
, misc-non-copyable-objects \ | ||
, misc-non-private-member-variables-in-classes \ | ||
, misc-redundant-expression \ | ||
, misc-static-assert \ | ||
, misc-unconventional-assign-operator \ | ||
, misc-unused-alias-decls \ | ||
, misc-unused-using-decls \ | ||
, modernize-* \ | ||
, readability-* \ | ||
, -readability-convert-member-functions-to-static \ | ||
" | ||
|
||
CheckOptions: | ||
- key: bugprone-misplaced-widening-cast.CheckImplicitCasts | ||
value: true | ||
- key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor | ||
value: true | ||
- key: readability-magic-numbers.IgnorePowersOf2IntegerValues | ||
value: true | ||
- key: readability-function-cognitive-complexity.IgnoreMacros | ||
value: true | ||
- key: readability-magic-numbers.IgnoredIntegerValues | ||
value: "1;2;3;4;10;100;1000;60;3600;9600;115200;128;255" | ||
|
||
WarningsAsErrors: " \ | ||
modernize-* | ||
" |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = tab | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false # Trailing whitespace is significant in markdown files | ||
|
||
[*.cmake] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[CMakeLists.txt] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[*.py] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[.clang-{format,tidy}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[{settings,c_cpp_properties}.json] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[.ycm_extra_conf.py] | ||
indent_style = space | ||
indent_size = 2 |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.wav filter=lfs diff=lfs merge=lfs -text | ||
*.avi filter=lfs diff=lfs merge=lfs -text |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Issue Template Epic | ||
about: Generic epic template | ||
title: "[Epic] - " | ||
labels: '01 - type: epic, 99 - status: backlog' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Description | ||
|
||
Lorem Ipsum | ||
|
||
**Related epic/story**: <!-- to complete #{task id} --> |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Issue Template Story | ||
about: Generic story template | ||
title: "[Story] - " | ||
labels: '01 - type: story, 99 - status: backlog' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Description | ||
|
||
Lorem Ipsum | ||
|
||
**Related epic/story**: <!-- to complete #{task id} --> |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Issue Template Task | ||
about: Generic task template | ||
title: "[Task] - " | ||
labels: '01 - type: task, 99 - status: backlog' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Description | ||
|
||
Lorem Ipsum | ||
|
||
**Related epic/story/task**: <!-- to complete #{task id} --> | ||
|
||
## Subtasks <!-- if needed --> | ||
|
||
- [ ] | ||
- [ ] | ||
- [ ] |
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 |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# Leka - LekaOS | ||
# Copyright 2021 APF France handicap | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: "Compare files" | ||
description: "" | ||
|
||
inputs: | ||
comment_header: | ||
description: "Specify comment header if needed" | ||
required: true | ||
|
||
enable_log_debug: | ||
description: "ENABLE_LOG_DEBUG=[ON, OFF]" | ||
required: true | ||
|
||
base_dir: | ||
description: "Path to base files" | ||
required: true | ||
|
||
head_dir: | ||
description: "Path to head files" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Compare files | ||
id: compare_files | ||
shell: bash | ||
run: ${{ github.action_path }}/compare_files.sh ${{ inputs.base_dir }} ${{ inputs.head_dir }} | ||
|
||
- name: Generate statistics | ||
id: generate_statistics | ||
shell: bash | ||
run: ${{ github.action_path }}/generate_statistics.sh ${{ inputs.base_dir }} ${{ inputs.head_dir }} | ||
|
||
- name: Get diffs | ||
id: get_diffs | ||
shell: bash | ||
run: ${{ github.action_path }}/get_diffs.sh ${{ inputs.base_dir }} ${{ inputs.head_dir }} | ||
|
||
- name: Publish differences | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
header: compare_files-${{ inputs.comment_header }} | ||
message: | | ||
# File comparision analysis report | ||
## :bookmark: Info | ||
- base: [`${{ env.BASE_REF}}`](https://github.com/leka/LekaOS/tree/${{ env.BASE_REF}}) / ${{ env.BASE_SHA }} + `${{ env.BASE_MBED_VERSION }}` + `${{ env.BASE_CXX_STANDARD }}` | ||
- head: [`${{ env.HEAD_REF }}`](https://github.com/leka/LekaOS/tree/${{ env.HEAD_REF }}) / ${{ env.HEAD_SHA }} + `${{ env.HEAD_MBED_VERSION }}` + `${{ env.HEAD_CXX_STANDARD }}` | ||
- toolchain: `${{ env.TOOLCHAIN_VERSION }}` | ||
- enable_log_debug: `${{ inputs.enable_log_debug }}` | ||
${{ env.FIRMWARE_STATISTICS_OUTPUT }} | ||
<details> | ||
<summary>Click to show memory sections</summary> | ||
``` | ||
| - | Hex | Bytes | KiB | | ||
|------------|---------:|----------:|-----:| | ||
| Flash | 0x200000 | 2 097 152 | 2048 | | ||
| SRAM | 0x80000 | 524 288 | 512 | | ||
| Bootloader | 0x40000 | 262 144 | 256 | | ||
| Header | 0x1000 | 4 096 | 4 | | ||
| OS | 0x17E000 | 1 564 672 | 1528 | | ||
| Tail | 0x1000 | 4 096 | 4 | | ||
| Scratch | 0x40000 | 262 144 | 256 | | ||
``` | ||
</details> | ||
## :memo: Summary | ||
<details> | ||
<summary>Click to show summary</summary> | ||
- :heavy_check_mark: - existing target | ||
- :sparkles: - new target | ||
- :coffin: - deleted target | ||
- :white_check_mark: - files are the same | ||
- :x: - files are different | ||
${{ env.STATUS_DIFF_OUTPUT }} | ||
</details> | ||
## :world_map: Map files diff output | ||
<details> | ||
<summary>Click to show diff list</summary> | ||
${{ env.MAP_DIFF_OUTPUT }} | ||
</details> |
Oops, something went wrong.