Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 2.6KB

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