-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate UHK 80 features
- Loading branch information
Showing
594 changed files
with
35,048 additions
and
1,492 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 |
---|---|---|
@@ -1,25 +1,42 @@ | ||
--- | ||
Language: Cpp | ||
BasedOnStyle: WebKit | ||
AllowShortFunctionsOnASingleLine: false | ||
BinPackArguments: false | ||
BinPackParameters: false | ||
BraceWrapping: | ||
AfterClass: false | ||
AfterControlStatement: false | ||
AfterEnum: false | ||
AfterFunction: true | ||
AfterNamespace: false | ||
AfterObjCDeclaration: false | ||
AfterStruct: false | ||
AfterUnion: false | ||
BeforeCatch: false | ||
BeforeElse: false | ||
IndentBraces: false | ||
BreakBeforeBraces: Custom | ||
Cpp11BracedListStyle: true | ||
Language: Cpp | ||
BasedOnStyle: Microsoft | ||
ColumnLimit: 100 | ||
IndentWidth: 4 | ||
IndentPPDirectives: BeforeHash | ||
PPIndentWidth: 4 | ||
ContinuationIndentWidth: 4 | ||
|
||
ReflowComments: false | ||
|
||
PointerAlignment: Right | ||
ReflowComments: false | ||
SortIncludes: false | ||
TabWidth: 4 | ||
... | ||
DerivePointerAlignment: false | ||
|
||
BreakBeforeBraces: Custom | ||
BraceWrapping: | ||
AfterClass: false | ||
AfterStruct: false | ||
AfterUnion: false | ||
AfterEnum: false | ||
AfterFunction: true | ||
AfterNamespace: false | ||
AfterExternBlock: false | ||
AfterCaseLabel: false | ||
AfterControlStatement: Never | ||
BeforeElse: false | ||
BeforeCatch: false | ||
BeforeLambdaBody: false | ||
SplitEmptyFunction: false | ||
SplitEmptyRecord: false | ||
SplitEmptyNamespace: false | ||
AlignAfterOpenBracket: DontAlign | ||
|
||
# c++ specific | ||
ConstructorInitializerIndentWidth: 4 | ||
IndentRequiresClause: true | ||
IndentExternBlock: NoIndent | ||
PackConstructorInitializers: NextLine | ||
AlwaysBreakTemplateDeclarations: Yes | ||
AllowShortFunctionsOnASingleLine: Inline | ||
AllowShortLambdasOnASingleLine: Inline | ||
ShortNamespaceLines: 1 | ||
FixNamespaceComments: true |
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
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,72 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master* | ||
pull_request: | ||
branches: | ||
- master* | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 25 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: firmware-uhk80 | ||
submodules: recursive | ||
|
||
- name: Install build dependencies | ||
run: sudo apt-get install -y gcc-arm-none-eabi | ||
|
||
- name: Install west | ||
run: pip3 install --user -U west | ||
|
||
- name: Install python dependencies of scripts | ||
run: | | ||
cd firmware-uhk80/scripts | ||
pip install -r requirements.txt | ||
- name: Setup Zephyr project | ||
uses: zephyrproject-rtos/action-zephyr-setup@v1 | ||
with: | ||
app-path: firmware-uhk80 | ||
toolchains: arm-zephyr-eabi | ||
sdk-version: 0.16.8 | ||
|
||
- name: Git user setup | ||
run: | | ||
git config --global user.email "git-patch@uhk.com" | ||
git config --global user.name "Git Patch" | ||
- name: West patch | ||
run: west patch | ||
|
||
- name: West config | ||
run: west config --local build.cmake-args -- "-Wno-dev" | ||
|
||
- name: Use Node.js (.nvmrc) | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: firmware-uhk80/scripts/.nvmrc | ||
|
||
- name: Install node dependencies in scripts folder | ||
run: | | ||
cd firmware-uhk80/scripts | ||
npm install | ||
- name: Create firmware tarball | ||
run: | | ||
cd firmware-uhk80 | ||
scripts/make-release.mjs --allowSha | ||
- name: Upload firmware artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: firmware | ||
path: firmware-uhk80/scripts/uhk-firmware-*.tar.gz | ||
compression-level: 0 | ||
retention-days: 10 |
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
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
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,17 +1,30 @@ | ||
{ | ||
"version": 4, | ||
"configurations": [ | ||
{ | ||
"name": "UHK 60 v1", | ||
"defines": [ | ||
"DEVICE_ID=DEVICE_ID_UHK60V1" | ||
] | ||
], | ||
"configurationProvider": "nordic-semiconductor.nrf-connect" | ||
}, | ||
{ | ||
"name": "UHK 60 v2", | ||
"defines": [ | ||
"DEVICE_ID=DEVICE_ID_UHK60V2" | ||
] | ||
}, | ||
{ | ||
"name": "Linux", | ||
"includePath": [ | ||
"${workspaceFolder}/**" | ||
], | ||
"defines": [], | ||
"compilerPath": "/usr/bin/gcc", | ||
"cStandard": "c17", | ||
"cppStandard": "gnu++20", | ||
"intelliSenseMode": "linux-gcc-x64", | ||
"configurationProvider": "nordic-semiconductor.nrf-connect" | ||
} | ||
] | ||
} | ||
], | ||
"version": 4 | ||
} |
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,21 @@ | ||
{ | ||
"nrf-connect.toolchain.path": "${nrf-connect.toolchain:2.6.1}", | ||
"nrf-connect.topdir": "${nrf-connect.sdk:2.4.1}", | ||
"nrf-connect.applications": [ | ||
"${workspaceFolder}/device" | ||
], | ||
"nrf-connect.boardRoots": [ | ||
"${workspaceFolder}/" | ||
], | ||
"files.associations": { | ||
"*.h": "c", | ||
"*.c": "c", | ||
"bitset": "cpp", | ||
"span": "cpp", | ||
"array": "cpp", | ||
"string": "cpp", | ||
"string_view": "cpp", | ||
"compare": "c", | ||
"system_error": "c" | ||
} | ||
} |
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
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
Oops, something went wrong.