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

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