]> git.donarmstrong.com Git - tmk_firmware.git/blob - keyboard/hhkb/Makefile.iwrap
3ec1a31645ca9fa863d13b0fc901a0720faf90bc
[tmk_firmware.git] / keyboard / hhkb / Makefile.iwrap
1 #
2 # Makefile for iWRAP
3 #
4
5
6 # Target file name (without extension).
7 TARGET = hhkb_iwrap
8
9 # Directory common source filess exist
10 TOP_DIR = ../..
11
12 # Directory keyboard dependent files exist
13 TARGET_DIR = .
14
15 # keyboard dependent files
16 SRC =   \
17         keymap.c \
18         matrix.c \
19         led.c
20
21 CONFIG_H = config_iwrap.h
22
23
24 # V-USB debug level: To use ps2_usart.c level must be 0
25 # ps2_usart.c requires USART to receive PS/2 signal.
26 OPT_DEFS = -DDEBUG_LEVEL=0
27
28
29 # MCU name, you MUST set this to match the board you are using
30 # type "make clean" after changing this, so all files will be rebuilt
31 MCU = atmega328p
32 # avrdude doesn't know atmega168p
33 AVRDUDE_MCU = $(MCU)
34
35
36 # Processor frequency.
37 #   Normally the first thing your program should do is set the clock prescaler,
38 #   so your program will run at the correct speed.  You should also set this
39 #   variable to same clock speed.  The _delay_ms() macro uses this, and many
40 #   examples use this variable to calculate timings.  Do not add a "UL" here.
41 F_CPU = 12000000
42
43
44 # Build Options
45 #   comment out to disable the options.
46 #
47 MOUSEKEY_ENABLE = yes   # Mouse keys
48 EXTRAKEY_ENABLE = yes   # Audio control and System control
49 #NKRO_ENABLE = yes      # USB Nkey Rollover
50
51
52 # Boot Section Size in *BYTEs*
53 #   Teensy   halfKay    512
54 #   Teensy++ halfKay    1024
55 #   Atmel DFU loader    4096
56 #   LUFA bootloader     4096
57 #   USBaspLoader        2048
58 OPT_DEFS += -DBOOT_SIZE=2048
59
60
61
62 #---------------- Programming Options --------------------------
63 AVRDUDE = avrdude
64 # Type: avrdude -c ? to get a full listing.
65 AVRDUDE_PROGRAMMER = usbasp
66 AVRDUDE_PORT =
67 AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
68 #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
69
70 # Uncomment the following if you want avrdude's erase cycle counter.
71 # Note that this counter needs to be initialized first using -Yn,
72 # see avrdude manual.
73 #AVRDUDE_ERASE_COUNTER = -y
74
75 # Uncomment the following if you do /not/ wish a verification to be
76 # performed after programming the device.
77 #AVRDUDE_NO_VERIFY = -V
78
79 # Increase verbosity level.  Please use this when submitting bug
80 # reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude> 
81 # to submit bug reports.
82 #AVRDUDE_VERBOSE = -v -v
83
84 #AVRDUDE_FLAGS = -p $(AVRDUDE_MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER)
85 AVRDUDE_FLAGS = -p $(AVRDUDE_MCU) -c $(AVRDUDE_PROGRAMMER)
86 AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY)
87 AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE)
88 AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER)
89
90 PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)
91
92
93
94 # Search Path
95 VPATH = $(TARGET_DIR)
96 VPATH += $(TOP_DIR)
97
98 #include $(TOP_DIR)/protocol/iwrap.mk
99 # To be swatchable btween Bluetooth and USB. Comment out if you don't need USB.
100 include $(TOP_DIR)/protocol/vusb.mk
101 #include $(TOP_DIR)/protocol.mk
102 include $(TOP_DIR)/common.mk
103 include $(TOP_DIR)/rules.mk