Keyboard firmwares for Atmel AVR and Cortex-M
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Makefile.vusb 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # Target file name (without extension).
  2. TARGET = hhkb_vusb
  3. # Directory common source filess exist
  4. COMMON_DIR = ..
  5. # Directory keyboard dependent files exist
  6. TARGET_DIR = .
  7. # keyboard dependent files
  8. TARGET_SRC = main_vusb.c \
  9. keymap.c \
  10. matrix.c \
  11. led.c
  12. CONFIG_H = config_vusb.h
  13. # V-USB debug level: To use ps2_usart.c level must be 0
  14. # ps2_usart.c requires USART to receive PS/2 signal.
  15. OPT_DEFS = -DDEBUG_LEVEL=0
  16. # MCU name, you MUST set this to match the board you are using
  17. # type "make clean" after changing this, so all files will be rebuilt
  18. #MCU = at90usb162 # Teensy 1.0
  19. #MCU = atmega32u4 # Teensy 2.0
  20. #MCU = at90usb646 # Teensy++ 1.0
  21. #MCU = at90usb1286 # Teensy++ 2.0
  22. MCU = atmega168
  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 = 20000000
  29. # Build Options
  30. # comment out to disable the options.
  31. #
  32. MOUSEKEY_ENABLE = yes # Mouse keys
  33. USB_EXTRA_ENABLE = yes # Enhanced feature for Windows(Audio control and System control)
  34. #USB_NKRO_ENABLE = yes # USB Nkey Rollover
  35. #---------------- Programming Options --------------------------
  36. AVRDUDE = avrdude
  37. # Type: avrdude -c ? to get a full listing.
  38. AVRDUDE_PROGRAMMER = usbasp
  39. AVRDUDE_PORT =
  40. AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
  41. #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
  42. # Uncomment the following if you want avrdude's erase cycle counter.
  43. # Note that this counter needs to be initialized first using -Yn,
  44. # see avrdude manual.
  45. #AVRDUDE_ERASE_COUNTER = -y
  46. # Uncomment the following if you do /not/ wish a verification to be
  47. # performed after programming the device.
  48. #AVRDUDE_NO_VERIFY = -V
  49. # Increase verbosity level. Please use this when submitting bug
  50. # reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude>
  51. # to submit bug reports.
  52. #AVRDUDE_VERBOSE = -v -v
  53. #AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
  54. AVRDUDE_FLAGS = -p $(MCU) -c $(AVRDUDE_PROGRAMMER)
  55. AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY)
  56. AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE)
  57. AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER)
  58. PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
  59. include $(COMMON_DIR)/Makefile.vusb
  60. include $(COMMON_DIR)/Makefile.common