From ce6b581f65a7f4ceacc3d95e492f340ec53eb33a Mon Sep 17 00:00:00 2001 From: JbLb Date: Fri, 7 Feb 2020 23:40:58 +0100 Subject: [PATCH] add config file for Visual Studio Code --- .gitignore | 3 --- .vscode/arduino.json | 5 +++++ .vscode/launch.json | 34 ++++++++++++++++++++++++++++++++ hoverserial.code-workspace | 8 ++++++++ test_f103.ino => hoverserial.ino | 0 5 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 .vscode/arduino.json create mode 100644 .vscode/launch.json create mode 100644 hoverserial.code-workspace rename test_f103.ino => hoverserial.ino (100%) diff --git a/.gitignore b/.gitignore index 08a5aea..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +0,0 @@ -.vscode/c_cpp_properties.json -.vscode/arduino.json -test_f103_vs.code-workspace diff --git a/.vscode/arduino.json b/.vscode/arduino.json new file mode 100644 index 0000000..bc36705 --- /dev/null +++ b/.vscode/arduino.json @@ -0,0 +1,5 @@ +{ + "board": "STM32:stm32:GenF1", + "configuration": "pnum=BLUEPILL_F103C8,upload_method=swdMethod,xserial=generic,usb=CDCgen,xusb=FS,opt=osstd,rtlib=nano", + "port": "/dev/ttyACM0" +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..54f6b36 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,34 @@ +// AUTOMATICALLY GENERATED FILE. PLEASE DO NOT MODIFY IT MANUALLY + +// PIO Unified Debugger +// +// Documentation: https://docs.platformio.org/page/plus/debugging.html +// Configuration: https://docs.platformio.org/page/projectconf/section_env_debug.html + +{ + "version": "0.2.0", + "configurations": [ + { + "type": "platformio-debug", + "request": "launch", + "name": "PIO Debug", + "executable": "/home/jerome/spare/hoverboard/hoverboard-firmware-hack-FOC/02_Arduino/hoverserial/.pio/build/bluepill_f103c8_128k/firmware.elf", + "toolchainBinDir": "/home/jerome/.platformio/packages/toolchain-gccarmnoneeabi/bin", + "svdPath": "/home/jerome/.platformio/platforms/ststm32/misc/svd/STM32F103xx.svd", + "preLaunchTask": { + "type": "PlatformIO", + "task": "Pre-Debug" + }, + "internalConsoleOptions": "openOnSessionStart" + }, + { + "type": "platformio-debug", + "request": "launch", + "name": "PIO Debug (skip Pre-Debug)", + "executable": "/home/jerome/spare/hoverboard/hoverboard-firmware-hack-FOC/02_Arduino/hoverserial/.pio/build/bluepill_f103c8_128k/firmware.elf", + "toolchainBinDir": "/home/jerome/.platformio/packages/toolchain-gccarmnoneeabi/bin", + "svdPath": "/home/jerome/.platformio/platforms/ststm32/misc/svd/STM32F103xx.svd", + "internalConsoleOptions": "openOnSessionStart" + } + ] +} \ No newline at end of file diff --git a/hoverserial.code-workspace b/hoverserial.code-workspace new file mode 100644 index 0000000..876a149 --- /dev/null +++ b/hoverserial.code-workspace @@ -0,0 +1,8 @@ +{ + "folders": [ + { + "path": "." + } + ], + "settings": {} +} \ No newline at end of file diff --git a/test_f103.ino b/hoverserial.ino similarity index 100% rename from test_f103.ino rename to hoverserial.ino