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