aboutsummaryrefslogtreecommitdiff
path: root/keyboards/handwired/onekey/bluepill/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/onekey/bluepill/rules.mk')
-rw-r--r--keyboards/handwired/onekey/bluepill/rules.mk37
1 files changed, 37 insertions, 0 deletions
diff --git a/keyboards/handwired/onekey/bluepill/rules.mk b/keyboards/handwired/onekey/bluepill/rules.mk
new file mode 100644
index 000000000..46274066d
--- /dev/null
+++ b/keyboards/handwired/onekey/bluepill/rules.mk
@@ -0,0 +1,37 @@
1# GENERIC STM32F103C8T6 board - stm32duino bootloader
2OPT_DEFS = -DCORTEX_VTOR_INIT=0x2000
3MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
4BOARD = GENERIC_STM32_F103
5
6# OPT_DEFS =
7# MCU_LDSCRIPT = STM32F103x8
8# BOARD = GENERIC_STM32_F103
9
10## chip/board settings
11# the next two should match the directories in
12# <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
13MCU_FAMILY = STM32
14MCU_SERIES = STM32F1xx
15# linker script to use
16# it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
17# or <this_dir>/ld/
18# startup code to use
19# is should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
20MCU_STARTUP = stm32f1xx
21# it should exist either in <chibios>/os/hal/boards/
22# or <this_dir>/boards
23# Cortex version
24# Teensy LC is cortex-m0; Teensy 3.x are cortex-m4
25MCU = cortex-m3
26# ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
27ARMV = 7
28# If you want to be able to jump to bootloader from firmware on STM32 MCUs,
29# set the correct BOOTLOADER_ADDRESS. Either set it here, or define it in
30# ./bootloader_defs.h or in ./boards/<FOO>/bootloader_defs.h (if you have
31# a custom board definition that you plan to reuse).
32# If you're not setting it here, leave it commented out.
33# It is chip dependent, the correct number can be looked up here (page 175):
34# http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
35# This also requires a patch to chibios:
36# <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch
37#STM32_BOOTLOADER_ADDRESS = 0x1FFFC800