rules.mk 1015 B

12345678910111213141516171819202122232425262728293031323334353637
  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. MOUSEKEY_ENABLE = yes # Mouse keys
  18. EXTRAKEY_ENABLE = yes # Audio control and System control
  19. CONSOLE_ENABLE = yes # Console for debug
  20. COMMAND_ENABLE = yes # Commands for debug and configuration
  21. SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  22. NKRO_ENABLE = yes # USB Nkey Rollover
  23. CUSTOM_MATRIX = yes # Custom matrix file
  24. # project specific files
  25. SRC = matrix.c \
  26. led.c \
  27. led_controller.c
  28. LAYOUTS = 60_ansi_split_bs_rshift
  29. # Enter lower-power sleep mode when on the ChibiOS idle thread
  30. OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE