diff options
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/quantum.mk | 58 | ||||
| -rw-r--r-- | quantum/template/Makefile | 51 | ||||
| -rw-r--r-- | quantum/template/README.md | 2 | ||||
| -rw-r--r-- | quantum/template/keymaps/default/keymap.c (renamed from quantum/template/keymaps/default.c) | 0 |
4 files changed, 4 insertions, 107 deletions
diff --git a/quantum/quantum.mk b/quantum/quantum.mk deleted file mode 100644 index 00d3e8114..000000000 --- a/quantum/quantum.mk +++ /dev/null | |||
| @@ -1,58 +0,0 @@ | |||
| 1 | QUANTUM_DIR = quantum | ||
| 2 | |||
| 3 | ifndef VERBOSE | ||
| 4 | .SILENT: | ||
| 5 | endif | ||
| 6 | |||
| 7 | # # project specific files | ||
| 8 | SRC += $(QUANTUM_DIR)/quantum.c \ | ||
| 9 | $(QUANTUM_DIR)/keymap_common.c \ | ||
| 10 | $(QUANTUM_DIR)/led.c | ||
| 11 | |||
| 12 | # ifdef KEYMAP_FILE | ||
| 13 | # ifneq (,$(shell grep USING_MIDI '$(KEYMAP_FILE)')) | ||
| 14 | # MIDI_ENABLE=yes | ||
| 15 | # $(info * Overriding MIDI_ENABLE setting - $(KEYMAP_FILE) requires it) | ||
| 16 | # endif | ||
| 17 | # ifneq (,$(shell grep USING_UNICODE '$(KEYMAP_FILE)')) | ||
| 18 | # UNICODE_ENABLE=yes | ||
| 19 | # $(info * Overriding UNICODE_ENABLE setting - $(KEYMAP_FILE) requires it) | ||
| 20 | # endif | ||
| 21 | # ifneq (,$(shell grep USING_BACKLIGHT '$(KEYMAP_FILE)')) | ||
| 22 | # BACKLIGHT_ENABLE=yes | ||
| 23 | # $(info * Overriding BACKLIGHT_ENABLE setting - $(KEYMAP_FILE) requires it) | ||
| 24 | # endif | ||
| 25 | # endif | ||
| 26 | |||
| 27 | ifndef CUSTOM_MATRIX | ||
| 28 | SRC += $(QUANTUM_DIR)/matrix.c | ||
| 29 | endif | ||
| 30 | |||
| 31 | #ifeq ($(strip $(MIDI_ENABLE)), yes) | ||
| 32 | # SRC += $(QUANTUM_DIR)/keymap_midi.c | ||
| 33 | #endif | ||
| 34 | |||
| 35 | ifeq ($(strip $(AUDIO_ENABLE)), yes) | ||
| 36 | SRC += $(QUANTUM_DIR)/audio/audio.c | ||
| 37 | SRC += $(QUANTUM_DIR)/audio/voices.c | ||
| 38 | SRC += $(QUANTUM_DIR)/audio/luts.c | ||
| 39 | endif | ||
| 40 | |||
| 41 | ifeq ($(strip $(RGBLIGHT_ENABLE)), yes) | ||
| 42 | SRC += $(QUANTUM_DIR)/light_ws2812.c | ||
| 43 | SRC += $(QUANTUM_DIR)/rgblight.c | ||
| 44 | OPT_DEFS += -DRGBLIGHT_ENABLE | ||
| 45 | endif | ||
| 46 | |||
| 47 | # Optimize size but this may cause error "relocation truncated to fit" | ||
| 48 | #EXTRALDFLAGS = -Wl,--relax | ||
| 49 | |||
| 50 | # Search Path | ||
| 51 | VPATH += $(TOP_DIR)/$(QUANTUM_DIR) | ||
| 52 | VPATH += $(TOP_DIR)/$(QUANTUM_DIR)/keymap_extras | ||
| 53 | VPATH += $(TOP_DIR)/$(QUANTUM_DIR)/audio | ||
| 54 | |||
| 55 | include $(TMK_DIR)/protocol/lufa.mk | ||
| 56 | |||
| 57 | include $(TMK_DIR)/common.mk | ||
| 58 | include $(TMK_DIR)/rules.mk | ||
diff --git a/quantum/template/Makefile b/quantum/template/Makefile index f101eb7a6..8772b0920 100644 --- a/quantum/template/Makefile +++ b/quantum/template/Makefile | |||
| @@ -38,28 +38,6 @@ | |||
| 38 | # To rebuild project do "make clean" then "make all". | 38 | # To rebuild project do "make clean" then "make all". |
| 39 | #---------------------------------------------------------------------------- | 39 | #---------------------------------------------------------------------------- |
| 40 | 40 | ||
| 41 | # Target file name (without extension). | ||
| 42 | TARGET = %KEYBOARD% | ||
| 43 | |||
| 44 | |||
| 45 | # Directory common source filess exist | ||
| 46 | TOP_DIR = ../.. | ||
| 47 | TMK_DIR = ../../tmk_core | ||
| 48 | |||
| 49 | # Directory keyboard dependent files exist | ||
| 50 | TARGET_DIR = . | ||
| 51 | |||
| 52 | # # project specific files | ||
| 53 | SRC = %KEYBOARD%.c | ||
| 54 | |||
| 55 | ifdef KEYMAP | ||
| 56 | SRC := keymaps/$(KEYMAP).c $(SRC) | ||
| 57 | else | ||
| 58 | SRC := keymaps/default.c $(SRC) | ||
| 59 | endif | ||
| 60 | |||
| 61 | CONFIG_H = config.h | ||
| 62 | |||
| 63 | # MCU name | 41 | # MCU name |
| 64 | #MCU = at90usb1287 | 42 | #MCU = at90usb1287 |
| 65 | MCU = atmega32u4 | 43 | MCU = atmega32u4 |
| @@ -113,12 +91,11 @@ OPT_DEFS += -DBOOTLOADER_SIZE=512 | |||
| 113 | # Build Options | 91 | # Build Options |
| 114 | # change yes to no to disable | 92 | # change yes to no to disable |
| 115 | # | 93 | # |
| 116 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | 94 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) |
| 117 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | 95 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) |
| 118 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | 96 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) |
| 119 | CONSOLE_ENABLE = yes # Console for debug(+400) | 97 | CONSOLE_ENABLE = yes # Console for debug(+400) |
| 120 | COMMAND_ENABLE = yes # Commands for debug and configuration | 98 | COMMAND_ENABLE = yes # Commands for debug and configuration |
| 121 | KEYBOARD_LOCK_ENABLE = yes # Allow locking of keyboard via magic key | ||
| 122 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 99 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
| 123 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 100 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 124 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 101 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
| @@ -129,30 +106,8 @@ UNICODE_ENABLE = no # Unicode | |||
| 129 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 106 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
| 130 | AUDIO_ENABLE = no # Audio output on port C6 | 107 | AUDIO_ENABLE = no # Audio output on port C6 |
| 131 | 108 | ||
| 132 | 109 | ifndef QUANTUM_DIR | |
| 133 | ifdef KEYMAP | 110 | include ../../Makefile |
| 134 | |||
| 135 | ifeq ("$(wildcard keymaps/$(KEYMAP).c)","") | ||
| 136 | ifneq ("$(wildcard keymaps/$(KEYMAP)/makefile.mk)","") | ||
| 137 | include keymaps/$(KEYMAP)/makefile.mk | ||
| 138 | endif | ||
| 139 | endif | ||
| 140 | |||
| 141 | else | ||
| 142 | |||
| 143 | ifneq ("$(wildcard keymaps/default/makefile.mk)","") | ||
| 144 | include keymaps/default/makefile.mk | ||
| 145 | endif | 111 | endif |
| 146 | 112 | ||
| 147 | endif | ||
| 148 | |||
| 149 | # Optimize size but this may cause error "relocation truncated to fit" | ||
| 150 | #EXTRALDFLAGS = -Wl,--relax | ||
| 151 | |||
| 152 | # Search Path | ||
| 153 | VPATH += $(TARGET_DIR) | ||
| 154 | VPATH += $(TOP_DIR) | ||
| 155 | VPATH += $(TMK_DIR) | ||
| 156 | |||
| 157 | include $(TOP_DIR)/quantum/quantum.mk | ||
| 158 | 113 | ||
diff --git a/quantum/template/README.md b/quantum/template/README.md index 39f9f59d1..baaeef473 100644 --- a/quantum/template/README.md +++ b/quantum/template/README.md | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | ## Quantum MK Firmware | 4 | ## Quantum MK Firmware |
| 5 | 5 | ||
| 6 | For the full Quantum feature list, see [the parent README.md](/README.md). | 6 | For the full Quantum feature list, see [the parent README.md](/doc/README.md). |
| 7 | 7 | ||
| 8 | ## Building | 8 | ## Building |
| 9 | 9 | ||
diff --git a/quantum/template/keymaps/default.c b/quantum/template/keymaps/default/keymap.c index 4121fd860..4121fd860 100644 --- a/quantum/template/keymaps/default.c +++ b/quantum/template/keymaps/default/keymap.c | |||
