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