diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-06-11 13:31:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-11 13:31:31 -0400 |
commit | d9e4dad0a828a8a904f44dda090a4d6d08fe2948 (patch) | |
tree | d6f002712c22e8cf4523e04a9da889c7ec379d6b /keyboard/planck | |
parent | a5d638ad3091e2d553eaa04d933df28eeced5a8b (diff) |
Makefile redo & other features (#395)
* .build containment implemented
* no destructive variable setting - builds in either folder
* make from 3 places
* cleans before each build
* make from root with keyboard=keyboard, keymap=keymap
* make from keyboard/keyboard with keymap=keymap
* make from keymaps/keymap
* only implemented on planck
* adds color diag to avr-gcc
* makefiles for all plancks, clean-up
* quick build-all makefile for plancks
* reformatting of make output (colors)
* color toggle, tmk path corrections
* correct if statement for color
* move config.h to main makefile, updates preonic, atomic
* format update, all keyboards targets
* makefile optional for build all target, alps and arrow_pad updated
* alps updated
* make planck default, trying out travis recipe for all-keyboards
* all-keymaps target, different travis recipe
* updates alps64
* updates keyboards to new format
* updates clue* projects
* all projects updated, specialise EZ .hex, let .hex through
* updates travis
* automatically find root, keyboard, keymap
* silent echo, cleaned-up mass make output
* updates all keyboards' .hex files except EZ
* Rename Bantam44.c to bantam44.c
* Rename Bantam44.h to bantam44.h
* nananana
* adds six key keyboard
* does same to ez as rest
* updates send_string example
* brings ergodox_ez up to date
* updates template/new project script
* adds sixkeyboard
* adds readme for sixkeyboard
* adds sixkeyboard to travis
* filenames, gitignore mess
* define clock prescaler stuff manually
* make quick, size test example
* documentation and dfu-no-build
Diffstat (limited to 'keyboard/planck')
86 files changed, 42422 insertions, 498 deletions
diff --git a/keyboard/planck/Makefile b/keyboard/planck/Makefile index c0c6201cba..0940d8f277 100644 --- a/keyboard/planck/Makefile +++ b/keyboard/planck/Makefile @@ -38,55 +38,6 @@ # To rebuild project do "make clean" then "make all". #---------------------------------------------------------------------------- -# Target file name (without extension). -TARGET = planck - -# Directory common source filess exist -TOP_DIR = ../.. -TMK_DIR = ../../tmk_core - -# Directory keyboard dependent files exist -TARGET_DIR = . - -# # project specific files -SRC = planck.c - -ifdef keymap - KEYMAP = $(keymap) -endif - -ifdef KEYMAP -ifneq ("$(wildcard keymaps/$(KEYMAP).c)","") - KEYMAP_FILE = keymaps/$(KEYMAP).c -else -ifneq ("$(wildcard keymaps/$(KEYMAP)/keymap.c)","") - KEYMAP_FILE = keymaps/$(KEYMAP)/keymap.c -ifneq ("$(wildcard keymaps/$(KEYMAP)/makefile.mk)","") - include keymaps/$(KEYMAP)/makefile.mk -endif -else -$(error Keymap file does not exist) -endif -endif - -else - -ifneq ("$(wildcard keymaps/default.c)","") - KEYMAP_FILE = keymaps/default.c -else - KEYMAP_FILE = keymaps/default/keymap.c -endif - -ifneq ("$(wildcard keymaps/default/makefile.mk)","") - include keymaps/default/makefile.mk -endif - -endif - -SRC := $(KEYMAP_FILE) $(SRC) - -CONFIG_H = config.h - # MCU name #MCU = at90usb1287 MCU = atmega32u4 @@ -139,44 +90,22 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096 # change to "no" to disable the options, or define them in the makefile.mk in # the appropriate keymap folder that will get included automatically # -BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) -MOUSEKEY_ENABLE = yes # Mouse keys(+4700) -EXTRAKEY_ENABLE = yes # Audio control and System control(+450) -CONSOLE_ENABLE = no # Console for debug(+400) -COMMAND_ENABLE = yes # Commands for debug and configuration -NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work -BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality -MIDI_ENABLE = no # MIDI controls -AUDIO_ENABLE = no # Audio output on port C6 -UNICODE_ENABLE = no # Unicode -BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID -RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. +BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000) +MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) +EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) +CONSOLE_ENABLE ?= no # Console for debug(+400) +COMMAND_ENABLE ?= yes # Commands for debug and configuration +NKRO_ENABLE ?= no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work +BACKLIGHT_ENABLE ?= yes # Enable keyboard backlight functionality +MIDI_ENABLE ?= no # MIDI controls +AUDIO_ENABLE ?= no # Audio output on port C6 +UNICODE_ENABLE ?= no # Unicode +BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID +RGBLIGHT_ENABLE ?= no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE -SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend - -ifdef KEYMAP - -ifeq ("$(wildcard keymaps/$(KEYMAP).c)","") -ifneq ("$(wildcard keymaps/$(KEYMAP)/makefile.mk)","") - include keymaps/$(KEYMAP)/makefile.mk -endif -endif - -else - -ifneq ("$(wildcard keymaps/default/makefile.mk)","") - include keymaps/default/makefile.mk -endif - -endif - -# Optimize size but this may cause error "relocation truncated to fit" -#EXTRALDFLAGS = -Wl,--relax - -# Search Path -VPATH += $(TARGET_DIR) -VPATH += $(TOP_DIR) -VPATH += $(TMK_DIR) +SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend -include $(TOP_DIR)/quantum/quantum.mk
\ No newline at end of file +ifndef QUANTUM_DIR + include ../../Makefile +endif
\ No newline at end of file diff --git a/keyboard/planck/keymaps/alexey/Makefile b/keyboard/planck/keymaps/alexey/Makefile new file mode 100644 index 0000000000..4fbe3b6619 --- /dev/null +++ b/keyboard/planck/keymaps/alexey/Makefile @@ -0,0 +1,63 @@ +#---------------------------------------------------------------------------- +# 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. +# Please customize your programmer settings(PROGRAM_CMD) +# +# make teensy = Download the hex file to the device, using teensy_loader_cli. +# (must have teensy_loader_cli installed). +# +# make dfu = Download the hex file to the device, using dfu-programmer (must +# have dfu-programmer installed). +# +# make flip = Download the hex file to the device, using Atmel FLIP (must +# have Atmel FLIP installed). +# +# make dfu-ee = Download the eeprom file to the device, using dfu-programmer +# (must have dfu-programmer installed). +# +# make flip-ee = Download the eeprom file to the device, using Atmel FLIP +# (must have Atmel FLIP installed). +# +# 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". +#---------------------------------------------------------------------------- + +# Build Options +# change to "no" to disable the options, or define them in the makefile.mk in +# the appropriate keymap folder that will get included automatically +# +BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) +MOUSEKEY_ENABLE = yes # Mouse keys(+4700) +EXTRAKEY_ENABLE = yes # Audio control and System control(+450) +CONSOLE_ENABLE = no # Console for debug(+400) +COMMAND_ENABLE = yes # Commands for debug and configuration +NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work +BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality +MIDI_ENABLE = no # MIDI controls +AUDIO_ENABLE = yes # Audio output on port C6 +UNICODE_ENABLE = no # Unicode +BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID +RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. + +# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE +SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend + +ifndef QUANTUM_DIR + include ../../../../Makefile +endif
\ No newline at end of file diff --git a/keyboard/planck/keymaps/alexey/compiled.hex b/keyboard/planck/keymaps/alexey/compiled.hex new file mode 100644 index 0000000000..deddcea06a --- /dev/null +++ b/keyboard/planck/keymaps/alexey/compiled.hex @@ -0,0 +1,1444 @@ +:100000000C9461020C94A5020C94A5020C94A50218
+:100010000C94A5020C94A5020C94A5020C94A502C4
+:100020000C94A5020C94A5020C9452140C94241563
+:100030000C9486220C94A5020C94A5020C94A502A3
+:100040000C94A5020C9407030C94A5020C94A50231
+:100050000C94A5020C94EE220C94A5020C94A5021B
+:100060000C94A5020C94A5020C94A5020C94A50274
+:100070000C94A5020C94A5020C94A5020C94A50264
+:100080000C94C70A0C94A5020C94A5020C94A5022A
+:100090000C94A5020C94A5020C94A5020C94A50244
+:1000A0000C94A5020C94A5020C94A5029115B3150D
+:1000B000A116B315A116F8151B16A11670168316F6
+:1000C0006D196D199C199C19DB19FB19511B511BDA
+:1000D000061A511BB61AB61A1D1B261B511B4B1BA9
+:1000E000C31AC31AC31AC31AC31AC31AC31AC31A28
+:1000F000C31AC31AC31AC31AC31AC31AC31AC31A18
+:10010000D31AE11AE81AEF1AF91A07634236B79BB5
+:10011000D8A71A39685618AEBAAB558C1D3CB7CC67
+:100120005763BD6DEDFD753EF6177231BF000000DF
+:10013000803F08000000BE922449123EABAAAA2AC2
+:10014000BECDCCCC4C3E00000080BEABAAAAAA3EDD
+:1001500000000000BF000000803F00000000000819
+:100160004178D3BB4387D1133D190E3CC3BD4282B6
+:10017000AD2B3E68EC8276BED98FE1A93E4C80EF74
+:10018000FFBE01C4FF7F3F00000000000000000030
+:1001900000000000000000010204060A0F17202CD6
+:1001A0003A4A5D71879DB3C7DAE9F5FCFFFCF5E9D2
+:1001B000DAC7B39D87715D4A3A2C20170F0A0604EF
+:1001C0000201000000000000000000002B001400ED
+:1001D0001A000800150017001C0018000C0012007F
+:1001E00013002A00290004001600070009000A0075
+:1001F0000B000D000E000F003300015201001D0026
+:100200001B00060019000500110010003600370021
+:10021000380001000030E300E200E000E1002C00C3
+:100220002C0002522D00340028000100010049007A
+:100230004A0052004D004B000100400041004200C6
+:100240004300010001004C00500051004F004E00DF
+:1002500001003D003E003F0044000100010001009C
+:10026000010001000100010001003A003B003C00D8
+:100270004500010001000100010001000100010032
+:100280000100AA00A900AB00AE00010001001E029F
+:100290001F022F02300231024B00240025002600ED
+:1002A000250201000100200221022602270235005A
+:1002B0004E002100220023002E0201000100220234
+:1002C00023022F003000350224021E001F002000F0
+:1002D000310001000100010049000100010001009E
+:1002E00001000100010027002E0001002803540036
+:1002F00068006500200050006C0061006E00630023
+:100300006B0020004B006500790062006F00610007
+:100310007200640000002C034F007200740068003B
+:100320006F006C0069006E006500610072002000C3
+:100330004B006500790062006F006100720064008C
+:10034000730000000403090409026D00040100A009
+:10035000FA09040000010301010009211101000153
+:10036000223F000705810308000A09040100010378
+:10037000010200092111010001224D00070582033D
+:1003800008000A090402000103000000092111010C
+:1003900000012236000705830308000A0904030050
+:1003A00001030000000921110100012239000705A5
+:1003B00084031000011201100100000008EDFE602E
+:1003C0006001000102000105010906A101050719EC
+:1003D000E029E71500250195087501810205081936
+:1003E0000129059505750191029501750391010596
+:1003F000071900297715002501957875018102C03C
+:1004000005010980A101850216010026B7001A0125
+:10041000002AB700751095018100C0050C0901A1E3
+:10042000018503160100269C021A01002A9C027510
+:100430001095018100C005010902A1010901A10077
+:100440000509190129051500250195057501810288
+:100450009501750381010501093009311581257F59
+:1004600095027508810609381581257F9501750863
+:100470008106050C0A38021581257F9501750881D2
+:1004800006C0C005010906A101050719E029E71505
+:100490000025019508750181029501750881010506
+:1004A00008190129059505750191029501750391BA
+:1004B000010507190029FF150025FF95067508811C
+:1004C00000C011241FBECFEFDAE0DEBFCDBF04B6FF
+:1004D00003FE24C080911E0390911F03A09120036E
+:1004E000B09121038730904BA740B04BB9F41092E4
+:1004F0001E0310921F03109220031092210314BEBA
+:1005000084B7877F84BF88E10FB6F894809360003A
+:10051000109260000FBEE0E0F8E3099511E0A0E062
+:10052000B1E0E6E6F9E502C005900D92A03CB10706
+:10053000D9F713E0A0ECB1E001C01D92AE31B107D4
+:10054000E1F70E9498110C94B12C0C9400000895CE
+:10055000089581E0089508950C94A8020C94A902CE
+:100560000C94AB020E947B2823E030E0281B310969
+:10057000220F2093C4010895282F2F988091800086
+:10058000211108C0877F8093800010928D00109207
+:100590008C001BC0886080938000233019F48FEF9B
+:1005A0009FEF0FC083E090E0821B9109880F991F95
+:1005B0002FEF3FEFA90102C0569547958A95E2F7C4
+:1005C000CA0190938D0080938C000C94B2020E941B
+:1005D000B20284E08093C3011092C0010895279A6B
+:1005E0002F988FEF9FEF90938700809386008AE08B
+:1005F0008093800089E1809381000E94E4270C941D
+:10060000E7020E94EF026E9A769A0C94A7021F925C
+:100610000F9 |