Skip to content

Commit ed8a7df

Browse files
author
Aaron Züger
committed
merge upstream changes
2 parents 49455f4 + 728da0f commit ed8a7df

File tree

204 files changed

+3385
-3026
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+3385
-3026
lines changed

.devcontainer.json

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.154.2/containers/cpp
3+
{
4+
"build": {
5+
"dockerfile": "docker/Dockerfile"
6+
},
7+
"customizations": {
8+
"vscode": {
9+
"settings": {
10+
// Set *default* container specific settings.json values on container create.
11+
"terminal.integrated.profiles.linux": {
12+
"bash": {
13+
"path": "/bin/bash"
14+
}
15+
},
16+
"terminal.integrated.defaultProfile.linux": "bash",
17+
"editor.formatOnSave": true,
18+
// FIXME: This and the Dockerfile might get out of sync
19+
"clang-format.executable": "clang-format-14"
20+
},
21+
// Add the IDs of extensions you want installed when the container is created.
22+
"extensions": [
23+
"ms-vscode.cpptools",
24+
"ms-vscode.cmake-tools",
25+
"marus25.cortex-debug",
26+
"notskm.clang-tidy",
27+
"mjohns.clang-format"
28+
]
29+
}
30+
},
31+
"remoteUser": "infinitime"
32+
}

.devcontainer/Dockerfile

-66
This file was deleted.

.devcontainer/build.sh

-87
This file was deleted.

.devcontainer/build_app.sh

-2
This file was deleted.

.devcontainer/create_build_openocd.sh

-3
This file was deleted.

.devcontainer/devcontainer.json

-38
This file was deleted.

.devcontainer/make_build_dir.sh

-2
This file was deleted.

.gitattributes

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Set the default behavior, in case people don't have core.autocrlf set.
2-
* text=auto
2+
# Prevent build errors on non lf systems (like Windows), we need files with lf as newlines.
3+
* text=auto eol=lf
34

45
# Explicitly declare text files you want to always be normalized and converted
5-
# to native line endings on checkout.
6+
# to lf line endings on checkout.
67
*.c text
78
*.cpp text
89
*.h text

.github/workflows/format.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: tests/test-format.sh
3030

3131
- name: Upload patches
32-
uses: actions/upload-artifact@v3
32+
uses: actions/upload-artifact@v4
3333
if: failure()
3434
with:
3535
name: Patches

.github/workflows/main.yml

+25-9
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
text_size: ${{ steps.output-sizes.outputs.text_size }}
2323
data_size: ${{ steps.output-sizes.outputs.data_size }}
2424
bss_size: ${{ steps.output-sizes.outputs.bss_size }}
25+
firmware_artifact: ${{ steps.upload-firmware.outputs.artifact-id }}
26+
resources_artifact: ${{ steps.upload-resources.outputs.artifact-id }}
2527
env:
2628
# InfiniTime sources are downloaded to the current directory.
2729
# Override SOURCES_DIR in build.sh
@@ -46,20 +48,32 @@ jobs:
4648
# Unzip the package because Upload Artifact will zip up the files
4749
- name: Unzip DFU package
4850
run: unzip ./build/output/pinetime-mcuboot-app-dfu-*.zip -d ./build/output/pinetime-mcuboot-app-dfu
51+
- name: Set ref_name, but replace slashes with dashes.
52+
shell: bash
53+
env:
54+
ref_name: ${{ github.head_ref || github.ref_name }}
55+
run: echo "REF_NAME=${ref_name//\//-}" >> $GITHUB_ENV
4956
- name: Upload DFU artifacts
50-
uses: actions/upload-artifact@v3
57+
uses: actions/upload-artifact@v4
5158
with:
52-
name: InfiniTime DFU ${{ github.head_ref }}
59+
name: InfiniTime DFU ${{ env.REF_NAME }}
5360
path: ./build/output/pinetime-mcuboot-app-dfu/*
5461
- name: Upload MCUBoot image artifacts
55-
uses: actions/upload-artifact@v3
62+
uses: actions/upload-artifact@v4
5663
with:
57-
name: InfiniTime MCUBoot image ${{ github.head_ref }}
64+
name: InfiniTime MCUBoot image ${{ env.REF_NAME }}
5865
path: ./build/output/pinetime-mcuboot-app-image-*.bin
66+
- name: Upload standalone ELF artifacts
67+
uses: actions/upload-artifact@v4
68+
id: upload-firmware
69+
with:
70+
name: InfiniTime image ${{ env.REF_NAME }}
71+
path: ./build/output/src/pinetime-app-*.out
5972
- name: Upload resources artifacts
60-
uses: actions/upload-artifact@v3
73+
uses: actions/upload-artifact@v4
74+
id: upload-resources
6175
with:
62-
name: InfiniTime resources ${{ github.head_ref }}
76+
name: InfiniTime resources ${{ env.REF_NAME }}
6377
path: ./build/output/infinitime-resources-*.zip
6478

6579
build-simulator:
@@ -98,9 +112,9 @@ jobs:
98112
cmake --build build_lv_sim
99113
100114
- name: Upload simulator executable
101-
uses: actions/upload-artifact@v3
115+
uses: actions/upload-artifact@v4
102116
with:
103-
name: infinisim-${{ github.head_ref }}
117+
name: infinisim-${{ env.REF_NAME }}
104118
path: build_lv_sim/infinisim
105119

106120
get-base-ref-size:
@@ -195,10 +209,12 @@ jobs:
195209
| text | ${{ needs.build-firmware.outputs.text_size }}B | ${{ steps.output-sizes-diff.outputs.text_diff }}B |
196210
| data | ${{ needs.build-firmware.outputs.data_size }}B | ${{ steps.output-sizes-diff.outputs.data_diff }}B |
197211
| bss | ${{ needs.build-firmware.outputs.bss_size }}B | ${{ steps.output-sizes-diff.outputs.bss_diff }}B |
212+
213+
[Run in InfiniEmu](https://infiniemu.pipe01.net/?firmware=artifact://${{ github.repository }}/${{ needs.build-firmware.outputs.firmware_artifact }}&resources=artifact://${{ github.repository }}/${{ needs.build-firmware.outputs.resources_artifact }})
198214
EOF
199215
200216
- name: Upload comment
201-
uses: actions/upload-artifact@v3
217+
uses: actions/upload-artifact@v4
202218
with:
203219
name: comment
204220
path: comment

.gitmodules

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
[submodule "src/libs/littlefs"]
55
path = src/libs/littlefs
66
url = https://github.com/littlefs-project/littlefs.git
7-
[submodule "src/libs/QCBOR"]
8-
path = src/libs/QCBOR
9-
url = https://github.com/laurencelundblade/QCBOR.git
107
[submodule "src/libs/arduinoFFT"]
118
path = src/libs/arduinoFFT
129
url = https://github.com/kosme/arduinoFFT.git

.vscode/c_cpp_properties.json

+22-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
2+
"env": {
3+
// TODO: This is a duplication of the configuration set in /docker/build.sh!
4+
"TOOLS_DIR": "/opt",
5+
"GCC_ARM_PATH": "gcc-arm-none-eabi-10.3-2021.10"
6+
},
27
"configurations": [
38
{
49
"name": "nrfCC",
@@ -10,11 +15,26 @@
1015
"defines": [],
1116
"compilerPath": "${env:ARM_NONE_EABI_TOOLCHAIN_PATH}/bin/arm-none-eabi-gcc",
1217
"cStandard": "c11",
13-
"cppStandard": "c++14",
18+
"cppStandard": "c++20",
19+
"intelliSenseMode": "linux-gcc-arm",
20+
"configurationProvider": "ms-vscode.cpp-tools",
21+
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
22+
},
23+
{
24+
"name": "nrfCC Devcontainer",
25+
"includePath": [
26+
"${workspaceFolder}/**",
27+
"${workspaceFolder}/src/**",
28+
"${workspaceFolder}/src"
29+
],
30+
"defines": [],
31+
"compilerPath": "${TOOLS_DIR}/${GCC_ARM_PATH}/bin/arm-none-eabi-gcc",
32+
"cStandard": "c99",
33+
"cppStandard": "c++20",
1434
"intelliSenseMode": "linux-gcc-arm",
1535
"configurationProvider": "ms-vscode.cpp-tools",
1636
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
1737
}
1838
],
1939
"version": 4
20-
}
40+
}

.vscode/cmake-kits.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
{
3+
"name": "InfiniTime Compiler",
4+
"environmentSetupScript": "${workspaceFolder}/docker/build.sh"
5+
}
6+
]

0 commit comments

Comments
 (0)