[New keyboard]silverbullet44 (#7950)
[jackhill/qmk/firmware.git] / keyboards / handwired / onekey / teensy_32 / rules.mk
CommitLineData
2a56b61a
JC
1## chip/board settings
2# - the next two should match the directories in
3# <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
4# - For Teensies, FAMILY = KINETIS and SERIES is either
5# KL2x (LC) or K20x (3.0,3.1,3.2).
6MCU_FAMILY = KINETIS
7MCU_SERIES = K20x
8
9# Linker script to use
10# - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
11# or <this_dir>/ld/
12# - NOTE: a custom ld script is needed for EEPROM on Teensy LC
13# - LDSCRIPT =
14# - MKL26Z64 for Teensy LC
15# - MK20DX128 for Teensy 3.0
16# - MK20DX256 for Teensy 3.1 and 3.2
17MCU_LDSCRIPT = MK20DX256
18
19# Startup code to use
20# - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
21# - STARTUP =
22# - kl2x for Teensy LC
23# - k20x5 for Teensy 3.0
24# - k20x7 for Teensy 3.1 and 3.2
25MCU_STARTUP = k20x7
26
27# Board: it should exist either in <chibios>/os/hal/boards/
28# or <this_dir>/boards
29# - BOARD =
30# - PJRC_TEENSY_LC for Teensy LC
31# - PJRC_TEENSY_3 for Teensy 3.0
32# - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2
33BOARD = PJRC_TEENSY_3_1
34
35# Cortex version
36# Teensy LC is cortex-m0plus; Teensy 3.x are cortex-m4
37MCU = cortex-m4
38
39# ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
40# I.e. 6 for Teensy LC; 7 for Teensy 3.x
41ARMV = 7
4d06d283
NB
42
43
44# Enter lower-power sleep mode when on the ChibiOS idle thread
45OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE