-
Notifications
You must be signed in to change notification settings - Fork 2
/
STM32-for-VSCode.config.yaml
109 lines (96 loc) · 3.19 KB
/
STM32-for-VSCode.config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Configuration file for the STM32 for VSCode extension
# Arrays can be inputted in two ways. One is: [entry_1, entry_2, ..., entry_final]
# or by adding an indented list below the variable name e.g.:
# VARIABLE:
# - entry_1
# - entry_2
# The project name
target: fenice-bms-lv
# Can be C or C++
language: C
optimization: Og
# MCU settings
targetMCU: stm32f4x
cpu: -mcpu=cortex-m4
fpu: -mfpu=fpv4-sp-d16
floatAbi: -mfloat-abi=hard
#ldscript: STM32F446RETx_FLASH_BLT.ld
ldscript: STM32F446RETx_FLASH.ld # linker script
# Compiler definitions. The -D prefix for the compiler will be automatically added.
cDefinitions:
- USE_HAL_DRIVER
- STM32F446xx
- LTC_COUNT=1
- NOLOGGER
- ERROR_LIB_IMPLEMENTATION
cxxDefinitions: []
asDefinitions: []
# Compiler definition files. you can add a single files or an array of files for different definitions.
# The file is expected to have a definition each new line.
# This allows to include for example a .definition file which can be ignored in git and can contain
# This can be convenient for passing along secrets at compile time, or generating a file for per device setup.
cDefinitionsFile:
cxxDefinitionsFile:
asDefinitionsFile:
# Compiler flags
cFlags:
[]
#- -Wpacked
#- -Wattributes
#- -Wpadded
cxxFlags: []
linkerFlags:
- -specs=nano.specs
- -u_printf_float
# libraries to be included. The -l prefix to the library will be automatically added.
# Mind that non standard libraries should have a path to their respective directory.
libraries:
- c
- m
- nosys
libraryDirectories: []
# Files or folders that will be excluded from compilation.
# Glob patterns (https://www.wikiwand.com/en/Glob_(programming)) can be used.
# Do mind that double stars are reserved in yaml
# these should be escaped with a: \ or the name should be in double quotes e.g. "**.test.**"
excludes:
- "**/Examples/**"
- "**/examples/**"
- "**/Example/**"
- "**/example/**"
- "**_template.*"
- "**/micro-libs/can-fifo-queue/**"
- "**/micro-libs/priority-queue/priority_queue.*"
- "**/micro-libs/fsm/**"
- "**/micro-libs/fsm/**"
- "**/micro-libs/munit/**"
- "**/micro-libs/logger/**"
- "**/micro-libs/can-sensor-programmer/**"
- "**/micro-libs/m95256/**"
- "**/micro-libs/eeprom-config/**"
- "**/test.c"
- "**/test/**"
- "**/*.pb.*"
- "**/peripherals/**"
- "**/bin2srec/**"
# Include directories (directories containing .h or .hpp files)
# If a CubeMX makefile is present it will automatically include the include directories from that makefile.
includeDirectories:
- Inc/**
- Core/Inc/**
- Core/Lib/**
- Src/**
- Core/Src/**
- Core/Lib/**
# Files that should be included in the compilation.
# If a CubeMX makefile is present it will automatically include the c and cpp/cxx files from that makefile.
# Glob patterns (https://www.wikiwand.com/en/Glob_(programming)) can be used.
# Do mind that double stars are reserved in yaml
# these should be escaped with a: \ or the name should be in double quotes e.g. "HARDWARE_DRIVER*.c"
sourceFiles:
- Src/**
- Core/Src/**
- Core/Lib/**
# When no makefile is present it will show a warning pop-up.
# However when compilation without the CubeMX Makefile is desired, this can be turned of.
suppressMakefileWarning: false