rules.mk 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # MCU name
  2. MCU = MK20DX128
  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. MCU_LDSCRIPT = MK20DX128BLDR4
  13. # Board: it should exist either in <chibios>/os/hal/boards/
  14. # or <this_dir>/boards
  15. # - BOARD =
  16. # - PJRC_TEENSY_LC for Teensy LC
  17. # - PJRC_TEENSY_3 for Teensy 3.0
  18. # - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2
  19. # - MCHCK_K20 for Infinity KB
  20. BOARD = MCHCK_K20
  21. # Vector table for application
  22. # 0x00000000-0x00001000 area is occupied by bootlaoder.*/
  23. # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
  24. OPT_DEFS = -DCORTEX_VTOR_INIT=0x00001000
  25. BOOTLOADER = dfu
  26. # Build Options
  27. # comment out to disable the options.
  28. #
  29. DFU_ARGS = -d 1c11:b007
  30. DFU_SUFFIX_ARGS = -p b007 -v 1c11
  31. BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
  32. ## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
  33. MOUSEKEY_ENABLE = yes # Mouse keys
  34. EXTRAKEY_ENABLE = yes # Audio control and System control
  35. CONSOLE_ENABLE = yes # Console for debug
  36. COMMAND_ENABLE = yes # Commands for debug and configuration
  37. SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  38. NKRO_ENABLE = yes # USB Nkey Rollover
  39. CUSTOM_MATRIX = yes # Custom matrix file
  40. # project specific files
  41. SRC = matrix.c \
  42. led.c \
  43. led_controller.c
  44. LAYOUTS = 60_ansi_split_bs_rshift
  45. # Enter lower-power sleep mode when on the ChibiOS idle thread
  46. OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE