From 1ea9aa6a55d17e2f1f0781bf1fab8643cb40a084 Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Fri, 28 Feb 2025 17:02:42 +0100 Subject: [PATCH] Changing vscode configuration to fit with the CG-90 --- .vscode/c_cpp_properties.json | 14 +++++------ .vscode/launch.json | 46 +++++++++++++++++++++++++++++++++++ .vscode/settings.json | 25 +++++++++++++++++-- .vscode/tasks.json | 10 ++++++-- 4 files changed, 84 insertions(+), 11 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index e2b50ba..9572856 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -3,11 +3,11 @@ { "name": "fx-9860G", "compilerPath": "~/.local/bin/sh-elf-gcc", - "compilerArgs": [ "-D FX9860G" ], - + "compilerArgs": [ + "-D FX9860G" + ], "cStandard": "c17", "cppStandard": "gnu++17", - "includePath": [], "intelliSenseMode": "${default}", "mergeConfigurations": false, @@ -19,11 +19,11 @@ { "name": "fx-CG50", "compilerPath": "~/.local/bin/sh-elf-gcc", - "compilerArgs": [ "-D FXCG50" ], - + "compilerArgs": [ + "-D FXCG50" + ], "cStandard": "c17", "cppStandard": "gnu++17", - "includePath": [], "intelliSenseMode": "${default}", "mergeConfigurations": false, @@ -34,4 +34,4 @@ } ], "version": 4 -} +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..6030ec6 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,46 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Build Send and Debug CG", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/build-cg/myaddin", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "miDebuggerPath": "/home/ulysse-cura/.local/bin/fxgdb-wrapper", + "setupCommands": [ + { + "description": "Activer la prise en charge de l'impression détaillée", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ], + "preLaunchTask": "Build CG and Send" + }, + { + "name": "Debug CG", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/build-cg/myaddin", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "miDebuggerPath": "/home/ulysse-cura/.local/bin/fxgdb-wrapper", + "setupCommands": [ + { + "description": "Activer la prise en charge de l'impression détaillée", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 3f9ef32..de6b62f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,6 +7,27 @@ "stdlib.h": "c", "kmalloc.h": "c", "types.h": "c", - "linked_list.h": "c" - } + "linked_list.h": "c", + "ostream": "cpp", + "stddef.h": "c", + "textures.h": "c", + "stdarg.h": "c", + "config.h": "c", + "exc.h": "c", + "util.h": "c", + "keydev.h": "c", + "keycodes.h": "c", + "stdio.h": "c", + "printf.h": "c", + "game.h": "c", + "event.h": "c", + "ecs.h": "c", + "components.h": "c", + "animation_system.h": "c", + "display-cg.h": "c", + "stdbool.h": "c", + "libimg.h": "c", + "stdint.h": "c" + }, + "C_Cpp.default.compilerPath": "/home/ulysse-cura/.local/bin/sh-elf-gcc" } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index b109c07..4934a0d 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -5,12 +5,18 @@ "label": "Build CG", "type": "shell", "command": "fxsdk build-cg", + "problemMatcher": ["$gcc"] + }, + { + "label": "Send G3A to Calculator", + "type": "shell", + "command": "fxlink -isw *.g3a", "problemMatcher": [] }, { - "label": "Copy G3A to Calculator", + "label": "Build CG and Send", "type": "shell", - "command": "cp ${workspaceFolder}/*.g3a /media/$USER/disk/ && udisksctl unmount -b /dev/sdc1 && udisksctl power-off -b /dev/sdc1", + "command": "fxsdk build-cg && fxlink -isw *.g3a", "problemMatcher": [] } ]