aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-03-19 12:33:17 +1100
committerGitHub <noreply@github.com>2020-03-19 01:33:17 +0000
commit3a0f11eb277ab719b312547981a0b0db958fbc87 (patch)
tree50e954dfc5f4eb66141bce2e6d3c4f1ac9a78170
parentc2013f0b7c0289f582fd41f1276f174f7d9e3c17 (diff)
downloadqmk_firmware-3a0f11eb277ab719b312547981a0b0db958fbc87.tar.gz
qmk_firmware-3a0f11eb277ab719b312547981a0b0db958fbc87.zip
Set MCU for some F103 boards (#8459)
-rw-r--r--keyboards/ergodox_stm32/rules.mk25
-rw-r--r--keyboards/handwired/bluepill/bluepill70/rules.mk54
-rw-r--r--keyboards/jm60/rules.mk45
3 files changed, 19 insertions, 105 deletions
diff --git a/keyboards/ergodox_stm32/rules.mk b/keyboards/ergodox_stm32/rules.mk
index ab7b853f5..cd1f2d97c 100644
--- a/keyboards/ergodox_stm32/rules.mk
+++ b/keyboards/ergodox_stm32/rules.mk
@@ -1,24 +1,11 @@
1SRC += matrix.c 1# MCU name
2QUANTUM_LIB_SRC += i2c_master.c 2MCU = STM32F103
3
4CFLAGS += "-Wno-error=deprecated"
5
6MCU_FAMILY = STM32
7MCU_SERIES = STM32F1xx
8 3
9MCU_LDSCRIPT = stm32f103_bootloader 4MCU_LDSCRIPT = stm32f103_bootloader
10
11MCU_STARTUP = stm32f1xx
12
13BOARD = ERGODOX_STM32_BOARD 5BOARD = ERGODOX_STM32_BOARD
14 6
15MCU = cortex-m3 7CFLAGS += "-Wno-error=deprecated"
16 8EXTRAFLAGS = -O0 -g
17ARMV = 7
18
19OPT_DEFS =
20
21EXTRAFLAGS=-O0 -g
22 9
23BOOTMAGIC_ENABLE = no 10BOOTMAGIC_ENABLE = no
24MOUSEKEY_ENABLE = no # Mouse keys 11MOUSEKEY_ENABLE = no # Mouse keys
@@ -31,6 +18,8 @@ CUSTOM_MATRIX = yes # Custom matrix file
31NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 18NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
32UNICODE_ENABLE = yes # Unicode 19UNICODE_ENABLE = yes # Unicode
33 20
34
35# Enter lower-power sleep mode when on the ChibiOS idle thread 21# Enter lower-power sleep mode when on the ChibiOS idle thread
36OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE 22OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
23
24SRC += matrix.c
25QUANTUM_LIB_SRC += i2c_master.c
diff --git a/keyboards/handwired/bluepill/bluepill70/rules.mk b/keyboards/handwired/bluepill/bluepill70/rules.mk
index 5cf5f3f6c..4a757bcc9 100644
--- a/keyboards/handwired/bluepill/bluepill70/rules.mk
+++ b/keyboards/handwired/bluepill/bluepill70/rules.mk
@@ -1,51 +1,9 @@
1# project specific files 1# MCU name
2SRC = matrix.c \ 2MCU = STM32F103
3 led.c
4
5# GENERIC STM32F103C8T6 board - stm32duino bootloader
6#OPT_DEFS = -DCORTEX_VTOR_INIT=0x2000
7#MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
8#BOARD = GENERIC_STM32_F103
9
10# GENERIC STM32F103C8T6 board - no bootloader (programmer over serial or SWD) // Modified by Xydane
11OPT_DEFS =
12MCU_LDSCRIPT = STM32F103x8
13BOARD = GENERIC_STM32_F103
14
15# MAPLE MINI
16# OPT_DEFS = -DCORTEX_VTOR_INIT=0x5000
17# MCU_LDSCRIPT = STM32F103xB_maplemini_bootloader
18# BOARD = MAPLEMINI_STM32_F103
19
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 = STM32F1xx
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# startup code to use
29# is should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
30MCU_STARTUP = stm32f1xx
31# it should exist either in <chibios>/os/hal/boards/
32# or <this_dir>/boards
33# Cortex version
34# Teensy LC is cortex-m0; Teensy 3.x are cortex-m4
35MCU = cortex-m3
36# ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
37ARMV = 7
38# If you want to be able to jump to bootloader from firmware on STM32 MCUs,
39# set the correct BOOTLOADER_ADDRESS. Either set it here, or define it in
40# ./bootloader_defs.h or in ./boards/<FOO>/bootloader_defs.h (if you have
41# a custom board definition that you plan to reuse).
42# If you're not setting it here, leave it commented out.
43# It is chip dependent, the correct number can be looked up here (page 175):
44# http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
45# This also requires a patch to chibios:
46# <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch
47#STM32_BOOTLOADER_ADDRESS = 0x1FFFC800
48
49 3
50# Enter lower-power sleep mode when on the ChibiOS idle thread 4# Enter lower-power sleep mode when on the ChibiOS idle thread
51OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE 5OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
6
7# project specific files
8SRC = matrix.c \
9 led.c
diff --git a/keyboards/jm60/rules.mk b/keyboards/jm60/rules.mk
index ed6431b65..a513461fc 100644
--- a/keyboards/jm60/rules.mk
+++ b/keyboards/jm60/rules.mk
@@ -1,41 +1,9 @@
1# project specific files 1# MCU name
2SRC = matrix.c \ 2MCU = STM32F103
3 led.c
4
5## chip/board settings
6# - the next two should match the directories in
7# <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
8MCU_FAMILY = STM32
9MCU_SERIES = STM32F1xx
10 3
11# Linker script to use
12# - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
13# or <this_dir>/ld/
14# - NOTE: a custom ld script is needed for EEPROM on Teensy LC
15MCU_LDSCRIPT = jm60_bootloader 4MCU_LDSCRIPT = jm60_bootloader
16
17# Startup code to use
18# - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
19MCU_STARTUP = stm32f1xx
20
21# Board: it should exist either in <chibios>/os/hal/boards/
22# or <this_dir>/boards
23BOARD = JM60_BOARD 5BOARD = JM60_BOARD
24 6
25# Cortex version
26# Teensy LC is cortex-m0; Teensy 3.x are cortex-m4
27MCU = cortex-m3
28
29# ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
30# I.e. 6 for Teensy LC; 7 for Teensy 3.x
31ARMV = 7
32
33# Vector table for application
34# 0x00000000-0x00001000 area is occupied by bootlaoder.*/
35# The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
36#OPT_DEFS = -DCORTEX_VTOR_INIT=0x00001000
37OPT_DEFS =
38
39# Build Options 7# Build Options
40# comment out to disable the options. 8# comment out to disable the options.
41# 9#
@@ -51,10 +19,9 @@ CUSTOM_MATRIX = yes # Custom matrix file
51BACKLIGHT_ENABLE = no 19BACKLIGHT_ENABLE = no
52VISUALIZER_ENABLE = no 20VISUALIZER_ENABLE = no
53 21
54#LED_DRIVER = is31fl3731c
55#LED_WIDTH = 16
56#LED_HEIGHT = 5
57
58
59# Enter lower-power sleep mode when on the ChibiOS idle thread 22# Enter lower-power sleep mode when on the ChibiOS idle thread
60OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE 23OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
24
25# project specific files
26SRC = matrix.c \
27 led.c