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

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