rules.mk 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # project specific files
  2. SRC = keyboards/zeal60/zeal60.c \
  3. drivers/issi/is31fl3733.c \
  4. quantum/color.c \
  5. drivers/arm/i2c_master.c
  6. ## chip/board settings
  7. # the next two should match the directories in
  8. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  9. MCU_FAMILY = STM32
  10. MCU_SERIES = STM32F3xx
  11. # Linker script to use
  12. # it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  13. # or <this_dir>/ld/
  14. MCU_LDSCRIPT = STM32F303xC
  15. # Startup code to use
  16. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  17. MCU_STARTUP = stm32f3xx
  18. # Board: it should exist either in <chibios>/os/hal/boards/
  19. # or <this_dir>/boards
  20. BOARD = GENERIC_STM32_F303XC
  21. # Cortex version
  22. MCU = cortex-m4
  23. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  24. ARMV = 7
  25. USE_FPU = yes
  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=0x08005000
  30. OPT_DEFS =
  31. # Do not put the microcontroller into power saving mode
  32. # when we get USB suspend event. We want it to keep updating
  33. # backlight effects.
  34. OPT_DEFS += -DNO_SUSPEND_POWER_DOWN
  35. # Options to pass to dfu-util when flashing
  36. DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
  37. # Build Options
  38. # comment out to disable the options.
  39. #
  40. BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
  41. BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
  42. MOUSEKEY_ENABLE = yes # Mouse keys
  43. EXTRAKEY_ENABLE = yes # Audio control and System control
  44. CONSOLE_ENABLE = no # Console for debug
  45. COMMAND_ENABLE = no # Commands for debug and configuration
  46. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  47. NKRO_ENABLE = yes # USB Nkey Rollover
  48. AUDIO_ENABLE = no # Audio output on port C6
  49. NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in
  50. #SERIAL_LINK_ENABLE = yes
  51. RAW_ENABLE = yes
  52. DYNAMIC_KEYMAP_ENABLE = yes
  53. CIE1931_CURVE = yes