rules.mk 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # MCU name
  2. MCU = MK20DX256
  3. # Linker script to use
  4. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  5. # or <this_dir>/ld/
  6. # - NOTE: a custom ld script is needed for EEPROM on Teensy LC
  7. # - LDSCRIPT =
  8. # - MKL26Z64 for Teensy LC
  9. # - MK20DX128 for Teensy 3.0
  10. # - MK20DX256 for Teensy 3.1 and 3.2
  11. # - MK20DX128BLDR4 for Infinity 60% with Kiibohd bootloader
  12. # - MK20DX256BLDR8 for Infinity ErgoDox with Kiibohd bootloader
  13. MCU_LDSCRIPT = MK20DX256BLDR8
  14. # Vector table for application
  15. # 0x00000000-0x00001000 area is occupied by bootlaoder.*/
  16. # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
  17. OPT_DEFS += -DCORTEX_VTOR_INIT=0x00002000
  18. BOOTLOADER = dfu
  19. # Build Options
  20. # comment out to disable the options.
  21. #
  22. DFU_ARGS = -d 1c11:b007
  23. DFU_SUFFIX_ARGS = -p b007 -v 1c11
  24. BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
  25. MOUSEKEY_ENABLE = yes # Mouse keys
  26. EXTRAKEY_ENABLE = yes # Audio control and System control
  27. CONSOLE_ENABLE = no # Console for debug
  28. COMMAND_ENABLE = yes # Commands for debug and configuration
  29. CUSTOM_MATRIX = yes # Custom matrix file for the ErgoDox EZ
  30. SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  31. NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  32. UNICODE_ENABLE = yes # Unicode
  33. SWAP_HANDS_ENABLE= yes # Allow swapping hands of keyboard
  34. CUSTOM_MATRIX = yes # Custom matrix file
  35. SERIAL_LINK_ENABLE = yes
  36. VISUALIZER_ENABLE = yes
  37. LCD_ENABLE = yes
  38. BACKLIGHT_ENABLE = yes
  39. BACKLIGHT_DRIVER = custom
  40. LCD_BACKLIGHT_ENABLE = yes
  41. MIDI_ENABLE = no
  42. RGBLIGHT_ENABLE = no
  43. LCD_DRIVER = st7565
  44. LCD_WIDTH = 128
  45. LCD_HEIGHT = 32
  46. LED_DRIVER = is31fl3731c
  47. LED_WIDTH = 7
  48. LED_HEIGHT = 7
  49. # project specific files
  50. SRC = matrix.c \
  51. led.c
  52. LAYOUTS = ergodox