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