rules.mk 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # MCU name
  2. MCU = MK20DX128
  3. # Bootloader selection
  4. BOOTLOADER = kiibohd
  5. # Board: it should exist either in <chibios>/os/hal/boards/
  6. # or <this_dir>/boards
  7. # - BOARD =
  8. # - PJRC_TEENSY_LC for Teensy LC
  9. # - PJRC_TEENSY_3 for Teensy 3.0
  10. # - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2
  11. # - MCHCK_K20 for Infinity KB
  12. BOARD = MCHCK_K20
  13. # Build Options
  14. # comment out to disable the options.
  15. #
  16. BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
  17. ## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
  18. MOUSEKEY_ENABLE = yes # Mouse keys
  19. EXTRAKEY_ENABLE = yes # Audio control and System control
  20. CONSOLE_ENABLE = yes # Console for debug
  21. COMMAND_ENABLE = yes # Commands for debug and configuration
  22. SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  23. NKRO_ENABLE = yes # USB Nkey Rollover
  24. CUSTOM_MATRIX = yes # Custom matrix file
  25. # project specific files
  26. SRC = matrix.c \
  27. led.c \
  28. led_controller.c
  29. LAYOUTS = 60_ansi_split_bs_rshift
  30. # Enter lower-power sleep mode when on the ChibiOS idle thread
  31. OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE