]> git.gir.st - tmk_keyboard.git/blame - converter/ps2_usb/Makefile.vusb
remove experimental return, cleanup slash_question key
[tmk_keyboard.git] / converter / ps2_usb / Makefile.vusb
CommitLineData
4f5f1a53 1# Target file name (without extension).
af85b6bb 2TARGET = ps2_usb_vusb
4f5f1a53 3
4# Directory common source filess exist
7860d099 5TMK_DIR = ../../tmk_core
4f5f1a53 6
7# Directory keyboard dependent files exist
8TARGET_DIR = .
9
10# keyboard dependent files
7b31d1b9 11SRC = matrix.c \
1ac674db 12 led.c
13
93915040
SM
14ifdef KEYMAP
15 SRC := keymap_$(KEYMAP).c $(SRC)
16else
17 SRC := keymap_plain.c $(SRC)
18endif
19
1ac674db 20CONFIG_H = config.h
fb8d23c6 21
22
5f06f26e 23# Use USART for PS/2. With V-USB INT and BUSYWAIT code is not useful.
24PS2_USE_USART = yes
25
26
61e12a31 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.
1ac674db 29OPT_DEFS += -DDEBUG_LEVEL=0
4f5f1a53 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
6527e1d9 38#MCU = atmega168
39MCU = atmega328p
4f5f1a53 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.
6527e1d9 47F_CPU = 12000000
4f5f1a53 48
49
50# Build Options
51# comment out to disable the options.
52#
acc974c6 53MOUSEKEY_ENABLE = yes # Mouse keys
e67c9888 54EXTRAKEY_ENABLE = yes # Audio control and System control
55#NKRO_ENABLE = yes # USB Nkey Rollover
56NO_UART = yes # UART is unavailable
4f5f1a53 57
58
47f5d8b5 59
fb8d23c6 60#---------------- Programming Options --------------------------
61AVRDUDE = avrdude
47f5d8b5 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
fb8d23c6 88PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
89
47f5d8b5 90
2769f09d 91# Boot Section Size in bytes
92# Teensy halfKay 512
93# Atmel DFU loader 4096
94# LUFA bootloader 4096
95# USBasp 2048
353a9b56 96OPT_DEFS += -DBOOTLOADER_SIZE=2048
2769f09d 97
98
99# Search Path
100VPATH += $(TARGET_DIR)
b4e2d325 101VPATH += $(TMK_DIR)
2769f09d 102
47f5d8b5 103
b4e2d325 104include $(TMK_DIR)/protocol.mk
105include $(TMK_DIR)/common.mk
106include $(TMK_DIR)/protocol/vusb.mk
107include $(TMK_DIR)/rules.mk
Imprint / Impressum