Skip to content

Commit 7128ef2

Browse files
authored
Merge pull request #109 from kshitij-sisodia-arm/feature/mleco-3685
MLECO-3648: Adding support for physical targets
2 parents 5a9fefd + 6035e99 commit 7128ef2

Some content is hidden

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

49 files changed

+25524
-6742
lines changed

cmsis-pack-examples/.clang-format

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#
2+
# Copyright (c) 2022 Arm Limited. All rights reserved.
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the License); you may
7+
# not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an AS IS BASIS, WITHOUT
14+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
---
19+
Language: Cpp
20+
BasedOnStyle: LLVM
21+
IndentWidth: 4
22+
ColumnLimit: 100
23+
AccessModifierOffset: -4
24+
PointerAlignment: Left
25+
AlignAfterOpenBracket: Align
26+
AlignConsecutiveAssignments: true
27+
AlignConsecutiveMacros: true
28+
AlignEscapedNewlines: Left
29+
AlignTrailingComments: true
30+
AllowAllParametersOfDeclarationOnNextLine: true
31+
AllowShortFunctionsOnASingleLine: Empty
32+
AllowShortBlocksOnASingleLine: true
33+
AlwaysBreakTemplateDeclarations: true
34+
BinPackArguments: false
35+
BinPackParameters: false
36+
BreakInheritanceList: AfterColon
37+
BreakConstructorInitializers: AfterColon
38+
BreakBeforeBraces: Custom
39+
BraceWrapping:
40+
AfterClass: false
41+
AfterControlStatement: false
42+
AfterEnum: false
43+
AfterFunction: true
44+
AfterNamespace: false
45+
AfterObjCDeclaration: false
46+
AfterStruct: false
47+
AfterUnion: false
48+
AfterExternBlock: false
49+
BeforeCatch: false
50+
BeforeElse: false
51+
IndentBraces: false
52+
SplitEmptyFunction: false
53+
SplitEmptyRecord: false
54+
SplitEmptyNamespace: true
55+
NamespaceIndentation: Inner
56+
---
57+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
// Copyright (c) 2022, Arm Limited and affiliates.
3+
// SPDX-License-Identifier: Apache-2.0
4+
5+
// Licensed under the Apache License, Version 2.0 (the "License");
6+
// you may not use this file except in compliance with the License.
7+
// You may obtain a copy of the License at
8+
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
11+
// Unless required by applicable law or agreed to in writing, software
12+
// distributed under the License is distributed on an "AS IS" BASIS,
13+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
// See the License for the specific language governing permissions and
15+
// limitations under the License.
16+
17+
// See https://go.microsoft.com/fwlink/?LinkId=733558
18+
// for the documentation about the tasks.json format
19+
20+
// Use IntelliSense to learn about possible attributes.
21+
// Hover to view descriptions of existing attributes.
22+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
23+
"version": "0.2.0",
24+
"configurations": [
25+
{
26+
"name": "Embedded Debug",
27+
"type": "embedded-debug",
28+
"request": "launch",
29+
"serialNumber": "${command:device-manager.getSerialNumber}",
30+
"program": "${command:cmsis-csolution.getBinaryFile}",
31+
"cmsisPack": "${command:device-manager.getDevicePack}",
32+
"debugFrom": "main"
33+
}
34+
]
35+
}
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{
2+
// Copyright (c) 2022, Arm Limited and affiliates.
3+
// SPDX-License-Identifier: Apache-2.0
4+
5+
// Licensed under the Apache License, Version 2.0 (the "License");
6+
// you may not use this file except in compliance with the License.
7+
// You may obtain a copy of the License at
8+
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
11+
// Unless required by applicable law or agreed to in writing, software
12+
// distributed under the License is distributed on an "AS IS" BASIS,
13+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
// See the License for the specific language governing permissions and
15+
// limitations under the License.
16+
17+
// See https://go.microsoft.com/fwlink/?LinkId=733558
18+
// for the documentation about the tasks.json format
19+
"version": "2.0.0",
20+
"tasks": [
21+
{
22+
"label": "Clean build files",
23+
"type": "shell",
24+
"command": "rm -rf $(find . -name \"*.cprj\" -o -name tmp -o -name out -o -name RTE -o -name .clangd -o -name \"*.cbuild*.yml\")",
25+
"group": {
26+
"kind": "build",
27+
"isDefault": false
28+
}
29+
},
30+
{
31+
"label": "Generate projects",
32+
"type": "shell",
33+
"command": "csolution",
34+
"args": [
35+
"convert",
36+
"-s",
37+
"${workspaceFolder}/mlek.csolution.yml"
38+
],
39+
"group": {
40+
"kind": "build",
41+
"isDefault": false
42+
},
43+
"dependsOn": [
44+
"Clean build files"
45+
]
46+
},
47+
{
48+
"label": "Build project",
49+
"type": "shell",
50+
"command": "cbuild",
51+
"args": [
52+
"${workspaceFolder}/${input:project}/${input:project}.${input:buildType}+${input:target}.cprj",
53+
"--rebuild",
54+
"--generator",
55+
"\"Unix Makefiles\"",
56+
"-j",
57+
"${input:nthreads}"
58+
],
59+
"group": {
60+
"kind": "build",
61+
"isDefault": false
62+
}
63+
},
64+
{
65+
"type": "cmsis-csolution.build",
66+
"project": "${command:cmsis-csolution.getCprjPath}",
67+
"problemMatcher": [],
68+
"label": "cmsis-csolution.build: Build"
69+
},
70+
{
71+
"type": "embedded-debug.flash",
72+
"serialNumber": "${command:device-manager.getSerialNumber}",
73+
"program": "${command:cmsis-csolution.getBinaryFile}",
74+
"cmsisPack": "${command:device-manager.getDevicePack}",
75+
"problemMatcher": [],
76+
"label": "embedded-debug.flash: Flash Device"
77+
}
78+
],
79+
80+
"inputs": [
81+
{
82+
"type": "pickString",
83+
"id": "project",
84+
"description": "Project to build",
85+
"options": [
86+
"object-detection",
87+
"kws",
88+
],
89+
"default": "object-detection"
90+
},
91+
{
92+
"type": "pickString",
93+
"id": "buildType",
94+
"description": "Build type",
95+
"options": [
96+
"Release",
97+
"Debug",
98+
],
99+
"default": "Release"
100+
},
101+
{
102+
"type": "pickString",
103+
"id": "target",
104+
"description": "Target to build for",
105+
"options": [
106+
"AVH-SSE-300-U55",
107+
"AVH-SSE-300-U65",
108+
"AVH-SSE-310-U55",
109+
"AVH-SSE-310-U65",
110+
"FRDM-K64F",
111+
"STM32F746-DISCO"
112+
],
113+
"default": "AVH-SSE-300-U55"
114+
},
115+
{
116+
"type": "promptString",
117+
"id": "nthreads",
118+
"description": "Number of CPU threads to spawn for build",
119+
"default": "4"
120+
},
121+
]
122+
}

0 commit comments

Comments
 (0)