Skip to content

A truly modular keyboard

C
5.8 KB
Raw Blame
# 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: keyword
# Can be C or C++
language: C

optimization: Og

# MCU settings
targetMCU: stm32wbx
cpu: cortex-m4 # type of cpu e.g. cortex-m4
fpu: fpv4-sp-d16 # Defines how floating points are defined. Can be left empty.
floatAbi: -mfloat-abi=hard
ldscript: stm32wb55xx_flash_cm4.ld # linker script

# Compiler definitions. The -D prefix for the compiler will be automatically added.
cDefinitions:
  - USER_VECT_TAB_ADDRESS
  - VECT_TAB_OFFSET=0x7000   # the app runs at 0x08007000 behind ota_bootloader/
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: 
  - -Wall
  - -fdata-sections
  - -ffunction-sections

cxxFlags: 
  - -fno-rtti
  - -fno-exceptions

assemblyFlags: 
  - -Wall
  - -fdata-sections
  - -ffunction-sections

linkerFlags: 
  - -Wl,--print-memory-usage


# libraries to be included. The -l prefix to the library will be automatically added.
libraries: 
  - c
  - m

# Library directories. Folders can be added here that contain custom libraries.
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.*"


# 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/**
  - Drivers/CH32V003
  - Shared
  - STM32_WPAN/App
  - Middlewares/ST/STM32_WPAN
  - Middlewares/ST/STM32_WPAN/ble
  - Middlewares/ST/STM32_WPAN/ble/core
  - Middlewares/ST/STM32_WPAN/ble/core/auto
  - Middlewares/ST/STM32_WPAN/ble/core/template
  - Middlewares/ST/STM32_WPAN/ble/svc/Inc
  - Middlewares/ST/STM32_WPAN/ble/svc/Src
  - Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread
  - Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/shci
  - Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/tl
  - Middlewares/ST/STM32_WPAN/utilities
  - Utilities/lpm/tiny_lpm
  - Utilities/sequencer
  - USB_Device/App
  - USB_Device/Target
  - Middlewares/ST/STM32_USB_Device_Library/Core/Inc
  - Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc


# 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/**
  - Drivers/CH32V003/**
  - STM32_WPAN/**
  - Drivers/STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_rtc.c
  - Drivers/STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_rtc_ex.c
  - Middlewares/ST/STM32_WPAN/ble/core/auto/ble_gap_aci.c
  - Middlewares/ST/STM32_WPAN/ble/core/auto/ble_gatt_aci.c
  - Middlewares/ST/STM32_WPAN/ble/core/auto/ble_hal_aci.c
  - Middlewares/ST/STM32_WPAN/ble/core/auto/ble_hci_le.c
  - Middlewares/ST/STM32_WPAN/ble/core/auto/ble_l2cap_aci.c
  - Middlewares/ST/STM32_WPAN/ble/core/template/osal.c
  - Middlewares/ST/STM32_WPAN/ble/svc/Src/bas.c
  - Middlewares/ST/STM32_WPAN/ble/svc/Src/dis.c
  - Middlewares/ST/STM32_WPAN/ble/svc/Src/hids.c
  - Middlewares/ST/STM32_WPAN/ble/svc/Src/svc_ctl.c
  - Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/shci/shci.c
  - Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/tl/hci_tl.c
  - Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/tl/hci_tl_if.c
  - Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/tl/shci_tl.c
  - Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/tl/shci_tl_if.c
  - Middlewares/ST/STM32_WPAN/interface/patterns/ble_thread/tl/tl_mbox.c
  - Middlewares/ST/STM32_WPAN/utilities/otp.c
  - Middlewares/ST/STM32_WPAN/utilities/stm_list.c
  - Middlewares/ST/STM32_WPAN/utilities/stm_queue.c
  - Utilities/lpm/tiny_lpm/stm32_lpm.c
  - Utilities/sequencer/stm32_seq.c
  - USB_Device/**
  - Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c
  - Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.c
  - Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c
  - Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src/usbd_cdc.c


# 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

# Custom makefile rules
# Here custom makefile rules can be added to the STM32Make.make file
# an example of how this can be used is commented out below.
customMakefileRules:
# - command: sayhello
#   rule: echo "hello"
#   dependsOn: $(BUILD_DIR)/$(TARGET).elf # can be left out    

# Additional flags which will be used when invoking the make command
makeFlags:
# - -O  # use this option when the output of make is mixed up only works for make version 4.0 and upwards
# - --silent # use this option to silence the output of the build