rules.mk 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # project specific files
  2. SRC = matrix.c \
  3. led.c
  4. ## chip/board settings
  5. # - the next two should match the directories in
  6. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  7. MCU_FAMILY = STM32
  8. MCU_SERIES = STM32F1xx
  9. # Linker script to use
  10. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  11. # or <this_dir>/ld/
  12. # - NOTE: a custom ld script is needed for EEPROM on Teensy LC
  13. MCU_LDSCRIPT = jm60_bootloader
  14. # Startup code to use
  15. # - it should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
  16. MCU_STARTUP = stm32f1xx
  17. # Board: it should exist either in <chibios>/os/hal/boards/
  18. # or <this_dir>/boards
  19. BOARD = JM60_BOARD
  20. # Cortex version
  21. # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4
  22. MCU = cortex-m3
  23. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  24. # I.e. 6 for Teensy LC; 7 for Teensy 3.x
  25. ARMV = 7
  26. # Vector table for application
  27. # 0x00000000-0x00001000 area is occupied by bootlaoder.*/
  28. # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
  29. #OPT_DEFS = -DCORTEX_VTOR_INIT=0x00001000
  30. OPT_DEFS =
  31. # Build Options
  32. # comment out to disable the options.
  33. #
  34. BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
  35. ## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
  36. MOUSEKEY_ENABLE = no # Mouse keys
  37. EXTRAKEY_ENABLE = yes # Audio control and System control
  38. CONSOLE_ENABLE = no # Console for debug
  39. COMMAND_ENABLE = no # Commands for debug and configuration
  40. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  41. NKRO_ENABLE = yes # USB Nkey Rollover
  42. CUSTOM_MATRIX = yes # Custom matrix file
  43. BACKLIGHT_ENABLE = no
  44. VISUALIZER_ENABLE = no
  45. #LED_DRIVER = is31fl3731c
  46. #LED_WIDTH = 16
  47. #LED_HEIGHT = 5