You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.1 KiB

  1. # project specific files
  2. SRC = matrix.c \
  3. led.c
  4. ## chip/board settings
  5. # - the next two should match the directories in
  6. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  7. # - For Teensies, FAMILY = KINETIS and SERIES is either
  8. # KL2x (LC) or K20x (3.0,3.1,3.2).
  9. # - For Infinity KB, SERIES = K20x
  10. MCU_FAMILY = KINETIS
  11. MCU_SERIES = K20x
  12. # Linker script to use
  13. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  14. # or <this_dir>/ld/
  15. # - NOTE: a custom ld script is needed for EEPROM on Teensy LC
  16. # - LDSCRIPT =
  17. # - MKL26Z64 for Teensy LC
  18. # - MK20DX128 for Teensy 3.0
  19. # - MK20DX256 for Teensy 3.1 and 3.2
  20. # - MK20DX128BLDR4 for Infinity with Kiibohd bootloader
  21. MCU_LDSCRIPT = MK20DX128BLDR4
  22. # Startup code to use
  23. # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
  24. # - STARTUP =
  25. # - kl2x for Teensy LC
  26. # - k20x5 for Teensy 3.0 and Infinity KB
  27. # - k20x7 for Teensy 3.1 and 3.2
  28. MCU_STARTUP = k20x5
  29. # Board: it should exist either in <chibios>/os/hal/boards/
  30. # or <this_dir>/boards
  31. # - BOARD =
  32. # - PJRC_TEENSY_LC for Teensy LC
  33. # - PJRC_TEENSY_3 for Teensy 3.0
  34. # - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2
  35. # - MCHCK_K20 for Infinity KB
  36. BOARD = MCHCK_K20
  37. # Cortex version
  38. # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4
  39. MCU = cortex-m4
  40. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  41. # I.e. 6 for Teensy LC; 7 for Teensy 3.x
  42. ARMV = 7
  43. # Vector table for application
  44. # 0x00000000-0x00001000 area is occupied by bootlaoder.*/
  45. # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
  46. OPT_DEFS = -DCORTEX_VTOR_INIT=0x00001000
  47. # Build Options
  48. # comment out to disable the options.
  49. #
  50. BOOTMAGIC_ENABLE ?= yes # Virtual DIP switch configuration
  51. ## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
  52. MOUSEKEY_ENABLE ?= yes # Mouse keys
  53. EXTRAKEY_ENABLE ?= yes # Audio control and System control
  54. CONSOLE_ENABLE ?= yes # Console for debug
  55. COMMAND_ENABLE ?= yes # Commands for debug and configuration
  56. SLEEP_LED_ENABLE ?= yes # Breathing sleep LED during USB suspend
  57. NKRO_ENABLE ?= yes # USB Nkey Rollover
  58. CUSTOM_MATRIX ?= yes # Custom matrix file