Fix remotewakeup of PJRC stack(Fix #121)
[tmk_keyboard.git] / converter / ps2_usb / Makefile.jis
CommitLineData
9addeae8 1# Target file name (without extension).
1ac674db 2TARGET = ps2_usb_jis
9addeae8 3
4# Directory common source filess exist
afb08462 5TOP_DIR = ../..
9addeae8 6
7# Directory keyboard dependent files exist
8TARGET_DIR = .
9
9addeae8 10
11# MCU name, you MUST set this to match the board you are using
12# type "make clean" after changing this, so all files will be rebuilt
13#MCU = at90usb162 # Teensy 1.0
14MCU = atmega32u4 # Teensy 2.0
15#MCU = at90usb646 # Teensy++ 1.0
16#MCU = at90usb1286 # Teensy++ 2.0
17
18
19# Processor frequency.
20# Normally the first thing your program should do is set the clock prescaler,
21# so your program will run at the correct speed. You should also set this
22# variable to same clock speed. The _delay_ms() macro uses this, and many
23# examples use this variable to calculate timings. Do not add a "UL" here.
24F_CPU = 16000000
25
26
27# Build Options
28# *Comment out* to disable the options.
29#
30MOUSEKEY_ENABLE = yes # Mouse keys
31EXTRAKEY_ENABLE = yes # Audio control and System control
32NKRO_ENABLE = yes # USB Nkey Rollover
33
1ac674db 34#PS2_USE_USART = yes # uses hardware USART engine for PS/2 signal receive(recomened)
35#PS2_USE_INT = yes # uses external interrupt for falling edge of PS/2 clock pin
36PS2_USE_BUSYWAIT = yes # uses primitive reference code
37
38
39# keyboard dependent files
40SRC = keymap_jis.c \
41 matrix.c \
42 led.c
43
44
45ifdef PS2_USE_USART
46 SRC += protocol/ps2_usart.c
47 OPT_DEFS += -DPS2_USE_USART
48endif
49ifdef PS2_USE_INT
50 SRC += protocol/ps2.c
51 OPT_DEFS += -DPS2_USE_INT
52endif
53ifdef PS2_USE_BUSYWAIT
54 SRC += protocol/ps2.c
55 OPT_DEFS += -DPS2_USE_BUSYWAIT
56endif
57
58
59#CONFIG_H = config_pjrc_usart.h
60CONFIG_H = config.h
9addeae8 61
62
63#---------------- Programming Options --------------------------
64PROGRAM_CMD = teensy_loader_cli -mmcu=$(MCU) -w -v $(TARGET).hex
65
66
2769f09d 67# Search Path
68VPATH += $(TARGET_DIR)
69VPATH += $(TOP_DIR)
70
9addeae8 71
63d82fca 72include $(TOP_DIR)/protocol/pjrc.mk
73include $(TOP_DIR)/protocol.mk
74include $(TOP_DIR)/common.mk
75include $(TOP_DIR)/rules.mk
Imprint / Impressum