Commit | Line | Data |
---|---|---|
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). | |
6 | MCU_FAMILY = KINETIS | |
7 | MCU_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 | |
17 | MCU_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 | |
25 | MCU_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 | |
33 | BOARD = PJRC_TEENSY_3_1 | |
34 | ||
35 | # Cortex version | |
36 | # Teensy LC is cortex-m0plus; Teensy 3.x are cortex-m4 | |
37 | MCU = 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 | |
41 | ARMV = 7 | |
4d06d283 NB |
42 | |
43 | ||
44 | # Enter lower-power sleep mode when on the ChibiOS idle thread | |
45 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE |