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.

пре 11 година
пре 9 година
пре 11 година
пре 11 година
пре 10 година
пре 11 година
пре 10 година
пре 11 година
пре 11 година
пре 11 година
пре 11 година
пре 11 година
пре 11 година
пре 11 година
пре 11 година
пре 11 година
пре 11 година
пре 11 година
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # Target file name (without extension).
  2. TARGET = sun_usb
  3. # Directory common source filess exist
  4. TMK_DIR = ../../tmk_core
  5. # Directory keyboard dependent files exist
  6. TARGET_DIR = .
  7. # keyboard dependent files
  8. SRC = keymap.c \
  9. matrix.c \
  10. led.c \
  11. command_extra.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. MCU = atmega32u2
  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. #
  27. # LUFA specific
  28. #
  29. # Target architecture (see library "Board Types" documentation).
  30. ARCH = AVR8
  31. # Input clock frequency.
  32. # This will define a symbol, F_USB, in all source code files equal to the
  33. # input clock frequency (before any prescaling is performed) in Hz. This value may
  34. # differ from F_CPU if prescaling is used on the latter, and is required as the
  35. # raw input clock is fed directly to the PLL sections of the AVR for high speed
  36. # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
  37. # at the end, this will be done automatically to create a 32-bit value in your
  38. # source code.
  39. #
  40. # If no clock division is performed on the input clock inside the AVR (via the
  41. # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
  42. F_USB = $(F_CPU)
  43. # Interrupt driven control endpoint task
  44. OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
  45. # Build Options
  46. # *Comment out* to disable the options.
  47. #
  48. MOUSEKEY_ENABLE = yes # Mouse keys
  49. EXTRAKEY_ENABLE = yes # Audio control and System control
  50. CONSOLE_ENABLE = yes # Console for debug
  51. COMMAND_ENABLE = yes # Commands for debug and configuration
  52. #HARDWARE_SERIAL = yes # Use hardware serial (requires inverted serial, see README)
  53. #NKRO_ENABLE = yes # USB Nkey Rollover
  54. ifdef HARDWARE_SERIAL
  55. SRC := protocol/serial_uart.c $(SRC)
  56. OPT_DEFS += -DHARDWARE_SERIAL
  57. else
  58. SRC := protocol/serial_soft.c $(SRC)
  59. endif
  60. # Boot Section Size in bytes
  61. # Teensy halfKay 512
  62. # Atmel DFU loader 4096
  63. # LUFA bootloader 4096
  64. OPT_DEFS += -DBOOTLOADER_SIZE=4096
  65. # Search Path
  66. VPATH += $(TARGET_DIR)
  67. VPATH += $(TMK_DIR)
  68. include $(TMK_DIR)/protocol/lufa.mk
  69. include $(TMK_DIR)/protocol.mk
  70. include $(TMK_DIR)/common.mk
  71. include $(TMK_DIR)/rules.mk