]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/onekey/bluepill/rules.mk
[Keyboard] Refactor of onekey to support multiple development boards (#6017)
[qmk_firmware.git] / keyboards / handwired / onekey / bluepill / rules.mk
1 # GENERIC STM32F103C8T6 board - stm32duino bootloader
2 OPT_DEFS = -DCORTEX_VTOR_INIT=0x2000
3 MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
4 BOARD = 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)
13 MCU_FAMILY = STM32
14 MCU_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/
20 MCU_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
25 MCU  = cortex-m3
26 # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
27 ARMV = 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