Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # Target file name (without extension).
  2. PROJECT = ch
  3. # Directory common source files exist
  4. TMK_DIR = ../../tmk_core
  5. # Directory keyboard dependent files exist
  6. TARGET_DIR = .
  7. # project specific files
  8. SRC = matrix.c \
  9. led.c
  10. ifdef KEYMAP
  11. SRC := keymap_$(KEYMAP).c $(SRC)
  12. else
  13. SRC := keymap_plain.c $(SRC)
  14. endif
  15. CONFIG_H = config.h
  16. ## chip/board settings
  17. # - the next two should match the directories in
  18. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  19. # - For Teensies, FAMILY = KINETIS and SERIES is either
  20. # KL2x (LC) or K20x (3.0,3.1,3.2).
  21. MCU_FAMILY = KINETIS
  22. MCU_SERIES = KL2x
  23. # Linker script to use
  24. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  25. # or <this_dir>/ld/
  26. # - NOTE: a custom ld script is needed for EEPROM on Teensy LC
  27. # - LDSCRIPT =
  28. # - MKL26Z64 for Teensy LC
  29. # - MK20DX128 for Teensy 3.0
  30. # - MK20DX256 for Teensy 3.1 and 3.2
  31. MCU_LDSCRIPT = MKL26Z64
  32. # Startup code to use
  33. # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
  34. # - STARTUP =
  35. # - kl2x for Teensy LC
  36. # - k20x5 for Teensy 3.0
  37. # - k20x7 for Teensy 3.1 and 3.2
  38. MCU_STARTUP = kl2x
  39. # Board: it should exist either in <chibios>/os/hal/boards/
  40. # or <this_dir>/boards
  41. # - BOARD =
  42. # - PJRC_TEENSY_LC for Teensy LC
  43. # - PJRC_TEENSY_3 for Teensy 3.0
  44. # - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2
  45. BOARD = PJRC_TEENSY_LC
  46. # Cortex version
  47. # Teensy LC is cortex-m0plus; Teensy 3.x are cortex-m4
  48. MCU = cortex-m0plus
  49. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  50. # I.e. 6 for Teensy LC; 7 for Teensy 3.x
  51. ARMV = 6
  52. # Build Options
  53. # comment out to disable the options.
  54. #
  55. BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
  56. ## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
  57. MOUSEKEY_ENABLE = yes # Mouse keys
  58. EXTRAKEY_ENABLE = yes # Audio control and System control
  59. CONSOLE_ENABLE = yes # Console for debug
  60. COMMAND_ENABLE = yes # Commands for debug and configuration
  61. SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  62. NKRO_ENABLE = yes # USB Nkey Rollover
  63. include $(TMK_DIR)/tool/chibios/common.mk
  64. include $(TMK_DIR)/tool/chibios/chibios.mk