Makefile 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # project specific files
  2. SRC = matrix.c \
  3. led.c
  4. # GENERIC STM32F103C8T6 board - stm32duino bootloader
  5. OPT_DEFS = -DCORTEX_VTOR_INIT=0x2000
  6. MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
  7. BOARD = GENERIC_STM32_F103
  8. # GENERIC STM32F103C8T6 board - no bootloader (programmer over serial or SWD)
  9. # OPT_DEFS =
  10. # MCU_LDSCRIPT = STM32F103x8
  11. # BOARD = GENERIC_STM32_F103
  12. # MAPLE MINI
  13. # OPT_DEFS = -DCORTEX_VTOR_INIT=0x5000
  14. # MCU_LDSCRIPT = STM32F103xB_maplemini_bootloader
  15. # BOARD = MAPLEMINI_STM32_F103
  16. ## chip/board settings
  17. # the next two should match the directories in
  18. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  19. MCU_FAMILY = STM32
  20. MCU_SERIES = STM32F1xx
  21. # linker script to use
  22. # it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  23. # or <this_dir>/ld/
  24. # startup code to use
  25. # is should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
  26. MCU_STARTUP = stm32f1xx
  27. # it should exist either in <chibios>/os/hal/boards/
  28. # or <this_dir>/boards
  29. # Cortex version
  30. # Teensy LC is cortex-m0; Teensy 3.x are cortex-m4
  31. MCU = cortex-m3
  32. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  33. ARMV = 7
  34. # If you want to be able to jump to bootloader from firmware on STM32 MCUs,
  35. # set the correct BOOTLOADER_ADDRESS. Either set it here, or define it in
  36. # ./bootloader_defs.h or in ./boards/<FOO>/bootloader_defs.h (if you have
  37. # a custom board definition that you plan to reuse).
  38. # If you're not setting it here, leave it commented out.
  39. # It is chip dependent, the correct number can be looked up here (page 175):
  40. # http://www.st.com/web/en/resource/technical/document/application_note/CD00167594.pdf
  41. # This also requires a patch to chibios:
  42. # <tmk_dir>/tmk_core/tool/chibios/ch-bootloader-jump.patch
  43. #STM32_BOOTLOADER_ADDRESS = 0x1FFFC800
  44. # Build Options
  45. # comment out to disable the options.
  46. #
  47. #BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
  48. ## BOOTMAGIC is not supported on STM32 chips yet.
  49. MOUSEKEY_ENABLE ?= yes # Mouse keys
  50. EXTRAKEY_ENABLE ?= yes # Audio control and System control
  51. # CONSOLE_ENABLE ?= yes # Console for debug
  52. COMMAND_ENABLE ?= yes # Commands for debug and configuration
  53. SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend
  54. NKRO_ENABLE ?= yes # USB Nkey Rollover
  55. CUSTOM_MATRIX ?= yes # Custom matrix file
  56. ifndef QUANTUM_DIR
  57. include ../../Makefile
  58. endif