Skip to content

Commit

Permalink
Merge pull request #109 from kshitij-sisodia-arm/feature/mleco-3685
Browse files Browse the repository at this point in the history
MLECO-3648: Adding support for physical targets
  • Loading branch information
phorsman-arm authored Jan 4, 2023
2 parents 5a9fefd + 6035e99 commit 7128ef2
Show file tree
Hide file tree
Showing 49 changed files with 25,524 additions and 6,742 deletions.
57 changes: 57 additions & 0 deletions cmsis-pack-examples/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#
# Copyright (c) 2022 Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the License); you may
# not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an AS IS BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
---
Language: Cpp
BasedOnStyle: LLVM
IndentWidth: 4
ColumnLimit: 100
AccessModifierOffset: -4
PointerAlignment: Left
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignConsecutiveMacros: true
AlignEscapedNewlines: Left
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortFunctionsOnASingleLine: Empty
AllowShortBlocksOnASingleLine: true
AlwaysBreakTemplateDeclarations: true
BinPackArguments: false
BinPackParameters: false
BreakInheritanceList: AfterColon
BreakConstructorInitializers: AfterColon
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: true
NamespaceIndentation: Inner
---

35 changes: 35 additions & 0 deletions cmsis-pack-examples/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
// Copyright (c) 2022, Arm Limited and affiliates.
// SPDX-License-Identifier: Apache-2.0

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at

// http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format

// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Embedded Debug",
"type": "embedded-debug",
"request": "launch",
"serialNumber": "${command:device-manager.getSerialNumber}",
"program": "${command:cmsis-csolution.getBinaryFile}",
"cmsisPack": "${command:device-manager.getDevicePack}",
"debugFrom": "main"
}
]
}
122 changes: 122 additions & 0 deletions cmsis-pack-examples/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
// Copyright (c) 2022, Arm Limited and affiliates.
// SPDX-License-Identifier: Apache-2.0

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at

// http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Clean build files",
"type": "shell",
"command": "rm -rf $(find . -name \"*.cprj\" -o -name tmp -o -name out -o -name RTE -o -name .clangd -o -name \"*.cbuild*.yml\")",
"group": {
"kind": "build",
"isDefault": false
}
},
{
"label": "Generate projects",
"type": "shell",
"command": "csolution",
"args": [
"convert",
"-s",
"${workspaceFolder}/mlek.csolution.yml"
],
"group": {
"kind": "build",
"isDefault": false
},
"dependsOn": [
"Clean build files"
]
},
{
"label": "Build project",
"type": "shell",
"command": "cbuild",
"args": [
"${workspaceFolder}/${input:project}/${input:project}.${input:buildType}+${input:target}.cprj",
"--rebuild",
"--generator",
"\"Unix Makefiles\"",
"-j",
"${input:nthreads}"
],
"group": {
"kind": "build",
"isDefault": false
}
},
{
"type": "cmsis-csolution.build",
"project": "${command:cmsis-csolution.getCprjPath}",
"problemMatcher": [],
"label": "cmsis-csolution.build: Build"
},
{
"type": "embedded-debug.flash",
"serialNumber": "${command:device-manager.getSerialNumber}",
"program": "${command:cmsis-csolution.getBinaryFile}",
"cmsisPack": "${command:device-manager.getDevicePack}",
"problemMatcher": [],
"label": "embedded-debug.flash: Flash Device"
}
],

"inputs": [
{
"type": "pickString",
"id": "project",
"description": "Project to build",
"options": [
"object-detection",
"kws",
],
"default": "object-detection"
},
{
"type": "pickString",
"id": "buildType",
"description": "Build type",
"options": [
"Release",
"Debug",
],
"default": "Release"
},
{
"type": "pickString",
"id": "target",
"description": "Target to build for",
"options": [
"AVH-SSE-300-U55",
"AVH-SSE-300-U65",
"AVH-SSE-310-U55",
"AVH-SSE-310-U65",
"FRDM-K64F",
"STM32F746-DISCO"
],
"default": "AVH-SSE-300-U55"
},
{
"type": "promptString",
"id": "nthreads",
"description": "Number of CPU threads to spawn for build",
"default": "4"
},
]
}
Loading

0 comments on commit 7128ef2

Please sign in to comment.