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