X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=hhkb%2FMakefile;h=e1cc2f2106c308b1211c08158dafe603b6d4fbce;hb=f382fc93d5cbee8209069d5da590177b8dbd4a02;hp=c248a67588d0f5085211870f11ba2d6691f8a618;hpb=37ced39ae2ecfc945c21526faffb2449577bbeb7;p=max%2Ftmk_keyboard.git diff --git a/hhkb/Makefile b/hhkb/Makefile index c248a675..e1cc2f21 100644 --- a/hhkb/Makefile +++ b/hhkb/Makefile @@ -1,55 +1,10 @@ -# Hey Emacs, this is a -*- makefile -*- -#---------------------------------------------------------------------------- -# WinAVR Makefile Template written by Eric B. Weddington, Jörg Wunsch, et al. # -# Released to the Public Domain +# Makefile for PJRC Teensy # -# Additional material for this makefile was written by: -# Peter Fleury -# Tim Henigan -# Colin O'Flynn -# Reiner Patommel -# Markus Pfaff -# Sander Pool -# Frederik Rouleau -# Carlos Lamas -# -#---------------------------------------------------------------------------- -# On command line: -# -# make all = Make software. -# -# make clean = Clean out built project files. -# -# make coff = Convert ELF to AVR COFF. -# -# make extcoff = Convert ELF to AVR Extended COFF. -# -# make program = Download the hex file to the device, using avrdude. -# Please customize the avrdude settings below first! -# -# make debug = Start either simulavr or avarice as specified for debugging, -# with avr-gdb or avr-insight as the front end for debugging. -# -# make filename.s = Just compile filename.c into the assembler code only. -# -# make filename.i = Create a preprocessed source file for use in submitting -# bug reports to the GCC project. -# -# To rebuild project do "make clean" then "make all". -#---------------------------------------------------------------------------- -VENDOR_ID = 0xFEED -PRODUCT_ID = 0xCAFE -MANUFACTURER = 't.m.k.' -PRODUCT = 't.m.k. HHKB pro' -DESCRIPTION = 't.m.k. firmware for HHKB pro' - -MOUSE_DELAY_TIME = 127 -USB_12KRO = yes # Target file name (without extension). -TARGET = tmk_hhkb +TARGET = hhkb_pjrc # Directory common source filess exist COMMON_DIR = .. @@ -58,8 +13,12 @@ COMMON_DIR = .. TARGET_DIR = . # keyboard dependent files -TARGET_SRC = keymap.c \ - matrix.c +TARGET_SRC = main_pjrc.c \ + keymap.c \ + matrix.c \ + led.c + +CONFIG_H = config_pjrc.h # MCU name, you MUST set this to match the board you are using @@ -77,4 +36,20 @@ MCU = at90usb1286 # Teensy++ 2.0 # examples use this variable to calculate timings. Do not add a "UL" here. F_CPU = 16000000 + +# Build Options +# comment out to disable the options. +MOUSEKEY_ENABLE = yes # Mouse keys +#PS2_MOUSE_ENABLE = yes # PS/2 mouse(TrackPoint) support +USB_EXTRA_ENABLE = yes # Audio control and System control +USB_NKRO_ENABLE = yes # USB Nkey Rollover + + + +#---------------- Programming Options -------------------------- +PROGRAM_CMD = teensy_loader_cli -mmcu=$(MCU) -w -v $(TARGET).hex + + + +include $(COMMON_DIR)/Makefile.pjrc include $(COMMON_DIR)/Makefile.common