1 # Target file name (without extension).
4 # Directory common source filess exist
7 # Directory keyboard dependent files exist
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
14 MCU = atmega32u4 # Teensy 2.0
15 #MCU = at90usb646 # Teensy++ 1.0
16 #MCU = at90usb1286 # Teensy++ 2.0
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.
28 # *Comment out* to disable the options.
30 MOUSEKEY_ENABLE = yes # Mouse keys
31 EXTRAKEY_ENABLE = yes # Audio control and System control
32 NKRO_ENABLE = yes # USB Nkey Rollover
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
36 PS2_USE_BUSYWAIT = yes # uses primitive reference code
39 # keyboard dependent files
46 SRC += protocol/ps2_usart.c
47 OPT_DEFS += -DPS2_USE_USART
51 OPT_DEFS += -DPS2_USE_INT
53 ifdef PS2_USE_BUSYWAIT
55 OPT_DEFS += -DPS2_USE_BUSYWAIT
59 #CONFIG_H = config_pjrc_usart.h
63 #---------------- Programming Options --------------------------
64 PROGRAM_CMD = teensy_loader_cli -mmcu=$(MCU) -w -v $(TARGET).hex
68 VPATH += $(TARGET_DIR)
72 include $(TOP_DIR)/protocol/pjrc.mk
73 include $(TOP_DIR)/protocol.mk
74 include $(TOP_DIR)/common.mk
75 include $(TOP_DIR)/rules.mk