rules.mk 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # project specific files
  2. ## chip/board settings
  3. # - the next two should match the directories in
  4. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  5. MCU_FAMILY = STM32
  6. MCU_SERIES = STM32F3xx
  7. # Linker script to use
  8. # - it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  9. # or <this_dir>/ld/
  10. MCU_LDSCRIPT = STM32F303xC
  11. # Startup code to use
  12. # - it should exist in <chibios>/os/common/startup/ARMCMx/compilers/GCC/mk/
  13. MCU_STARTUP = stm32f3xx
  14. # Board: it should exist either in <chibios>/os/hal/boards/
  15. # or <this_dir>/boards
  16. BOARD = GENERIC_STM32_F303XC
  17. # Cortex version
  18. MCU = cortex-m4
  19. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  20. ARMV = 7
  21. USE_FPU = yes
  22. # Vector table for application
  23. # 0x00000000-0x00001000 area is occupied by bootlaoder.*/
  24. # The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
  25. # OPT_DEFS = -DCORTEX_VTOR_INIT=0x08005000
  26. # Options to pass to dfu-util when flashing
  27. DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave
  28. DFU_SUFFIX_ARGS = -v 0483 -p df11
  29. # Code for backlight breathing:
  30. SRC += led.c
  31. # Build Options
  32. # comment out to disable the options.
  33. #
  34. BACKLIGHT_ENABLE = yes
  35. BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
  36. MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
  37. EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
  38. CONSOLE_ENABLE = no # Console for debug(+400)
  39. COMMAND_ENABLE = no # Commands for debug and configuration
  40. NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  41. AUDIO_ENABLE = no
  42. RGBLIGHT_ENABLE = no # Enable keyboard underlight functionality
  43. MIDI_ENABLE = no # MIDI controls
  44. UNICODE_ENABLE = no # Unicode
  45. BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
  46. LEADER_ENABLE = yes
  47. LAYOUTS = 60_ansi 60_ansi_split_bs_rshift 60_iso 60_hhkb