rules.mk 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # project specific files
  2. SRC = matrix.c \
  3. led.c \
  4. animations.c
  5. ## chip/board settings
  6. # - the next two should match the directories in
  7. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  8. # - For Teensies, FAMILY = KINETIS and SERIES is either
  9. # KL2x (LC) or K20x (3.0,3.1,3.2).
  10. # - For Infinity KB, SERIES = K20x
  11. MCU_FAMILY = KINETIS
  12. MCU_SERIES = K20x
  13. # Linker script to use
  14. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  15. # or <this_dir>/ld/
  16. # - NOTE: a custom ld script is needed for EEPROM on Teensy LC
  17. # - LDSCRIPT =
  18. # - MKL26Z64 for Teensy LC
  19. # - MK20DX128 for Teensy 3.0
  20. # - MK20DX256 for Teensy 3.1 and 3.2
  21. # - MK20DX128BLDR4 for Infinity 60% with Kiibohd bootloader
  22. # - MK20DX256BLDR8 for Infinity ErgoDox with Kiibohd bootloader
  23. MCU_LDSCRIPT = MK20DX256BLDR8
  24. # Startup code to use
  25. # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
  26. # - STARTUP =
  27. # - kl2x for Teensy LC
  28. # - k20x5 for Teensy 3.0 and Infinity 60%
  29. # - k20x7 for Teensy 3.1, 3.2 and Infinity ErgoDox
  30. MCU_STARTUP = k20x7
  31. # Board: it should exist either in <chibios>/os/hal/boards/
  32. # or <this_dir>/boards
  33. # - BOARD =
  34. # - PJRC_TEENSY_LC for Teensy LC
  35. # - PJRC_TEENSY_3 for Teensy 3.0
  36. # - PJRC_TEENSY_3_1 for Teensy 3.1 or 3.2
  37. # - MCHCK_K20 for Infinity KB
  38. #BOARD = MCHCK_K20
  39. BOARD = PJRC_TEENSY_3_1
  40. # Cortex version
  41. # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4
  42. MCU = cortex-m4
  43. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  44. # I.e. 6 for Teensy LC; 7 for Teensy 3.x
  45. ARMV = 7
  46. # Vector table for application
  47. # 0x00000000-0x00001000 area is occupied by bootlaoder.*/
  48. # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
  49. OPT_DEFS += -DCORTEX_VTOR_INIT=0x00002000
  50. # Build Options
  51. # comment out to disable the options.
  52. #
  53. CUSTOM_MATRIX ?= yes # Custom matrix file
  54. SERIAL_LINK_ENABLE = yes
  55. VISUALIZER_ENABLE ?= yes
  56. LCD_ENABLE ?= yes
  57. BACKLIGHT_ENABLE ?= yes
  58. LCD_BACKLIGHT_ENABLE ?= yes
  59. MIDI_ENABLE = no
  60. RGBLIGHT_ENABLE = no
  61. include $(SUBPROJECT_PATH)/drivers/gdisp/st7565ergodox/driver.mk
  62. include $(SUBPROJECT_PATH)/drivers/gdisp/IS31FL3731C/driver.mk