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 1.6KB

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