diff options
Diffstat (limited to 'platforms/chibios/mcu_selection.mk')
| -rw-r--r-- | platforms/chibios/mcu_selection.mk | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/platforms/chibios/mcu_selection.mk b/platforms/chibios/mcu_selection.mk index a1597fa1e9..086a2b31c6 100644 --- a/platforms/chibios/mcu_selection.mk +++ b/platforms/chibios/mcu_selection.mk | |||
| @@ -809,6 +809,40 @@ ifneq ($(findstring WB32FQ95, $(MCU)),) | |||
| 809 | WB32_BOOTLOADER_ADDRESS ?= 0x1FFFE000 | 809 | WB32_BOOTLOADER_ADDRESS ?= 0x1FFFE000 |
| 810 | endif | 810 | endif |
| 811 | 811 | ||
| 812 | ifneq ($(findstring AT32F415, $(MCU)),) | ||
| 813 | # Cortex version | ||
| 814 | MCU = cortex-m4 | ||
| 815 | |||
| 816 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
| 817 | ARMV = 7 | ||
| 818 | |||
| 819 | ## chip/board settings | ||
| 820 | # - the next two should match the directories in | ||
| 821 | # <chibios[-contrib]>/os/hal/ports/$(MCU_PORT_NAME)/$(MCU_SERIES) | ||
| 822 | # OR | ||
| 823 | # <chibios[-contrib]>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
| 824 | MCU_FAMILY = AT32 | ||
| 825 | MCU_SERIES = AT32F415 | ||
| 826 | |||
| 827 | # Linker script to use | ||
| 828 | # - it should exist either in <chibios>/os/common/startup/ARMCMx/compilers/GCC/ld/ | ||
| 829 | # or <keyboard_dir>/ld/ | ||
| 830 | MCU_LDSCRIPT ?= AT32F415xB | ||
| 831 | |||
| 832 | # Startup code to use | ||
| 833 | # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/ | ||
| 834 | MCU_STARTUP ?= at32f415 | ||
| 835 | |||
| 836 | # Board: it should exist either in <chibios>/os/hal/boards/, | ||
| 837 | # <keyboard_dir>/boards/, or drivers/boards/ | ||
| 838 | BOARD ?= GENERIC_AT32_F415XX | ||
| 839 | |||
| 840 | USE_FPU ?= no | ||
| 841 | |||
| 842 | # Bootloader address for AT32 DFU | ||
| 843 | AT32_BOOTLOADER_ADDRESS ?= 0x1FFFAC00 | ||
| 844 | endif | ||
| 845 | |||
| 812 | ifneq ($(findstring GD32VF103, $(MCU)),) | 846 | ifneq ($(findstring GD32VF103, $(MCU)),) |
| 813 | # RISC-V | 847 | # RISC-V |
| 814 | MCU = risc-v | 848 | MCU = risc-v |
