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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Target file name (without extension).
  2. TARGET = m0110
  3. # Directory common source filess exist
  4. COMMON_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. m0110.c
  13. CONFIG_H = config.h
  14. # MCU name, you MUST set this to match the board you are using
  15. # type "make clean" after changing this, so all files will be rebuilt
  16. #MCU = at90usb162 # Teensy 1.0
  17. MCU = atmega32u4 # Teensy 2.0
  18. #MCU = at90usb646 # Teensy++ 1.0
  19. #MCU = at90usb1286 # Teensy++ 2.0
  20. # Processor frequency.
  21. # Normally the first thing your program should do is set the clock prescaler,
  22. # so your program will run at the correct speed. You should also set this
  23. # variable to same clock speed. The _delay_ms() macro uses this, and many
  24. # examples use this variable to calculate timings. Do not add a "UL" here.
  25. F_CPU = 16000000
  26. # Build Options
  27. # *Comment out* to disable the options.
  28. #
  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. include $(COMMON_DIR)/pjrc.mk
  36. include $(COMMON_DIR)/common.mk