aboutsummaryrefslogtreecommitdiff
path: root/keyboards/phoenix
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-09-19 13:00:18 +1000
committerGitHub <noreply@github.com>2020-09-18 20:00:18 -0700
commit0140baf7e0b041df841f8782743344a4ebe4ebe1 (patch)
tree91d933bc255432b751e8535dff501bbb0206d7a3 /keyboards/phoenix
parentb0024470ed347271e29b2de4d0442f855a26345c (diff)
downloadqmk_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.mk34
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
2MCU = STM32F401
3
4# Address of the bootloader in system memory
5STM32_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
17SERIAL_DRIVER = usart 23SERIAL_DRIVER = usart
18KEYBOARD_SHARED_EP = yes 24KEYBOARD_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)
23MCU_FAMILY = STM32
24MCU_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/
28MCU_LDSCRIPT = STM32F401xC
29# startup code to use
30# is should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
31MCU_STARTUP = stm32f4xx
32# it should exist either in <chibios>/os/hal/boards/
33# or <this_dir>/boards
34BOARD = BLACKPILL_STM32_F401
35# Cortex version
36# Teensy LC is cortex-m0; Teensy 3.x are cortex-m4
37MCU = cortex-m4
38# ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
39ARMV = 7
40USE_FPU = yes
41# Address of the booloader in system memory
42STM32_BOOTLOADER_ADDRESS = 0x1FFF0000
43
44# Options to pass to dfu-util when flashing
45DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
46DFU_SUFFIX_ARGS = -v 0483 -p df11
47
48OPT_DEFS += -DSTM32_DMA_REQUIRED=TRUE 26OPT_DEFS += -DSTM32_DMA_REQUIRED=TRUE