Update config.h
[tmk_keyboard.git] / converter / serialmouse_usb / Makefile
CommitLineData
4799c99b 1#
2# Makefile for Teensy
3#
4# Target file name (without extension).
5TARGET = serialmouse_usb
6
7# Directory common source filess exist
7860d099 8TMK_DIR = ../../tmk_core
4799c99b 9
10# Directory keyboard dependent files exist
11TARGET_DIR = .
12
13# project specific files
14SRC = keymap.c \
15 matrix.c \
16 led.c
17
18CONFIG_H = config.h
19
20
21# MCU name
22#MCU = at90usb1287
23MCU = atmega32u4
24
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.
30#
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
35# software delays.
36F_CPU = 16000000
37
38
39#
40# LUFA specific
41#
42# Target architecture (see library "Board Types" documentation).
43ARCH = AVR8
44
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
52# source code.
53#
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.
56F_USB = $(F_CPU)
57
58# Interrupt driven control endpoint task(+60)
59#OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
60
61
62# Boot Section Size in *bytes*
63# Teensy halfKay 512
64# Teensy++ halfKay 1024
65# Atmel DFU loader 4096
66# LUFA bootloader 4096
67# USBaspLoader 2048
68OPT_DEFS += -DBOOTLOADER_SIZE=512
69
70
71# Build Options
72# comment out to disable the options.
73#
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)
77CONSOLE_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
80
81
82# Serial Mouse Options
83# You can choose a mouse protocol and the implementation of
84# the underlying serial connection.
85#
86SERIAL_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
89SERIAL_MOUSE_USE_SOFT = yes # use software serial implementation
90
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
95
96# Optimize size but this may cause error "relocation truncated to fit"
97#EXTRALDFLAGS = -Wl,--relax
98
99# Search Path
100VPATH += $(TARGET_DIR)
b4e2d325 101VPATH += $(TMK_DIR)
4799c99b 102
b4e2d325 103include $(TMK_DIR)/protocol.mk
104include $(TMK_DIR)/protocol/lufa.mk
105include $(TMK_DIR)/common.mk
106include $(TMK_DIR)/rules.mk
Imprint / Impressum