Merged i2c-helper in Main

This commit is contained in:
AlexanderHD27
2025-01-12 00:16:00 +01:00
parent f4792de050
commit b5c7e5b4c1
396 changed files with 182143 additions and 14 deletions

View File

@@ -0,0 +1,18 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/include/**",
"${workspaceFolder}/lib/pico-sdk/lib/tinyusb/src"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c17",
"cppStandard": "c++14",
"intelliSenseMode": "linux-gcc-arm",
"configurationProvider": "ms-vscode.cmake-tools"
}
],
"version": 4
}

31
motor-control/firmware/.vscode/launch.json vendored Executable file
View File

@@ -0,0 +1,31 @@
{
// 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": "Pico: Debug External OpenOCD",
"cwd": "${workspaceRoot}",
"executable": "${command:cmake.launchTargetPath}",
"request": "launch",
"preLaunchTask": "Pico: flash main",
"type": "cortex-debug",
"servertype": "external",
"gdbPath" : "gdb-multiarch",
"gdbTarget": "gobot-rpi:3333",
"device": "RP2040",
"configFiles": [
"interface/cmsis-dap.cfg",
"target/rp2040.cfg"
],
"svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
"runToEntryPoint": "main",
"postRestartCommands": [
"continue"
]
}
]
}

View File

@@ -0,0 +1,79 @@
{
"cSpell.words": [
"apcsw",
"apreg",
"apsel",
"arrayname",
"baseaddr",
"Bhaskra",
"bitwidth",
"BOOTSEL",
"cget",
"channellist",
"charmsg",
"clkdiv",
"cpnum",
"deassert",
"deasserted",
"deasserting",
"doxygen",
"dpreg",
"drawio",
"dreq",
"eabi",
"eventlist",
"gpio",
"helptext",
"jtag",
"lindex",
"memaccess",
"microcontroller",
"multiarch",
"multicore",
"Pico",
"picoprobe",
"pindirs",
"pinout",
"pregen",
"resexit",
"semihosting",
"srst",
"struct",
"targetname",
"TPIU",
"trst",
"UART",
"virt",
"waitstate",
"watchpoint",
"watchpoints",
"wready"
],
"cmake.sourceDirectory": "/home/alexander/Projects/gobot/motor-control/firmware",
"cmake.buildDirectory": "${workspaceFolder}/build",
"cmake.configureOnOpen": true,
"files.associations": {
"timer.h": "c",
"stdlib.h": "c",
"stdio.h": "c",
"string.h": "c",
"assert.h": "c",
"gen.h": "c",
"multicore.h": "c",
"pio.h": "c",
"freertos.h": "c",
"random": "c",
"queue.h": "c",
"string_view": "c",
"instructionformat.h": "c",
"includeglobals.h": "c",
"dacconfig.h": "c",
"freertosconfig.h": "c",
"*.tcc": "cpp"
},
"cortex-debug.variableUseNaturalFormat": false,
"todo-tree.filtering.ignoreGitSubmodules": true,
"todo-tree.tree.showBadges": true,
"terminal.integrated.scrollback": 10000,
"C_Cpp.refactoring.includeHeader": "always",
}

View File

@@ -0,0 +1,165 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "cmake",
"label": "CMake: build main",
"command": "build",
"targets": [
"main"
],
"options": {
"cwd": "${workspaceRoot}"
},
"group": "build",
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "dedicated",
"showReuseMessage": true,
"clear": true
}
},
{
"type": "shell",
"label": "Pico: flash main",
"command": [
"scripts/flash.exp",
"${workspaceRoot}/build/bin/main.elf"
],
"options": {
"cwd": "${workspaceRoot}"
},
"group": "test",
"dependsOn": [
"CMake: build main"
],
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "dedicated",
"showReuseMessage": true,
"clear": true
}
},
{
"type": "shell",
"label": "Pico: launch openocd",
"command": [
"scripts/launch_openocd.sh"
],
"options": {
"cwd": "${workspaceRoot}"
},
"isBackground": true
},
{
"type": "shell",
"label": "Pico: Reset Device",
"command": [
"scripts/reset.exp"
],
"options": {
"cwd": "${workspaceRoot}"
},
"isBackground": true,
"problemMatcher": []
},
{
"type": "cmake",
"label": "CMake: Clean",
"command": "clean"
},
{
"type": "cmake",
"label": "CMake: Clean Rebuild",
"command": "cleanRebuild"
},
{
"type": "cmake",
"label": "CMake: Configure",
"command": "configure"
},
{
"type": "shell",
"label": "Doxygen: Generate Docs",
"command": [
"doxygen ./docs/Doxyfile"
],
"options": {
"cwd": "${workspaceRoot}"
}
},
{
"type": "shell",
"label": "Nuke Build Directory",
"command": [
"rm -rf build"
],
"options": {
"cwd": "${workspaceRoot}"
},
"problemMatcher": []
},
{
"type": "shell",
"label": "Pico Remote: Launch OpenOCD",
"command": [
"scripts/remote/run_openocd.exp",
"gobot-rpi",
],
"options": {
"cwd": "${workspaceRoot}"
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "dedicated",
"showReuseMessage": true,
"clear": true
},
"isBackground": true
},
{
"type": "shell",
"label": "Pico Remote: flash main",
"command": [
"scripts/remote/flash.sh",
"${workspaceRoot}/build/bin/main.elf",
"gobot-rpi",
],
"options": {
"cwd": "${workspaceRoot}"
},
"group": "test",
"dependsOn": [
"CMake: build main"
],
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "dedicated",
"showReuseMessage": true,
"clear": true
}
},
{
"type": "shell",
"label": "Pico Remote: Reset Device",
"command": [
"scripts/remote/reset.exp",
"gobot-rpi"
],
"options": {
"cwd": "${workspaceRoot}"
},
"isBackground": true,
"problemMatcher": []
},
]
}