]> git.gir.st - tmk_keyboard.git/blob - converter/ps2_usb/Makefile.tmk_rev1
Add Makefiles for TMK converters.
[tmk_keyboard.git] / converter / ps2_usb / Makefile.tmk_rev1
1 #
2 # Makefile for TMK keyboard converter rev2
3 # https://github.com/tmk/keyboard_converter#pcb-rev1
4 #
5 # Target file name (without extension).
6 TARGET = ps2_usb_tmk_rev1
7
8 # Directory common source filess exist
9 TOP_DIR = ../..
10
11 # Directory keyboard dependent files exist
12 TARGET_DIR = .
13
14 # project specific files
15 SRC = keymap_common.c \
16 matrix.c \
17 led.c
18
19 ifdef KEYMAP
20 SRC := keymap_$(KEYMAP).c $(SRC)
21 else
22 SRC := keymap_plain.c $(SRC)
23 endif
24
25 CONFIG_H = config_tmk_rev1.h
26
27
28 # MCU name
29 MCU = atmega32u4
30
31 # Processor frequency.
32 # This will define a symbol, F_CPU, in all source code files equal to the
33 # processor frequency in Hz. You can then use this symbol in your source code to
34 # calculate timings. Do NOT tack on a 'UL' at the end, this will be done
35 # automatically to create a 32-bit value in your source code.
36 #
37 # This will be an integer division of F_USB below, as it is sourced by
38 # F_USB after it has run through any CPU prescalers. Note that this value
39 # does not *change* the processor frequency - it should merely be updated to
40 # reflect the processor speed set externally so that the code can use accurate
41 # software delays.
42 F_CPU = 16000000
43
44
45 #
46 # LUFA specific
47 #
48 # Target architecture (see library "Board Types" documentation).
49 ARCH = AVR8
50
51 # Input clock frequency.
52 # This will define a symbol, F_USB, in all source code files equal to the
53 # input clock frequency (before any prescaling is performed) in Hz. This value may
54 # differ from F_CPU if prescaling is used on the latter, and is required as the
55 # raw input clock is fed directly to the PLL sections of the AVR for high speed
56 # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
57 # at the end, this will be done automatically to create a 32-bit value in your
58 # source code.
59 #
60 # If no clock division is performed on the input clock inside the AVR (via the
61 # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
62 F_USB = $(F_CPU)
63
64
65 # Boot Section Size in *bytes*
66 # Teensy halfKay 512
67 # Teensy++ halfKay 1024
68 # Atmel DFU loader 4096
69 # LUFA bootloader 4096
70 # USBaspLoader 2048
71 OPT_DEFS += -DBOOTLOADER_SIZE=4096
72
73
74 # Build Options
75 # comment out to disable the options.
76 #
77 #BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
78 MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
79 EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
80 CONSOLE_ENABLE = yes # Console for debug(+400)
81 COMMAND_ENABLE = yes # Commands for debug and configuration
82 #NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA
83
84
85 # PS/2 Options
86 #
87 PS2_USE_USART = yes # uses hardware USART engine for PS/2 signal receive(recomened)
88 #PS2_USE_BUSYWAIT = yes # uses primitive reference code
89
90
91 # Search Path
92 VPATH += $(TARGET_DIR)
93 VPATH += $(TOP_DIR)
94
95 include $(TOP_DIR)/protocol.mk
96 include $(TOP_DIR)/protocol/lufa.mk
97 include $(TOP_DIR)/common.mk
98 include $(TOP_DIR)/rules.mk
Imprint / Impressum