4 # Target file name (without extension).
5 TARGET = serialmouse_usb
7 # Directory common source filess exist
8 TMK_DIR = ../../tmk_core
10 # Directory keyboard dependent files exist
13 # project specific files
25 # Processor frequency.
26 # This will define a symbol, F_CPU, in all source code files equal to the
27 # processor frequency in Hz. You can then use this symbol in your source code to
28 # calculate timings. Do NOT tack on a 'UL' at the end, this will be done
29 # automatically to create a 32-bit value in your source code.
31 # This will be an integer division of F_USB below, as it is sourced by
32 # F_USB after it has run through any CPU prescalers. Note that this value
33 # does not *change* the processor frequency - it should merely be updated to
34 # reflect the processor speed set externally so that the code can use accurate
42 # Target architecture (see library "Board Types" documentation).
45 # Input clock frequency.
46 # This will define a symbol, F_USB, in all source code files equal to the
47 # input clock frequency (before any prescaling is performed) in Hz. This value may
48 # differ from F_CPU if prescaling is used on the latter, and is required as the
49 # raw input clock is fed directly to the PLL sections of the AVR for high speed
50 # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
51 # at the end, this will be done automatically to create a 32-bit value in your
54 # If no clock division is performed on the input clock inside the AVR (via the
55 # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
58 # Interrupt driven control endpoint task(+60)
59 #OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
62 # Boot Section Size in *bytes*
64 # Teensy++ halfKay 1024
65 # Atmel DFU loader 4096
66 # LUFA bootloader 4096
68 OPT_DEFS += -DBOOTLOADER_SIZE=512
72 # comment out to disable the options.
74 #BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
75 #MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
76 #EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
77 CONSOLE_ENABLE = yes # Console for debug(+400)
78 #COMMAND_ENABLE = yes # Commands for debug and configuration
79 #NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA
82 # Serial Mouse Options
83 # You can choose a mouse protocol and the implementation of
84 # the underlying serial connection.
86 SERIAL_MOUSE_MICROSOFT_ENABLE = yes # Enable support for Microsoft-compatible mice
87 #SERIAL_MOUSE_MOUSESYSTEMS_ENABLE = yes # Enable support for Mousesystems-compatible mice
88 #SERIAL_MOUSE_USE_UART = yes # use hardware UART for serial connection
89 SERIAL_MOUSE_USE_SOFT = yes # use software serial implementation
91 # Optional serial mouse driver features
92 # Support scrolling while holding the middle mouse button
93 # (currently only supported for Mousesystems mice):
94 #OPT_DEFS += -DSERIAL_MOUSE_CENTER_SCROLL
96 # Optimize size but this may cause error "relocation truncated to fit"
97 #EXTRALDFLAGS = -Wl,--relax
100 VPATH += $(TARGET_DIR)
103 include $(TMK_DIR)/protocol.mk
104 include $(TMK_DIR)/protocol/lufa.mk
105 include $(TMK_DIR)/common.mk
106 include $(TMK_DIR)/rules.mk