mirror of
https://github.com/stasenso/rp_pico_display_engine.git
synced 2026-06-26 21:32:41 +03:00
Add EngineDemo board presets
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Linux",
|
||||||
|
"includePath": [
|
||||||
|
"${workspaceFolder}/**",
|
||||||
|
"${env:PICO_SDK_PATH}/src/common/pico_stdlib_headers/include"
|
||||||
|
],
|
||||||
|
"defines": [],
|
||||||
|
"cStandard": "c17",
|
||||||
|
"cppStandard": "c++17",
|
||||||
|
"intelliSenseMode": "linux-clang-x64",
|
||||||
|
"configurationProvider": "ms-vscode.cmake-tools",
|
||||||
|
"compileCommands": "${workspaceFolder}/Examples/Thermometr/build/compile_commands.json"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"version": 4
|
||||||
|
}
|
||||||
+41
@@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Pico RP2040 Debug",
|
||||||
|
"type": "cortex-debug",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"executable": "${workspaceFolder}/build-rp2040/engine_demo_example.elf",
|
||||||
|
|
||||||
|
"request": "launch",
|
||||||
|
"servertype": "external",
|
||||||
|
"gdbPath": "gdb-multiarch",
|
||||||
|
"gdbTarget": "localhost:3333",
|
||||||
|
"svdFile": "${env:HOME}/pico/pico-sdk/src/rp2040/hardware_regs/RP2040.svd",
|
||||||
|
"runToEntryPoint": "main",
|
||||||
|
"postRestartCommands": [
|
||||||
|
"break main",
|
||||||
|
"continue"
|
||||||
|
],
|
||||||
|
"showDevDebugOutput": "raw"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Pico 2 RP2350 Debug",
|
||||||
|
"type": "cortex-debug",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"executable": "${workspaceFolder}/build-rp2350/engine_demo_example.elf",
|
||||||
|
|
||||||
|
"request": "launch",
|
||||||
|
"servertype": "external",
|
||||||
|
"gdbPath": "gdb-multiarch",
|
||||||
|
"gdbTarget": "localhost:3333",
|
||||||
|
"svdFile": "${env:HOME}/pico/pico-sdk/src/rp2350/hardware_regs/RP2350.svd",
|
||||||
|
"runToEntryPoint": "main",
|
||||||
|
"postRestartCommands": [
|
||||||
|
"break main",
|
||||||
|
"continue"
|
||||||
|
],
|
||||||
|
"showDevDebugOutput": "raw"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"cmake.ignoreCMakeListsMissing": true,
|
||||||
|
"cmake.useCMakePresets": "always"
|
||||||
|
}
|
||||||
@@ -1,4 +1,9 @@
|
|||||||
cmake_minimum_required(VERSION 3.18.4)
|
cmake_minimum_required(VERSION 3.18.4)
|
||||||
|
|
||||||
|
if(NOT DEFINED PICO_BOARD)
|
||||||
|
set(PICO_BOARD pico2 CACHE STRING "Target board")
|
||||||
|
endif()
|
||||||
|
|
||||||
include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)
|
include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)
|
||||||
|
|
||||||
project(engine_demo_example C CXX ASM)
|
project(engine_demo_example C CXX ASM)
|
||||||
|
|||||||
@@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"configurePresets": [
|
||||||
|
{
|
||||||
|
"name": "rp2040",
|
||||||
|
"displayName": "RP2040 / Pico",
|
||||||
|
"generator": "Unix Makefiles",
|
||||||
|
"binaryDir": "${sourceDir}/build-rp2040",
|
||||||
|
"cacheVariables": {
|
||||||
|
"PICO_BOARD": "pico",
|
||||||
|
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "rp2350",
|
||||||
|
"displayName": "RP2350 / Pico 2",
|
||||||
|
"generator": "Unix Makefiles",
|
||||||
|
"binaryDir": "${sourceDir}/build-rp2350",
|
||||||
|
"cacheVariables": {
|
||||||
|
"PICO_BOARD": "pico2",
|
||||||
|
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"buildPresets": [
|
||||||
|
{
|
||||||
|
"name": "rp2040",
|
||||||
|
"configurePreset": "rp2040",
|
||||||
|
"targets": [
|
||||||
|
"engine_demo_example"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "rp2350",
|
||||||
|
"configurePreset": "rp2350",
|
||||||
|
"targets": [
|
||||||
|
"engine_demo_example"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user