diff options
Diffstat (limited to 'quantum/mcu_selection.mk')
| -rw-r--r-- | quantum/mcu_selection.mk | 24 |
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 | ||
| 142 | endif | 145 | endif |
| 143 | 146 | ||
| 144 | ifneq ($(findstring STM32F072, $(MCU)),) | 147 | ifneq ($(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 | ||
| 175 | endif | 181 | endif |
| 176 | 182 | ||
| 177 | ifneq ($(findstring STM32F103, $(MCU)),) | 183 | ifneq ($(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 | ||
| 208 | endif | 217 | endif |
| 209 | 218 | ||
| 210 | ifneq ($(findstring STM32F303, $(MCU)),) | 219 | ifneq ($(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 | ||
| 241 | endif | 253 | endif |
| 242 | 254 | ||
| 243 | ifneq ($(findstring STM32F401, $(MCU)),) | 255 | ifneq ($(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 | ||
| 274 | endif | 289 | endif |
| 275 | 290 | ||
| 276 | ifneq ($(findstring STM32F411, $(MCU)),) | 291 | ifneq ($(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 | ||
| 307 | endif | 325 | endif |
| 308 | 326 | ||
| 309 | ifneq ($(findstring STM32G431, $(MCU)),) | 327 | ifneq ($(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 | ||
| 340 | endif | 361 | endif |
| 341 | 362 | ||
| 342 | ifneq ($(findstring STM32G474, $(MCU)),) | 363 | ifneq ($(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 | ||
| 373 | endif | 397 | endif |
| 374 | 398 | ||
| 375 | ifneq (,$(filter $(MCU),at90usb162 atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 at90usb647 at90usb1286 at90usb1287)) | 399 | ifneq (,$(filter $(MCU),at90usb162 atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 at90usb647 at90usb1286 at90usb1287)) |
