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.pjrc 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Target file name (without extension).
  2. TARGET = adb_usb_pjrc
  3. # Directory common source filess exist
  4. TMK_DIR = ../../tmk_core
  5. # Directory keyboard dependent files exist
  6. TARGET_DIR = .
  7. # keyboard dependent files
  8. SRC = keymap_common.c \
  9. matrix.c \
  10. led.c \
  11. adb.c
  12. ifdef KEYMAP
  13. SRC := keymap_$(KEYMAP).c $(SRC)
  14. else
  15. SRC := keymap_ansi.c $(SRC)
  16. endif
  17. CONFIG_H = config.h
  18. # MCU name, you MUST set this to match the board you are using
  19. # type "make clean" after changing this, so all files will be rebuilt
  20. #MCU = at90usb162 # Teensy 1.0
  21. MCU = atmega32u4 # Teensy 2.0
  22. #MCU = at90usb646 # Teensy++ 1.0
  23. #MCU = at90usb1286 # Teensy++ 2.0
  24. # Processor frequency.
  25. # Normally the first thing your program should do is set the clock prescaler,
  26. # so your program will run at the correct speed. You should also set this
  27. # variable to same clock speed. The _delay_ms() macro uses this, and many
  28. # examples use this variable to calculate timings. Do not add a "UL" here.
  29. F_CPU = 16000000
  30. # Boot Section Size in *bytes*
  31. # Teensy halfKay 512
  32. # Teensy++ halfKay 1024
  33. # Atmel DFU loader 4096
  34. # LUFA bootloader 4096
  35. # USBaspLoader 2048
  36. OPT_DEFS += -DBOOTLOADER_SIZE=4096
  37. # Build Options
  38. # comment out to disable the options.
  39. #
  40. BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
  41. MOUSEKEY_ENABLE = yes # Mouse keys(+5000)
  42. EXTRAKEY_ENABLE = yes # Audio control and System control(+600)
  43. CONSOLE_ENABLE = yes # Console for debug
  44. COMMAND_ENABLE = yes # Commands for debug and configuration
  45. #SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  46. #NKRO_ENABLE = yes # USB Nkey Rollover(+500)
  47. # Search Path
  48. VPATH += $(TARGET_DIR)
  49. VPATH += $(TMK_DIR)
  50. include $(TMK_DIR)/protocol/pjrc.mk
  51. include $(TMK_DIR)/protocol.mk
  52. include $(TMK_DIR)/common.mk
  53. include $(TMK_DIR)/rules.mk