diff options
Diffstat (limited to 'quantum/mcu_selection.mk')
| -rw-r--r-- | quantum/mcu_selection.mk | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/quantum/mcu_selection.mk b/quantum/mcu_selection.mk index 622b4a82f..7c4a617af 100644 --- a/quantum/mcu_selection.mk +++ b/quantum/mcu_selection.mk | |||
| @@ -541,6 +541,37 @@ ifneq (,$(filter $(MCU),STM32L412 STM32L422)) | |||
| 541 | UF2_FAMILY ?= STM32L4 | 541 | UF2_FAMILY ?= STM32L4 |
| 542 | endif | 542 | endif |
| 543 | 543 | ||
| 544 | ifneq ($(findstring GD32VF103, $(MCU)),) | ||
| 545 | # RISC-V | ||
| 546 | MCU = risc-v | ||
| 547 | |||
| 548 | # RISC-V extensions and abi configuration | ||
| 549 | MCU_ARCH = rv32imac | ||
| 550 | MCU_ABI = ilp32 | ||
| 551 | MCU_CMODEL = medlow | ||
| 552 | |||
| 553 | ## chip/board settings | ||
| 554 | # - the next two should match the directories in | ||
| 555 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
| 556 | MCU_FAMILY = GD32V | ||
| 557 | MCU_SERIES = GD32VF103 | ||
| 558 | |||
| 559 | # Linker script to use | ||
| 560 | # - it should exist either in <chibios>/os/common/startup/RISCV-ECLIC/compilers/GCC/ld/ | ||
| 561 | # or <keyboard_dir>/ld/ | ||
| 562 | MCU_LDSCRIPT ?= GD32VF103xB | ||
| 563 | |||
| 564 | # Startup code to use | ||
| 565 | # - it should exist in <chibios>/os/common/startup/RISCV-ECLIC/compilers/GCC/mk/ | ||
| 566 | MCU_STARTUP ?= gd32vf103 | ||
| 567 | |||
| 568 | # Board: it should exist either in <chibios>/os/hal/boards/, | ||
| 569 | # <keyboard_dir>/boards/, or drivers/boards/ | ||
| 570 | BOARD ?= SIPEED_LONGAN_NANO | ||
| 571 | |||
| 572 | USE_FPU ?= no | ||
| 573 | endif | ||
| 574 | |||
| 544 | ifneq (,$(filter $(MCU),at90usb162 atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 at90usb647 at90usb1286 at90usb1287)) | 575 | ifneq (,$(filter $(MCU),at90usb162 atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 at90usb647 at90usb1286 at90usb1287)) |
| 545 | PROTOCOL = LUFA | 576 | PROTOCOL = LUFA |
| 546 | 577 | ||
