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

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