diff options
Diffstat (limited to 'hhkb/Makefile.vusb')
| -rw-r--r-- | hhkb/Makefile.vusb | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/hhkb/Makefile.vusb b/hhkb/Makefile.vusb index 77841b824..5bfc233df 100644 --- a/hhkb/Makefile.vusb +++ b/hhkb/Makefile.vusb | |||
| @@ -13,10 +13,10 @@ COMMON_DIR = .. | |||
| 13 | TARGET_DIR = . | 13 | TARGET_DIR = . |
| 14 | 14 | ||
| 15 | # keyboard dependent files | 15 | # keyboard dependent files |
| 16 | TARGET_SRC = main_vusb.c \ | 16 | SRC = main.c \ |
| 17 | keymap.c \ | 17 | keymap.c \ |
| 18 | matrix.c \ | 18 | matrix.c \ |
| 19 | led.c | 19 | led.c |
| 20 | 20 | ||
| 21 | CONFIG_H = config_vusb.h | 21 | CONFIG_H = config_vusb.h |
| 22 | 22 | ||
| @@ -28,7 +28,9 @@ OPT_DEFS = -DDEBUG_LEVEL=0 | |||
| 28 | 28 | ||
| 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 = atmega168 | 31 | MCU = atmega168p |
| 32 | # avrdude doesn't know atmega168p | ||
| 33 | AVRDUDE_MCU = atmega168 | ||
| 32 | 34 | ||
| 33 | 35 | ||
| 34 | # Processor frequency. | 36 | # Processor frequency. |
| @@ -36,15 +38,15 @@ MCU = atmega168 | |||
| 36 | # so your program will run at the correct speed. You should also set this | 38 | # 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 | 39 | # 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. | 40 | # examples use this variable to calculate timings. Do not add a "UL" here. |
| 39 | F_CPU = 20000000 | 41 | F_CPU = 12000000 |
| 40 | 42 | ||
| 41 | 43 | ||
| 42 | # Build Options | 44 | # Build Options |
| 43 | # comment out to disable the options. | 45 | # comment out to disable the options. |
| 44 | # | 46 | # |
| 45 | MOUSEKEY_ENABLE = yes # Mouse keys | 47 | MOUSEKEY_ENABLE = yes # Mouse keys |
| 46 | USB_EXTRA_ENABLE = yes # Audio control and System control | 48 | EXTRAKEY_ENABLE = yes # Audio control and System control |
| 47 | #USB_NKRO_ENABLE = yes # USB Nkey Rollover | 49 | #NKRO_ENABLE = yes # USB Nkey Rollover |
| 48 | 50 | ||
| 49 | 51 | ||
| 50 | 52 | ||
| @@ -70,8 +72,8 @@ AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex | |||
| 70 | # to submit bug reports. | 72 | # to submit bug reports. |
| 71 | #AVRDUDE_VERBOSE = -v -v | 73 | #AVRDUDE_VERBOSE = -v -v |
| 72 | 74 | ||
| 73 | #AVRDUDE_FLAGS = -p $(MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) | 75 | #AVRDUDE_FLAGS = -p $(AVRDUDE_MCU) -P $(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) |
| 74 | AVRDUDE_FLAGS = -p $(MCU) -c $(AVRDUDE_PROGRAMMER) | 76 | AVRDUDE_FLAGS = -p $(AVRDUDE_MCU) -c $(AVRDUDE_PROGRAMMER) |
| 75 | AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY) | 77 | AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY) |
| 76 | AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE) | 78 | AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE) |
| 77 | AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER) | 79 | AVRDUDE_FLAGS += $(AVRDUDE_ERASE_COUNTER) |
| @@ -80,5 +82,8 @@ PROGRAM_CMD = $(AVRDUDE) $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE | |||
| 80 | 82 | ||
| 81 | 83 | ||
| 82 | 84 | ||
| 83 | include $(COMMON_DIR)/Makefile.vusb | 85 | # Search Path |
| 84 | include $(COMMON_DIR)/Makefile.common | 86 | VPATH = $(TARGET_DIR) |
| 87 | |||
| 88 | include $(COMMON_DIR)/vusb.mk | ||
| 89 | include $(COMMON_DIR)/common.mk | ||
