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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

Makefile 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Target file name (without extension).
  2. PROJECT = ch
  3. TARGET = alps64
  4. # Directory common source files exist
  5. TMK_DIR = ../../tmk_core
  6. # Directory keyboard dependent files exist
  7. TARGET_DIR = .
  8. # project specific files
  9. SRC = matrix.c \
  10. led.c
  11. ifdef KEYMAP
  12. SRC := keymap_$(KEYMAP).c $(SRC)
  13. else
  14. SRC := keymap_plain.c $(SRC)
  15. endif
  16. CONFIG_H = config.h
  17. ## chip/board settings
  18. # the next two should match the directories in
  19. # <chibios>/os/hal/ports/$(MCU_FAMILY)/$(MCU_SERIES)
  20. MCU_FAMILY = STM32
  21. MCU_SERIES = STM32F0xx
  22. # linker script to use
  23. # it should exist either in <chibios>/os/common/ports/ARMCMx/compilers/GCC/ld/
  24. # or <this_dir>/ld/
  25. MCU_LDSCRIPT = STM32F072xB
  26. # startup code to use
  27. # is should exist in <chibios>/os/common/ports/ARMCMx/compilers/GCC/mk/
  28. MCU_STARTUP = stm32f0xx
  29. # it should exist either in <chibios>/os/hal/boards/
  30. # or <this_dir>/boards
  31. BOARD = ST_STM32F072B_DISCOVERY
  32. # ARM version, CORTEX-M0/M1 are 6, CORTEX-M3/M4/M7 are 7
  33. ARMV = 6
  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. MOUSEKEY_ENABLE = yes # Mouse keys
  49. EXTRAKEY_ENABLE = yes # Audio control and System control
  50. CONSOLE_ENABLE = yes # Console for debug
  51. COMMAND_ENABLE = yes # Commands for debug and configuration
  52. SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  53. NKRO_ENABLE = yes # USB Nkey Rollover
  54. include $(TMK_DIR)/tool/chibios/common.mk
  55. include $(TMK_DIR)/tool/chibios/chibios.mk