Move CORTEX_ENABLE_WFI_IDLE=TRUE to rules.mk files.
[jackhill/qmk/firmware.git] / keyboards / jm60 / rules.mk
CommitLineData
349e0012
M
1# project specific files
2SRC = 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)
8MCU_FAMILY = STM32
9MCU_SERIES = STM32F1xx
10
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
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
24
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
4d06d283 37OPT_DEFS =
349e0012
M
38
39# Build Options
40# comment out to disable the options.
41#
42BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
43## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
44MOUSEKEY_ENABLE = no # Mouse keys
45EXTRAKEY_ENABLE = yes # Audio control and System control
46CONSOLE_ENABLE = no # Console for debug
47COMMAND_ENABLE = no # Commands for debug and configuration
48SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
49NKRO_ENABLE = yes # USB Nkey Rollover
50CUSTOM_MATRIX = yes # Custom matrix file
51BACKLIGHT_ENABLE = no
52VISUALIZER_ENABLE = no
53
54#LED_DRIVER = is31fl3731c
4d06d283 55#LED_WIDTH = 16
349e0012 56#LED_HEIGHT = 5
4d06d283
NB
57
58
59# Enter lower-power sleep mode when on the ChibiOS idle thread
60OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE