diff options
Diffstat (limited to 'keyboard/hhkb/Makefile.iwrap')
| -rw-r--r-- | keyboard/hhkb/Makefile.iwrap | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/keyboard/hhkb/Makefile.iwrap b/keyboard/hhkb/Makefile.iwrap index 8d7f4fc66..2d9d82c48 100644 --- a/keyboard/hhkb/Makefile.iwrap +++ b/keyboard/hhkb/Makefile.iwrap | |||
| @@ -29,8 +29,6 @@ OPT_DEFS = -DDEBUG_LEVEL=0 | |||
| 29 | # MCU name, you MUST set this to match the board you are using | 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 | 30 | # type "make clean" after changing this, so all files will be rebuilt |
| 31 | MCU = atmega328p | 31 | MCU = atmega328p |
| 32 | # avrdude doesn't know atmega168p | ||
| 33 | AVRDUDE_MCU = $(MCU) | ||
| 34 | 32 | ||
| 35 | 33 | ||
| 36 | # Processor frequency. | 34 | # Processor frequency. |
| @@ -41,6 +39,15 @@ AVRDUDE_MCU = $(MCU) | |||
| 41 | F_CPU = 12000000 | 39 | F_CPU = 12000000 |
| 42 | 40 | ||
| 43 | 41 | ||
| 42 | # Boot Section Size in *bytes* | ||
| 43 | # Teensy halfKay 512 | ||
| 44 | # Teensy++ halfKay 1024 | ||
| 45 | # Atmel DFU loader 4096 | ||
| 46 | # LUFA bootloader 4096 | ||
| 47 | # USBaspLoader 2048 | ||
| 48 | OPT_DEFS += -DBOOTLOADER_SIZE=2048 | ||
| 49 | |||
| 50 | |||
| 44 | # Build Options | 51 | # Build Options |
| 45 | # comment out to disable the options. | 52 | # comment out to disable the options. |
| 46 | # | 53 | # |
| @@ -75,8 +82,8 @@ AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex | |||
| 75 | # to submit bug reports. | 82 | # to submit bug reports. |
| 76 | #AVRDUDE_VERBOSE = -v -v | 83 | #AVRDUDE_VERBOSE = -v -v |
| 77 | 84 | ||
| 78 | #AVRDUDE_FLAGS = -p $(AVRDUDE_MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) | 85 | #AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) |
| 79 | AVRDUDE_FLAGS = -p $(AVRDUDE_MCU) -c $(AVRDUDE_PROGRAMMER) | 86 | AVRDUDE_FLAGS = -p $(MCU) -c $(AVRDUDE_PROGRAMMER) |
| 80 | AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY) | 87 | AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY) |
| 81 | AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE) | 88 | AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE) |
| 82 | AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER) | 89 | AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER) |
| @@ -89,9 +96,8 @@ PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE | |||
| 89 | VPATH += $(TARGET_DIR) | 96 | VPATH += $(TARGET_DIR) |
| 90 | VPATH += $(TOP_DIR) | 97 | VPATH += $(TOP_DIR) |
| 91 | 98 | ||
| 92 | #include $(TOP_DIR)/protocol/iwrap.mk | 99 | include $(TOP_DIR)/protocol/iwrap.mk |
| 93 | # To be swatchable btween Bluetooth and USB. Comment out if you don't need USB. | 100 | # TODO: to be selectable: V-USB, LUFA or PJRC |
| 94 | include $(TOP_DIR)/protocol/vusb.mk | 101 | #include $(TOP_DIR)/protocol/vusb.mk |
| 95 | #include $(TOP_DIR)/protocol.mk | ||
| 96 | include $(TOP_DIR)/common.mk | 102 | include $(TOP_DIR)/common.mk |
| 97 | include $(TOP_DIR)/rules.mk | 103 | include $(TOP_DIR)/rules.mk |
