aboutsummaryrefslogtreecommitdiff
path: root/quantum/mcu_selection.mk
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/mcu_selection.mk')
-rw-r--r--quantum/mcu_selection.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/quantum/mcu_selection.mk b/quantum/mcu_selection.mk
index 53e03a805..2e4d25008 100644
--- a/quantum/mcu_selection.mk
+++ b/quantum/mcu_selection.mk
@@ -139,6 +139,9 @@ ifneq ($(findstring STM32F042, $(MCU)),)
139 # Options to pass to dfu-util when flashing 139 # Options to pass to dfu-util when flashing
140 DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave 140 DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave
141 DFU_SUFFIX_ARGS ?= -v 0483 -p DF11 141 DFU_SUFFIX_ARGS ?= -v 0483 -p DF11
142
143 # UF2 settings
144 UF2_FAMILY ?= STM32F0
142endif 145endif
143 146
144ifneq ($(findstring STM32F072, $(MCU)),) 147ifneq ($(findstring STM32F072, $(MCU)),)
@@ -172,6 +175,9 @@ ifneq ($(findstring STM32F072, $(MCU)),)
172 # Options to pass to dfu-util when flashing 175 # Options to pass to dfu-util when flashing
173 DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave 176 DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave
174 DFU_SUFFIX_ARGS ?= -v 0483 -p DF11 177 DFU_SUFFIX_ARGS ?= -v 0483 -p DF11
178
179 # UF2 settings
180 UF2_FAMILY ?= STM32F0
175endif 181endif
176 182
177ifneq ($(findstring STM32F103, $(MCU)),) 183ifneq ($(findstring STM32F103, $(MCU)),)
@@ -205,6 +211,9 @@ ifneq ($(findstring STM32F103, $(MCU)),)
205 # Options to pass to dfu-util when flashing 211 # Options to pass to dfu-util when flashing
206 DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave 212 DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave
207 DFU_SUFFIX_ARGS ?= -v 0483 -p DF11 213 DFU_SUFFIX_ARGS ?= -v 0483 -p DF11
214
215 # UF2 settings
216 UF2_FAMILY ?= STM32F1
208endif 217endif
209 218
210ifneq ($(findstring STM32F303, $(MCU)),) 219ifneq ($(findstring STM32F303, $(MCU)),)
@@ -238,6 +247,9 @@ ifneq ($(findstring STM32F303, $(MCU)),)
238 # Options to pass to dfu-util when flashing 247 # Options to pass to dfu-util when flashing
239 DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave 248 DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave
240 DFU_SUFFIX_ARGS ?= -v 0483 -p DF11 249 DFU_SUFFIX_ARGS ?= -v 0483 -p DF11
250
251 # UF2 settings
252 UF2_FAMILY ?= STM32F3
241endif 253endif
242 254
243ifneq ($(findstring STM32F401, $(MCU)),) 255ifneq ($(findstring STM32F401, $(MCU)),)
@@ -271,6 +283,9 @@ ifneq ($(findstring STM32F401, $(MCU)),)
271 # Options to pass to dfu-util when flashing 283 # Options to pass to dfu-util when flashing
272 DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave 284 DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave
273 DFU_SUFFIX_ARGS ?= -v 0483 -p DF11 285 DFU_SUFFIX_ARGS ?= -v 0483 -p DF11
286
287 # UF2 settings
288 UF2_FAMILY ?= STM32F4
274endif 289endif
275 290
276ifneq ($(findstring STM32F411, $(MCU)),) 291ifneq ($(findstring STM32F411, $(MCU)),)
@@ -304,6 +319,9 @@ ifneq ($(findstring STM32F411, $(MCU)),)
304 # Options to pass to dfu-util when flashing 319 # Options to pass to dfu-util when flashing
305 DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave 320 DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave
306 DFU_SUFFIX_ARGS ?= -v 0483 -p DF11 321 DFU_SUFFIX_ARGS ?= -v 0483 -p DF11
322
323 # UF2 settings
324 UF2_FAMILY ?= STM32F4
307endif 325endif
308 326
309ifneq ($(findstring STM32G431, $(MCU)),) 327ifneq ($(findstring STM32G431, $(MCU)),)
@@ -337,6 +355,9 @@ ifneq ($(findstring STM32G431, $(MCU)),)
337 # Options to pass to dfu-util when flashing 355 # Options to pass to dfu-util when flashing
338 DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave 356 DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave
339 DFU_SUFFIX_ARGS ?= -v 0483 -p DF11 357 DFU_SUFFIX_ARGS ?= -v 0483 -p DF11
358
359 # UF2 settings
360 UF2_FAMILY ?= STM32G4
340endif 361endif
341 362
342ifneq ($(findstring STM32G474, $(MCU)),) 363ifneq ($(findstring STM32G474, $(MCU)),)
@@ -370,6 +391,9 @@ ifneq ($(findstring STM32G474, $(MCU)),)
370 # Options to pass to dfu-util when flashing 391 # Options to pass to dfu-util when flashing
371 DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave 392 DFU_ARGS ?= -d 0483:DF11 -a 0 -s 0x08000000:leave
372 DFU_SUFFIX_ARGS ?= -v 0483 -p DF11 393 DFU_SUFFIX_ARGS ?= -v 0483 -p DF11
394
395 # UF2 settings
396 UF2_FAMILY ?= STM32G4
373endif 397endif
374 398
375ifneq (,$(filter $(MCU),at90usb162 atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 at90usb647 at90usb1286 at90usb1287)) 399ifneq (,$(filter $(MCU),at90usb162 atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 at90usb647 at90usb1286 at90usb1287))