]> git.donarmstrong.com Git - tmk_firmware.git/blob - converter/m0110_usb/Makefile
Change keymaps of M0110
[tmk_firmware.git] / converter / m0110_usb / Makefile
1 # Target file name (without extension).
2 TARGET = m0110_lufa
3
4 # Directory common source filess exist
5 TOP_DIR = ../..
6
7 # Directory keyboard dependent files exist
8 TARGET_DIR = .
9
10 # keyboard dependent files
11 SRC =   matrix.c \
12         led.c \
13         keymap_common.c \
14         m0110.c
15
16 # To use own keymap file run make like: make keymap=hasu
17 ifdef KEYMAP
18     SRC += keymap_$(KEYMAP).c
19 else
20     SRC += keymap_plain.c
21 endif
22
23 CONFIG_H = config.h
24
25
26 # MCU name, you MUST set this to match the board you are using
27 # type "make clean" after changing this, so all files will be rebuilt
28 #MCU = at90usb162       # Teensy 1.0
29 MCU = atmega32u4       # Teensy 2.0
30 #MCU = at90usb646       # Teensy++ 1.0
31 #MCU = at90usb1286      # Teensy++ 2.0
32
33
34 # Processor frequency.
35 #   Normally the first thing your program should do is set the clock prescaler,
36 #   so your program will run at the correct speed.  You should also set this
37 #   variable to same clock speed.  The _delay_ms() macro uses this, and many
38 #   examples use this variable to calculate timings.  Do not add a "UL" here.
39 F_CPU = 16000000
40
41
42 #
43 # LUFA specific
44 #
45 # Target architecture (see library "Board Types" documentation).
46 ARCH = AVR8
47
48 # Input clock frequency.
49 #     This will define a symbol, F_USB, in all source code files equal to the
50 #     input clock frequency (before any prescaling is performed) in Hz. This value may
51 #     differ from F_CPU if prescaling is used on the latter, and is required as the
52 #     raw input clock is fed directly to the PLL sections of the AVR for high speed
53 #     clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
54 #     at the end, this will be done automatically to create a 32-bit value in your
55 #     source code.
56 #
57 #     If no clock division is performed on the input clock inside the AVR (via the
58 #     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
59 F_USB = $(F_CPU)
60
61 # Interrupt driven control endpoint task
62 OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
63
64
65 # Boot Section Size in bytes
66 #   Teensy halfKay   512
67 #   Atmel DFU loader 4096
68 #   LUFA bootloader  4096
69 OPT_DEFS += -DBOOTLOADER_SIZE=4096
70
71
72 # Build Options
73 #   *Comment out* to disable the options.
74 #
75 #BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
76 MOUSEKEY_ENABLE = yes   # Mouse keys(+4700)
77 EXTRAKEY_ENABLE = yes   # Audio control and System control(+450)
78 CONSOLE_ENABLE = yes    # Console for debug(+400)
79 COMMAND_ENABLE = yes    # Commands for debug and configuration
80 #SLEEP_LED_ENABLE = yes  # Breathing sleep LED during USB suspend
81 #NKRO_ENABLE = yes      # USB Nkey Rollover - not yet supported in LUFA
82 #KEYMAP_SECTION_ENABLE = yes    # fixed address keymap for keymap editor
83
84
85
86 #---------------- Programming Options --------------------------
87 PROGRAM_CMD = teensy_loader_cli -mmcu=$(MCU) -w -v $(TARGET).hex
88
89
90 # Search Path
91 VPATH += $(TARGET_DIR)
92 VPATH += $(TOP_DIR)
93
94
95 include $(TOP_DIR)/protocol/lufa.mk
96 include $(TOP_DIR)/protocol.mk
97 include $(TOP_DIR)/common.mk
98 include $(TOP_DIR)/rules.mk