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.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #
  2. # Makefile for PJRC Teensy
  3. #
  4. # Target file name (without extension).
  5. TARGET = hhkb_pjrc
  6. # Directory common source filess exist
  7. TMK_DIR = ../../tmk_core
  8. # Directory keyboard dependent files exist
  9. TARGET_DIR = .
  10. # keyboard dependent files
  11. SRC = matrix.c \
  12. led.c
  13. ifdef KEYMAP
  14. SRC := keymap_$(KEYMAP).c $(SRC)
  15. else
  16. SRC := keymap_hasu.c $(SRC)
  17. endif
  18. CONFIG_H = config.h
  19. # MCU name, you MUST set this to match the board you are using
  20. # type "make clean" after changing this, so all files will be rebuilt
  21. #MCU = at90usb162 # Teensy 1.0
  22. MCU = atmega32u4 # Teensy 2.0
  23. #MCU = at90usb646 # Teensy++ 1.0
  24. #MCU = at90usb1286 # Teensy++ 2.0
  25. # Processor frequency.
  26. # Normally the first thing your program should do is set the clock prescaler,
  27. # so your program will run at the correct speed. You should also set this
  28. # variable to same clock speed. The _delay_ms() macro uses this, and many
  29. # examples use this variable to calculate timings. Do not add a "UL" here.
  30. F_CPU = 16000000
  31. # Build Options
  32. # comment out to disable the options.
  33. #
  34. BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
  35. MOUSEKEY_ENABLE = yes # Mouse keys
  36. EXTRAKEY_ENABLE = yes # Audio control and System control
  37. CONSOLE_ENABLE = yes # Console for debug
  38. COMMAND_ENABLE = yes # Commands for debug and configuration
  39. NKRO_ENABLE = yes # USB Nkey Rollover
  40. #---------------- Programming Options --------------------------
  41. PROGRAM_CMD = teensy_loader_cli -mmcu=$(MCU) -w -v $(TARGET).hex
  42. # Search Path
  43. VPATH += $(TARGET_DIR)
  44. VPATH += $(TMK_DIR)
  45. include $(TMK_DIR)/protocol/pjrc.mk
  46. include $(TMK_DIR)/common.mk
  47. include $(TMK_DIR)/rules.mk