diff options
Diffstat (limited to 'quantum/mcu_selection.mk')
| -rw-r--r-- | quantum/mcu_selection.mk | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/quantum/mcu_selection.mk b/quantum/mcu_selection.mk index 5102010c7..24b2b2abd 100644 --- a/quantum/mcu_selection.mk +++ b/quantum/mcu_selection.mk | |||
| @@ -7,15 +7,15 @@ ifneq ($(findstring STM32F303, $(MCU)),) | |||
| 7 | 7 | ||
| 8 | # Linker script to use | 8 | # Linker script to use |
| 9 | # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | 9 | # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ |
| 10 | # or <this_dir>/ld/ | 10 | # or <keyboard_dir>/ld/ |
| 11 | MCU_LDSCRIPT ?= STM32F303xC | 11 | MCU_LDSCRIPT ?= STM32F303xC |
| 12 | 12 | ||
| 13 | # Startup code to use | 13 | # Startup code to use |
| 14 | # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/ | 14 | # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/ |
| 15 | MCU_STARTUP ?= stm32f3xx | 15 | MCU_STARTUP ?= stm32f3xx |
| 16 | 16 | ||
| 17 | # Board: it should exist either in <chibios>/os/hal/boards/ | 17 | # Board: it should exist either in <chibios>/os/hal/boards/, |
| 18 | # or <this_dir>/boards | 18 | # <keyboard_dir>/boards/, or drivers/boards/ |
| 19 | BOARD ?= GENERIC_STM32_F303XC | 19 | BOARD ?= GENERIC_STM32_F303XC |
| 20 | 20 | ||
| 21 | # Cortex version | 21 | # Cortex version |
| @@ -27,7 +27,7 @@ ifneq ($(findstring STM32F303, $(MCU)),) | |||
| 27 | USE_FPU = yes | 27 | USE_FPU = yes |
| 28 | 28 | ||
| 29 | # Vector table for application | 29 | # Vector table for application |
| 30 | # 0x00000000-0x00001000 area is occupied by bootlaoder.*/ | 30 | # 0x00000000-0x00001000 area is occupied by bootloader.*/ |
| 31 | # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB | 31 | # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB |
| 32 | # OPT_DEFS = -DCORTEX_VTOR_INIT=0x08005000 | 32 | # OPT_DEFS = -DCORTEX_VTOR_INIT=0x08005000 |
| 33 | 33 | ||
| @@ -75,6 +75,9 @@ ifneq (,$(filter $(MCU),atmega16u2 atmega32u2 atmega16u4 atmega32u4 at90usb646 a | |||
| 75 | endif | 75 | endif |
| 76 | 76 | ||
| 77 | ifneq (,$(filter $(MCU),atmega32a)) | 77 | ifneq (,$(filter $(MCU),atmega32a)) |
| 78 | # MCU name for avrdude | ||
| 79 | AVRDUDE_MCU = m32 | ||
| 80 | |||
| 78 | PROTOCOL = VUSB | 81 | PROTOCOL = VUSB |
| 79 | 82 | ||
| 80 | # Processor frequency. | 83 | # Processor frequency. |
| @@ -87,12 +90,12 @@ ifneq (,$(filter $(MCU),atmega32a)) | |||
| 87 | # unsupported features for now | 90 | # unsupported features for now |
| 88 | NO_UART ?= yes | 91 | NO_UART ?= yes |
| 89 | NO_SUSPEND_POWER_DOWN ?= yes | 92 | NO_SUSPEND_POWER_DOWN ?= yes |
| 90 | |||
| 91 | # Programming options | ||
| 92 | PROGRAM_CMD ?= ./util/atmega32a_program.py $(TARGET).hex | ||
| 93 | endif | 93 | endif |
| 94 | 94 | ||
| 95 | ifneq (,$(filter $(MCU),atmega328p)) | 95 | ifneq (,$(filter $(MCU),atmega328p)) |
| 96 | # MCU name for avrdude | ||
| 97 | AVRDUDE_MCU = m328p | ||
| 98 | |||
| 96 | PROTOCOL = VUSB | 99 | PROTOCOL = VUSB |
| 97 | 100 | ||
| 98 | # Processor frequency. | 101 | # Processor frequency. |
