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