configure vscode

This commit is contained in:
2023-03-25 17:58:36 +01:00
parent 2140308b50
commit 42c8f0bc1b
8 changed files with 36744 additions and 101 deletions

View File

@@ -0,0 +1 @@
[]

View File

@@ -0,0 +1 @@
[]

24
firmware/.vscode/c_cpp_properties.json vendored Normal file
View File

@@ -0,0 +1,24 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/func_gen_stm32f303re_nucleo/Core/**",
"${workspaceFolder}/func_gen_stm32f303re_nucleo/Drivers/**",
"${workspaceFolder}/shared_libs/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE",
"STM32F303xE",
"USE_HAL_DRIVER"
],
"compilerPath": "C:/MyApps/arm-gcc/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gcc.exe",
"cStandard": "c11",
"cppStandard": "gnu++17",
"intelliSenseMode": "windows-gcc-arm"
}
],
"version": 4
}

33
firmware/.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,33 @@
{
// 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": "Cortex Debug Nucloe",
"cwd": "${workspaceFolder}/func_gen_stm32f303re_nucleo/",
"executable": "./build/func_gen_stm32f303re_nucleo.elf",
"request": "launch",
"type": "cortex-debug",
"runToEntryPoint": "main",
"servertype": "jlink",
"device": "STM32F303RE",
"interface": "swd",
"runToMain": true,
"svdFile": "STM32F303xE.svd",
// "swoConfig": {
// "enabled": false,
// "cpuFrequency": 8000000,
// "swoFrequency": 2000000,
// "source": "probe",
// "decoders": [{
// "type": "console",
// "label": "ITM",
// "port": 0
// }
// ]
// }]
}
]
}

22
firmware/.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,22 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "f303re",
"command": "C:/MyApps/mingw64/bin/make.exe",
"options": {
"cwd": "${workspaceFolder}/func_gen_stm32f303re_nucleo"
},
"args": [
"-j"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}

View File

@@ -0,0 +1 @@
build

View File

@@ -128,8 +128,7 @@ void SystemClock_Config(void)
/** Initializes the CPU, AHB and APB buses clocks /** Initializes the CPU, AHB and APB buses clocks
*/ */
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2;
|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2;

File diff suppressed because it is too large Load Diff