rules.mk 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # project specific files
  2. SRC = matrix.c
  3. ## chip/board settings
  4. # - the next two should match the directories in
  5. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  6. MCU_FAMILY = STM32
  7. MCU_SERIES = STM32F3xx
  8. # Linker script to use
  9. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  10. # or <this_dir>/ld/
  11. MCU_LDSCRIPT = STM32F303xC
  12. # Startup code to use
  13. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  14. MCU_STARTUP = stm32f3xx
  15. # Board: it should exist either in <chibios>/os/hal/boards/
  16. # or <this_dir>/boards
  17. BOARD = GENERIC_STM32_F303XC
  18. # Cortex version
  19. MCU = cortex-m4
  20. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  21. ARMV = 7
  22. USE_FPU = yes
  23. # Vector table for application
  24. # 0x00000000-0x00001000 area is occupied by bootlaoder.*/
  25. # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
  26. # OPT_DEFS = -DCORTEX_VTOR_INIT=0x08005000
  27. OPT_DEFS =
  28. # Options to pass to dfu-util when flashing
  29. DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
  30. # Build Options
  31. # comment out to disable the options.
  32. #
  33. BACKLIGHT_ENABLE = no
  34. BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
  35. ## (Note that for BOOTMAGIC on Teensy LC you have to use a custom .ld script.)
  36. MOUSEKEY_ENABLE = yes # 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 = yes # Breathing sleep LED during USB suspend
  41. NKRO_ENABLE = yes # USB Nkey Rollover
  42. CUSTOM_MATRIX = yes # Custom matrix file
  43. AUDIO_ENABLE = yes
  44. RGBLIGHT_ENABLE = no
  45. HAPTIC_ENABLE = DRV2605L
  46. QWIIC_ENABLE += MICRO_OLED
  47. # SERIAL_LINK_ENABLE = yes