Commit | Line | Data |
---|---|---|
349e0012 M |
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 = 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 | |
15 | MCU_LDSCRIPT = jm60_bootloader | |
16 | ||
17 | # Startup code to use | |
18 | # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/ | |
19 | MCU_STARTUP = stm32f1xx | |
20 | ||
21 | # Board: it should exist either in <chibios>/os/hal/boards/ | |
22 | # or <this_dir>/boards | |
23 | BOARD = JM60_BOARD | |
24 | ||
25 | # Cortex version | |
26 | # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4 | |
27 | MCU = 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 | |
31 | ARMV = 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 | 37 | OPT_DEFS = |
349e0012 M |
38 | |
39 | # Build Options | |
40 | # comment out to disable the options. | |
41 | # | |
42 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration | |
43 | ## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.) | |
44 | MOUSEKEY_ENABLE = no # Mouse keys | |
45 | EXTRAKEY_ENABLE = yes # Audio control and System control | |
46 | CONSOLE_ENABLE = no # Console for debug | |
47 | COMMAND_ENABLE = no # Commands for debug and configuration | |
48 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | |
49 | NKRO_ENABLE = yes # USB Nkey Rollover | |
50 | CUSTOM_MATRIX = yes # Custom matrix file | |
51 | BACKLIGHT_ENABLE = no | |
52 | VISUALIZER_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 | |
60 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE |