diff options
| author | Ryan <fauxpark@gmail.com> | 2020-09-19 13:00:18 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-18 20:00:18 -0700 |
| commit | 0140baf7e0b041df841f8782743344a4ebe4ebe1 (patch) | |
| tree | 91d933bc255432b751e8535dff501bbb0206d7a3 /keyboards/phoenix | |
| parent | b0024470ed347271e29b2de4d0442f855a26345c (diff) | |
| download | qmk_firmware-0140baf7e0b041df841f8782743344a4ebe4ebe1.tar.gz qmk_firmware-0140baf7e0b041df841f8782743344a4ebe4ebe1.zip | |
Add STM32F401/F411 to mcu_selection.mk (#10278)
* Reorder STM32 MCUs
* Add STM32F4xx to mcu_selection.mk
* Set MCU for phoenix and tkw/stoutgat/v2/f411
Diffstat (limited to 'keyboards/phoenix')
| -rw-r--r-- | keyboards/phoenix/rules.mk | 34 |
1 files changed, 6 insertions, 28 deletions
diff --git a/keyboards/phoenix/rules.mk b/keyboards/phoenix/rules.mk index 6c6c8446a..968c6548c 100644 --- a/keyboards/phoenix/rules.mk +++ b/keyboards/phoenix/rules.mk | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = STM32F401 | ||
| 3 | |||
| 4 | # Address of the bootloader in system memory | ||
| 5 | STM32_BOOTLOADER_ADDRESS = 0x1FFF0000 | ||
| 6 | |||
| 1 | # Build Options | 7 | # Build Options |
| 2 | # change yes to no to disable | 8 | # change yes to no to disable |
| 3 | # | 9 | # |
| @@ -17,32 +23,4 @@ SPLIT_KEYBOARD = yes | |||
| 17 | SERIAL_DRIVER = usart | 23 | SERIAL_DRIVER = usart |
| 18 | KEYBOARD_SHARED_EP = yes | 24 | KEYBOARD_SHARED_EP = yes |
| 19 | 25 | ||
| 20 | ## chip/board settings | ||
| 21 | # the next two should match the directories in | ||
| 22 | # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES) | ||
| 23 | MCU_FAMILY = STM32 | ||
| 24 | MCU_SERIES = STM32F4xx | ||
| 25 | # linker script to use | ||
| 26 | # it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/ | ||
| 27 | # or <this_dir>/ld/ | ||
| 28 | MCU_LDSCRIPT = STM32F401xC | ||
| 29 | # startup code to use | ||
| 30 | # is should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | ||
| 31 | MCU_STARTUP = stm32f4xx | ||
| 32 | # it should exist either in <chibios>/os/hal/boards/ | ||
| 33 | # or <this_dir>/boards | ||
| 34 | BOARD = BLACKPILL_STM32_F401 | ||
| 35 | # Cortex version | ||
| 36 | # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4 | ||
| 37 | MCU = cortex-m4 | ||
| 38 | # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7 | ||
| 39 | ARMV = 7 | ||
| 40 | USE_FPU = yes | ||
| 41 | # Address of the booloader in system memory | ||
| 42 | STM32_BOOTLOADER_ADDRESS = 0x1FFF0000 | ||
| 43 | |||
| 44 | # Options to pass to dfu-util when flashing | ||
| 45 | DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave | ||
| 46 | DFU_SUFFIX_ARGS = -v 0483 -p df11 | ||
| 47 | |||
| 48 | OPT_DEFS += -DSTM32_DMA_REQUIRED=TRUE | 26 | OPT_DEFS += -DSTM32_DMA_REQUIRED=TRUE |
