]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/chibios_test/stm32_f072_onekey/rules.mk
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
[qmk_firmware.git] / keyboards / chibios_test / stm32_f072_onekey / rules.mk
1 # project specific files
2 SRC =   matrix.c \
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)
8 MCU_FAMILY = STM32
9 MCU_SERIES = STM32F0xx
10 # linker script to use
11 # it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
12 #  or <this_dir>/ld/
13 MCU_LDSCRIPT = STM32F072xB
14 # startup code to use
15 # is should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
16 MCU_STARTUP = stm32f0xx
17 # it should exist either in <chibios>/os/hal/boards/
18 #  or <this_dir>/boards
19 BOARD = ST_STM32F072B_DISCOVERY
20 # Cortex version
21 # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4
22 MCU  = cortex-m0
23 # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
24 ARMV = 6
25 # If you want to be able to jump to bootloader from firmware on STM32 MCUs,
26 # set the correct BOOTLOADER_ADDRESS. Either set it here, or define it in
27 # ./bootloader_defs.h or in ./boards/<FOO>/bootloader_defs.h (if you have
28 # a custom board definition that you plan to reuse).
29 # If you're not setting it here, leave it commented out.
30 # It is chip dependent, the correct number can be looked up here (page 175):
31 # http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
32 # This also requires a patch to chibios:
33 #   <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch
34 #STM32_BOOTLOADER_ADDRESS = 0x1FFFC800
35
36 # Build Options
37 #   comment out to disable the options.
38 #
39 ifndef QUANTUM_DIR
40         include ../../../Makefile
41 endif