rules.mk 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 with Kiibohd bootloader
  12. # - MK20DX256BLDR8 for Infinity ErgoDox with Kiibohd bootloader
  13. MCU_LDSCRIPT = MK20DX256BLDR8
  14. # Board: it should exist either in <chibios>/os/hal/boards/
  15. # or <this_dir>/boards
  16. # - BOARD =
  17. # - PJRC_TEENSY_LC for Teensy LC
  18. # - PJRC_TEENSY_3 for Teensy 3.0
  19. # - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2
  20. # - MCHCK_K20 for Infinity KB
  21. BOARD = IC_TEENSY_3_1
  22. DFU_ARGS = -d 1c11:b007
  23. DFU_SUFFIX_ARGS = -p b007 -v 1c11
  24. BOOTLOADER = dfu
  25. # Build Options
  26. # comment out to disable the options.
  27. #
  28. BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
  29. ## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
  30. MOUSEKEY_ENABLE = yes # Mouse keys
  31. EXTRAKEY_ENABLE = yes # Audio control and System control
  32. #CONSOLE_ENABLE = yes # Console for debug
  33. COMMAND_ENABLE = yes # Commands for debug and configuration
  34. #SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  35. NKRO_ENABLE = yes # USB Nkey Rollover
  36. CUSTOM_MATRIX = yes # Custom matrix file
  37. BACKLIGHT_ENABLE = yes
  38. BACKLIGHT_DRIVER = custom
  39. VISUALIZER_ENABLE = yes
  40. # project specific files
  41. SRC = matrix.c \
  42. led.c
  43. LED_DRIVER = is31fl3731c
  44. LED_WIDTH = 16
  45. LED_HEIGHT = 5
  46. # Enter lower-power sleep mode when on the ChibiOS idle thread
  47. OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE