aboutsummaryrefslogtreecommitdiff
path: root/quantum/stm32/proton_c.mk
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/stm32/proton_c.mk')
-rw-r--r--quantum/stm32/proton_c.mk44
1 files changed, 44 insertions, 0 deletions
diff --git a/quantum/stm32/proton_c.mk b/quantum/stm32/proton_c.mk
new file mode 100644
index 000000000..a0fa01373
--- /dev/null
+++ b/quantum/stm32/proton_c.mk
@@ -0,0 +1,44 @@
1# Proton C MCU settings for converting AVR projects
2
3# These are defaults based on what has been implemented for ARM boards
4AUDIO_ENABLE = yes
5RGBLIGHT_ENABLE = no
6BACKLIGHT_ENABLE = no
7
8# The rest of these settings shouldn't change
9
10## chip/board settings
11# - the next two should match the directories in
12# <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
13MCU_FAMILY = STM32
14MCU_SERIES = STM32F3xx
15
16# Linker script to use
17# - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
18# or <this_dir>/ld/
19MCU_LDSCRIPT = STM32F303xC
20
21# Startup code to use
22# - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
23MCU_STARTUP = stm32f3xx
24
25# Board: it should exist either in <chibios>/os/hal/boards/
26# or <this_dir>/boards
27BOARD = GENERIC_STM32_F303XC
28
29# Cortex version
30MCU = cortex-m4
31
32# ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
33ARMV = 7
34
35USE_FPU = yes
36
37# Vector table for application
38# 0x00000000-0x00001000 area is occupied by bootlaoder.*/
39# The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
40# OPT_DEFS = -DCORTEX_VTOR_INIT=0x08005000
41OPT_DEFS =
42
43# Options to pass to dfu-util when flashing
44DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave