]> git.gir.st - tmk_keyboard.git/blob - ps2_usb/Makefile.vusb
d85f1d55d50e5d191e51262c87e47077de49fe72
[tmk_keyboard.git] / ps2_usb / Makefile.vusb
1 #
2 # Makefile for V-USB
3 #
4
5
6 # Target file name (without extension).
7 TARGET = ps2_usb_vusb
8
9 # Directory common source filess exist
10 TOP_DIR = ..
11
12 # Directory keyboard dependent files exist
13 TARGET_DIR = .
14
15 # keyboard dependent files
16 SRC = main.c \
17 keymap.c \
18 matrix.c \
19 led.c \
20 ps2_usart.c
21
22 CONFIG_H = config_vusb.h
23
24
25 # V-USB debug level: To use ps2_usart.c level must be 0
26 # ps2_usart.c requires USART to receive PS/2 signal.
27 OPT_DEFS = -DDEBUG_LEVEL=0
28
29
30 # MCU name, you MUST set this to match the board you are using
31 # type "make clean" after changing this, so all files will be rebuilt
32 #MCU = at90usb162 # Teensy 1.0
33 #MCU = atmega32u4 # Teensy 2.0
34 #MCU = at90usb646 # Teensy++ 1.0
35 #MCU = at90usb1286 # Teensy++ 2.0
36 MCU = atmega168
37
38
39 # Processor frequency.
40 # Normally the first thing your program should do is set the clock prescaler,
41 # so your program will run at the correct speed. You should also set this
42 # variable to same clock speed. The _delay_ms() macro uses this, and many
43 # examples use this variable to calculate timings. Do not add a "UL" here.
44 F_CPU = 20000000
45
46
47 # Build Options
48 # comment out to disable the options.
49 #
50 MOUSEKEY_ENABLE = yes # Mouse keys
51 EXTRAKEY_ENABLE = yes # Audio control and System control
52 #NKRO_ENABLE = yes # USB Nkey Rollover
53 NO_UART = yes # UART is unavailable
54
55
56
57 #---------------- Programming Options --------------------------
58 AVRDUDE = avrdude
59 # Type: avrdude -c ? to get a full listing.
60 AVRDUDE_PROGRAMMER = usbasp
61 AVRDUDE_PORT =
62 AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
63 #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
64
65 # Uncomment the following if you want avrdude's erase cycle counter.
66 # Note that this counter needs to be initialized first using -Yn,
67 # see avrdude manual.
68 #AVRDUDE_ERASE_COUNTER = -y
69
70 # Uncomment the following if you do /not/ wish a verification to be
71 # performed after programming the device.
72 #AVRDUDE_NO_VERIFY = -V
73
74 # Increase verbosity level. Please use this when submitting bug
75 # reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude>
76 # to submit bug reports.
77 #AVRDUDE_VERBOSE = -v -v
78
79 #AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
80 AVRDUDE_FLAGS = -p $(MCU) -c $(AVRDUDE_PROGRAMMER)
81 AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY)
82 AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE)
83 AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER)
84
85 PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
86
87
88
89 include $(TOP_DIR)/protocol/vusb.mk
90 include $(TOP_DIR)/protocol.mk
91 include $(TOP_DIR)/common.mk
92 include $(TOP_DIR)/rules.mk
Imprint / Impressum