rules.mk 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 60% with Kiibohd bootloader
  21. # - MK20DX256BLDR8 for Infinity ErgoDox with Kiibohd bootloader
  22. MCU_LDSCRIPT = MK20DX256BLDR8
  23. # Startup code to use
  24. # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
  25. # - STARTUP =
  26. # - kl2x for Teensy LC
  27. # - k20x5 for Teensy 3.0 and Infinity 60%
  28. # - k20x7 for Teensy 3.1, 3.2 and Infinity ErgoDox
  29. MCU_STARTUP = k20x7
  30. # Board: it should exist either in <chibios>/os/hal/boards/
  31. # or <this_dir>/boards
  32. # - BOARD =
  33. # - PJRC_TEENSY_LC for Teensy LC
  34. # - PJRC_TEENSY_3 for Teensy 3.0
  35. # - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2
  36. # - MCHCK_K20 for Infinity KB
  37. #BOARD = MCHCK_K20
  38. BOARD = PJRC_TEENSY_3_1
  39. # Cortex version
  40. # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4
  41. MCU = cortex-m4
  42. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  43. # I.e. 6 for Teensy LC; 7 for Teensy 3.x
  44. ARMV = 7
  45. # Vector table for application
  46. # 0x00000000-0x00001000 area is occupied by bootlaoder.*/
  47. # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
  48. OPT_DEFS += -DCORTEX_VTOR_INIT=0x00002000
  49. # Build Options
  50. # comment out to disable the options.
  51. #
  52. BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
  53. MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
  54. EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
  55. CONSOLE_ENABLE = no # Console for debug(+400)
  56. COMMAND_ENABLE = yes # Commands for debug and configuration
  57. CUSTOM_MATRIX = yes # Custom matrix file for the ErgoDox EZ
  58. SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  59. NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  60. UNICODE_ENABLE = yes # Unicode
  61. SWAP_HANDS_ENABLE = yes # Allow swapping hands of keyboard
  62. STENO_ENABLE = yes #enable plover steno mode
  63. CUSTOM_MATRIX = yes # Custom matrix file
  64. SERIAL_LINK_ENABLE = yes
  65. VISUALIZER_ENABLE = yes
  66. LCD_ENABLE = yes
  67. BACKLIGHT_ENABLE = yes
  68. LCD_BACKLIGHT_ENABLE = yes
  69. MIDI_ENABLE = yes
  70. MIDI_ADVANCED = yes
  71. MUSIC_MODE = yes
  72. RGBLIGHT_ENABLE = no
  73. LCD_DRIVER = st7565
  74. LCD_WIDTH = 128
  75. LCD_HEIGHT = 32
  76. LED_DRIVER = is31fl3731c
  77. LED_WIDTH = 7
  78. LED_HEIGHT = 7
  79. LAYOUTS = ergodox